|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A representation of the model object 'EClass'.
The following features are supported:
Abstract
Interface
ESuper Types
EOperations
EAll Attributes
EAll References
EReferences
EAttributes
EAll Containments
EAll Operations
EAll Structural Features
EAll Super Types
EID Attribute
EStructural Features
EcorePackage.getEClass()
Method Summary | |
EList |
getEAllAttributes()
Returns the value of the 'EAll Attributes' reference list. |
EList |
getEAllContainments()
Returns the value of the 'EAll Containments' reference list. |
EList |
getEAllOperations()
Returns the value of the 'EAll Operations' reference list. |
EList |
getEAllReferences()
Returns the value of the 'EAll References' reference list. |
EList |
getEAllStructuralFeatures()
Returns the value of the 'EAll Structural Features' reference list. |
EList |
getEAllSuperTypes()
Returns the value of the 'EAll Super Types' reference list. |
EList |
getEAttributes()
Returns the value of the 'EAttributes' reference list. |
EAttribute |
getEIDAttribute()
Returns the value of the 'EID Attribute' reference |
EList |
getEOperations()
Returns the value of the 'EOperations' containment reference list. |
EList |
getEReferences()
Returns the value of the 'EReferences' reference list. |
EStructuralFeature |
getEStructuralFeature(int featureID)
Returns the feature with this ID. |
EStructuralFeature |
getEStructuralFeature(String featureName)
Returns the feature with this name. |
EList |
getEStructuralFeatures()
Returns the value of the 'EStructural Features' containment reference list. |
EList |
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. |
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 |
Methods inherited from interface org.eclipse.emf.ecore.EClassifier |
getClassifierID, getDefaultValue, getEPackage, getInstanceClass, getInstanceClassName, isInstance, setInstanceClass, setInstanceClassName |
Methods inherited from interface org.eclipse.emf.ecore.ENamedElement |
getName, setName |
Methods inherited from interface org.eclipse.emf.ecore.EModelElement |
getEAnnotation, getEAnnotations |
Methods inherited from interface org.eclipse.emf.ecore.EObject |
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset |
Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
eAdapters, eDeliver, eNotify, eSetDeliver |
Method Detail |
public 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()
public void setAbstract(boolean value)
Abstract
' attribute.
value
- the new value of the 'Abstract' attribute.isAbstract()
public 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()
public void setInterface(boolean value)
Interface
' attribute.
value
- the new value of the 'Interface' attribute.isInterface()
public EList getESuperTypes()
EClass
.
It represents the super types in the Java sense, i.e., the super class and the direct implemented interfaces.
getEAllSuperTypes()
,
EcorePackage.getEClass_ESuperTypes()
public EList getEAllSuperTypes()
EClass
.
It represents the closure of all inherited super types.
EcorePackage.getEClass_EAllSuperTypes()
public EAttribute getEIDAttribute()
It represents the attribute that will be used as the ID of an instace.
EAttribute.isID()
,
EcorePackage.getEClass_EIDAttribute()
public EList 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()
public EList getEAttributes()
EAttribute
.
It represents the modeled attributes local to this class.
EcorePackage.getEClass_EAttributes()
public EList getEAllAttributes()
EAttribute
.
It represents the closure of all attributes, inherited and local.
EcorePackage.getEClass_EAllAttributes()
public EList getEReferences()
EReference
.
It represents the modeled references local to this class.
EcorePackage.getEClass_EReferences()
public EList getEAllReferences()
EReference
.
It represents the closure of all references, inherited and local.
EcorePackage.getEClass_EAllReferences()
public EList 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()
public EList getEAllStructuralFeatures()
EStructuralFeature
.
It represents the closure of all attributes and references, inherited and local.
EcorePackage.getEClass_EAllStructuralFeatures()
public EList 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()
public EList getEAllOperations()
EOperation
.
It represents the closure of all operations, inherited and local.
EcorePackage.getEClass_EAllOperations()
public boolean isSuperTypeOf(EClass someClass)
someClass
- some other class.
Class.isAssignableFrom(java.lang.Class)
public int getFeatureCount()
public EStructuralFeature getEStructuralFeature(int featureID)
public EStructuralFeature getEStructuralFeature(String featureName)
public int getFeatureID(EStructuralFeature feature)
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |