in impl/src/main/java/org/apache/tuscany/sdo/model/impl/TypeImpl.java [849:881]
public Object get(int propertyIndex, boolean resolve)
{
switch (propertyIndex)
{
case BASE_TYPE:
return getBaseType();
case PROPERTY:
return getProperty();
case ALIAS_NAME:
return getAliasName();
case ANY:
// XXX query introduce coreType as an argument? -- semantic = if true -- coreType - return the core EMF object if value is a non-EMF wrapper/view
//if (coreType)
return getAny();
case NAME:
return getName();
case URI:
return getUri();
case DATA_TYPE:
return isDataType() ? Boolean.TRUE : Boolean.FALSE;
case OPEN:
return isOpen() ? Boolean.TRUE : Boolean.FALSE;
case SEQUENCED:
return isSequenced() ? Boolean.TRUE : Boolean.FALSE;
case ABSTRACT:
return isAbstract() ? Boolean.TRUE : Boolean.FALSE;
case ANY_ATTRIBUTE:
// XXX query introduce coreType as an argument? -- semantic = if true -- coreType - return the core EMF object if value is a non-EMF wrapper/view
//if (coreType)
return getAnyAttribute();
}
return super.get(propertyIndex, resolve);
}