public interface EClass extends EClassifier
The following features are supported:
EcorePackage.getEClass()
Modifier and Type | Method and Description |
---|---|
EList<EAttribute> |
getEAllAttributes()
Returns the value of the 'EAll Attributes' reference list.
|
EList<EReference> |
getEAllContainments()
Returns the value of the 'EAll Containments' reference list.
|
EList<EGenericType> |
getEAllGenericSuperTypes()
Returns the value of the 'EAll Generic Super Types' reference list.
|
EList<EOperation> |
getEAllOperations()
Returns the value of the 'EAll Operations' reference list.
|
EList<EReference> |
getEAllReferences()
Returns the value of the 'EAll References' reference list.
|
EList<EStructuralFeature> |
getEAllStructuralFeatures()
Returns the value of the 'EAll Structural Features' reference list.
|
EList<EClass> |
getEAllSuperTypes()
Returns the value of the 'EAll Super Types' reference list.
|
EList<EAttribute> |
getEAttributes()
Returns the value of the 'EAttributes' reference list.
|
EList<EGenericType> |
getEGenericSuperTypes()
Returns the value of the 'EGeneric Super Types' containment reference list.
|
EAttribute |
getEIDAttribute()
Returns the value of the 'EID Attribute' reference
|
EOperation |
getEOperation(int operationID)
Returns the operation with this ID.
|
EList<EOperation> |
getEOperations()
Returns the value of the 'EOperations' containment reference list.
|
EList<EReference> |
getEReferences()
Returns the value of the 'EReferences' reference list.
|
EStructuralFeature |
getEStructuralFeature(int featureID)
Returns the feature with this ID.
|
EStructuralFeature |
getEStructuralFeature(java.lang.String featureName)
Returns the feature with this name.
|
EList<EStructuralFeature> |
getEStructuralFeatures()
Returns the value of the 'EStructural Features' containment reference list.
|
EList<EClass> |
getESuperTypes()
Returns the value of the 'ESuper Types' reference list.
|
int |
getFeatureCount()
Returns the number of features.
|
int |
getFeatureID(EStructuralFeature feature)
Returns the ID of the feature relative to this class, or -1 if the feature is not in this class.
|
EGenericType |
getFeatureType(EStructuralFeature feature)
Returns the generic type representing the effective
reified type of the feature in the context of this specific class. |
int |
getOperationCount()
Returns the number of operations.
|
int |
getOperationID(EOperation operation)
Returns the ID of the operation relative to this class, or -1 if the operation is not in this class.
|
EOperation |
getOverride(EOperation operation)
Returns the operation that overrides this operation.
|
boolean |
isAbstract()
Returns the value of the 'Abstract' attribute
|
boolean |
isInterface()
Returns the value of the 'Interface' attribute
|
boolean |
isSuperTypeOf(EClass someClass)
Returns whether this class is the same as, or a super type of, some other class.
|
void |
setAbstract(boolean value)
Sets the value of the '
Abstract ' attribute |
void |
setInterface(boolean value)
Sets the value of the '
Interface ' attribute |
getClassifierID, getDefaultValue, getEPackage, getETypeParameters, getInstanceClass, getInstanceClassName, getInstanceTypeName, isInstance, setInstanceClass, setInstanceClassName, setInstanceTypeName
getName, setName
getEAnnotation, getEAnnotations
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
eAdapters, eDeliver, eNotify, eSetDeliver
boolean isAbstract()
It represents whether the class is abstract in the Java sense. For an abstract class, the generated implementation class will be abstract, and the generated factory will not provide support for creating an instance.
setAbstract(boolean)
,
EcorePackage.getEClass_Abstract()
void setAbstract(boolean value)
Abstract
' attribute.
value
- the new value of the 'Abstract' attribute.isAbstract()
boolean isInterface()
It represents whether the class is an interface in the Java sense. For an interface class, there will be no generated implementation class.
setInterface(boolean)
,
EcorePackage.getEClass_Interface()
void setInterface(boolean value)
Interface
' attribute.
value
- the new value of the 'Interface' attribute.isInterface()
EList<EClass> getESuperTypes()
EClass
.
It represents the super types in the Java sense, i.e., the super class and the direct implemented interfaces,
and is derived from the generic super types
.
getEGenericSuperTypes()
,
getEAllSuperTypes()
,
EcorePackage.getEClass_ESuperTypes()
EList<EClass> getEAllSuperTypes()
EClass
.
It represents the closure of all inherited super types
and is derived from the generic super types
.
getESuperTypes()
,
,
EcorePackage.getEClass_EAllSuperTypes()
EAttribute getEIDAttribute()
It represents the attribute that will be used as the ID of an instance.
EAttribute.isID()
,
EcorePackage.getEClass_EIDAttribute()
EList<EStructuralFeature> getEStructuralFeatures()
EStructuralFeature
.
It is bidirectional and its opposite is 'EContaining Class
'.
It represents the modeled features local to this class.
EcorePackage.getEClass_EStructuralFeatures()
,
EStructuralFeature.getEContainingClass()
EList<EGenericType> getEGenericSuperTypes()
EGenericType
.
It represents the generic super types in the Java sense, i.e., the super class and the direct implemented interfaces.
The super types
list is derived from this one, i.e., it represents the erasure
of each generic super type.
getESuperTypes()
,
EcorePackage.getEClass_EGenericSuperTypes()
EList<EGenericType> getEAllGenericSuperTypes()
EGenericType
.
It represents the closure of all inherited generic super types
.
The all super types
list is derived from this one, i.e., it represents the erasure
of each generic super type.
getEGenericSuperTypes()
,
getEAllSuperTypes()
,
EcorePackage.getEClass_EAllGenericSuperTypes()
EList<EAttribute> getEAttributes()
EAttribute
.
It represents the modeled attributes local to this class.
EcorePackage.getEClass_EAttributes()
EList<EAttribute> getEAllAttributes()
EAttribute
.
It represents the closure of all attributes, inherited and local.
EcorePackage.getEClass_EAllAttributes()
EList<EReference> getEReferences()
EReference
.
It represents the modeled references local to this class.
EcorePackage.getEClass_EReferences()
EList<EReference> getEAllReferences()
EReference
.
It represents the closure of all references, inherited and local.
EcorePackage.getEClass_EAllReferences()
EList<EReference> getEAllContainments()
EReference
.
It represents the closure of all references, inherited and local,
that are containments
.
These features will determine the EObject.eContents()
of an instance.
EcorePackage.getEClass_EAllContainments()
EList<EStructuralFeature> getEAllStructuralFeatures()
EStructuralFeature
.
It represents the closure of all attributes and references, inherited and local.
EcorePackage.getEClass_EAllStructuralFeatures()
EList<EOperation> getEOperations()
EOperation
.
It is bidirectional and its opposite is 'EContaining Class
'.
It represents the modeled operations local to this class.
EcorePackage.getEClass_EOperations()
,
EOperation.getEContainingClass()
EList<EOperation> getEAllOperations()
EOperation
.
It represents the closure of all operations, inherited and local.
EcorePackage.getEClass_EAllOperations()
boolean isSuperTypeOf(EClass someClass)
someClass
- some other class.Class.isAssignableFrom(java.lang.Class<?>)
int getFeatureCount()
EStructuralFeature getEStructuralFeature(int featureID)
EStructuralFeature getEStructuralFeature(java.lang.String featureName)
int getOperationCount()
EOperation getEOperation(int operationID)
int getOperationID(EOperation operation)
EOperation getOverride(EOperation operation)
EGenericType getFeatureType(EStructuralFeature feature)
reified type
of the feature in the context of this specific class.
This will be different from the feature's actual type
only if the feature's generic type
is specified using type parameters
.
In that case, if the type parameter is bound to a more specific type in the super types
, that more specific type is sustituted.int getFeatureID(EStructuralFeature feature)