org.eclipse.emf.ecore.impl
Class EClassImpl

java.lang.Object
  extended byorg.eclipse.emf.common.notify.impl.BasicNotifierImpl
      extended byorg.eclipse.emf.ecore.impl.BasicEObjectImpl
          extended byorg.eclipse.emf.ecore.impl.EObjectImpl
              extended byorg.eclipse.emf.ecore.impl.FlatEObjectImpl
                  extended byorg.eclipse.emf.ecore.impl.EModelElementImpl
                      extended byorg.eclipse.emf.ecore.impl.ENamedElementImpl
                          extended byorg.eclipse.emf.ecore.impl.EClassifierImpl
                              extended byorg.eclipse.emf.ecore.impl.EClassImpl
All Implemented Interfaces:
BasicExtendedMetaData.EClassifierExtendedMetaData.Holder, EClass, EClassifier, EModelElement, ENamedElement, EObject, ESuperAdapter.Holder, InternalEObject, Notifier

public class EClassImpl
extends EClassifierImpl
implements EClass, ESuperAdapter.Holder

An implementation of the model object 'EClass'.


Nested Class Summary
static interface EClassImpl.FeatureSubsetSupplier
           
 
Nested classes inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
BasicEObjectImpl.EPropertiesHolder, BasicEObjectImpl.EPropertiesHolderBaseImpl, BasicEObjectImpl.EPropertiesHolderImpl
 
Nested classes inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
BasicNotifierImpl.EAdapterList
 
Nested classes inherited from class org.eclipse.emf.ecore.InternalEObject
InternalEObject.EStore
 
Field Summary
protected static boolean ABSTRACT_EDEFAULT
          The default value of the 'Abstract' attribute
protected static int ABSTRACT_EFLAG
          The flag representing the value of the 'Abstract' attribute
protected  BasicEList eAllAttributes
           
protected  BasicEList eAllContainments
           
protected  BasicEList eAllOperations
           
protected  BasicEList eAllReferences
           
protected  BasicEList eAllStructuralFeatures
           
protected  EStructuralFeature[] eAllStructuralFeaturesData
           
protected  BasicEList eAllSuperTypes
           
protected  BasicEList eAttributes
          The cached value of the 'EAttributes' containment reference list
protected  EAttribute eIDAttribute
           
protected  Map eNameToFeatureMap
           
protected  EList eOperations
          The cached value of the 'EOperations' containment reference list
protected  BasicEList eReferences
          The cached value of the 'EReferences' containment reference list
protected  EList eStructuralFeatures
          The cached value of the 'EStructural Features' containment reference list
protected  ESuperAdapter eSuperAdapter
           
protected  EList eSuperTypes
          The cached value of the 'ESuper Types' reference list
protected static boolean INTERFACE_EDEFAULT
          The default value of the 'Interface' attribute
protected static int INTERFACE_EFLAG
          The flag representing the value of the 'Interface' attribute
 
Fields inherited from class org.eclipse.emf.ecore.impl.EClassifierImpl
DEFAULT_VALUE_EDEFAULT, eClassifierExtendedMetaData, generatedInstanceClassName, INSTANCE_CLASS_EDEFAULT, INSTANCE_CLASS_NAME_EDEFAULT, instanceClass, instanceClassName, metaObjectID
 
Fields inherited from class org.eclipse.emf.ecore.impl.ENamedElementImpl
name, NAME_EDEFAULT
 
Fields inherited from class org.eclipse.emf.ecore.impl.EModelElementImpl
eAnnotations, EFROZEN, ELAST_EMODEL_ELEMENT_FLAG
 
Fields inherited from class org.eclipse.emf.ecore.impl.FlatEObjectImpl
eContents, eCrossReferences, eProxyURI
 
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXY
 
Fields inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSET
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
protected EClassImpl()
           
 
Method Summary
protected  boolean dynamicIsInstance(EObject eObject)
           
 Object eGet(int featureID, boolean resolve, boolean coreType)
           
 NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs)
           
 NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
           
 boolean eIsSet(int featureID)
           
 EObject eObjectForURIFragmentSegment(String uriFragmentSegment)
          Returns the object resolved by the fragment segment.
 void eSet(int featureID, Object newValue)
           
 void eSetDeliver(boolean deliver)
          Sets whether this notifier will deliver notifications to the adapters.
protected  EClass eStaticClass()
           
 void eUnset(int featureID)
           
protected  void freeze()
           
 EList getEAllAttributes()
          Returns the value of the 'EAll Attributes' reference list.
 EList getEAllContainments()
          Returns the value of the 'EAll Containments' reference list.
 EList getEAllOperations()
           
 EList getEAllReferences()
          Returns the value of the 'EAll References' reference list.
 EList getEAllStructuralFeatures()
           
protected  EStructuralFeature[] getEAllStructuralFeaturesData()
           
 EList getEAllSuperTypes()
          Returns all the supertypes in the hierarchy.
 EList getEAttributes()
           
 EAttribute getEIDAttribute()
           
 EList getEOperations()
           
 EList getEReferences()
           
 EStructuralFeature getEStructuralFeature(int featureID)
           Returns the feature with this ID.
 EStructuralFeature getEStructuralFeature(String name)
           Returns the feature with this name.
 EList getEStructuralFeatures()
           
 ESuperAdapter getESuperAdapter()
           
 EList getESuperTypes()
          Returns the value of the 'ESuper Types' reference list.
 EList getESuperTypesGen()
           
 int getFeatureCount()
           
 int getFeatureID(EStructuralFeature feature)
           
 boolean isAbstract()
           
 boolean isFrozen()
           
 boolean isInterface()
           
 boolean isSuperTypeOf(EClass someClass)
          Determines if the class or interface represented by this Class object is either the same as, or is a superclass or superinterface of, the class or interface represented by the specified someClass parameter.
 void setAbstract(boolean newAbstract)
           
 void setInterface(boolean newInterface)
           
 String toString()
           
 
Methods inherited from class org.eclipse.emf.ecore.impl.EClassifierImpl
basicGetEPackage, eBasicRemoveFromContainerFeature, eBasicSetContainer, getClassForName, getClassifierID, getDefaultValue, getEPackage, getEPackageGen, getExtendedMetaData, getInstanceClass, getInstanceClassGen, getInstanceClassName, getInstanceClassNameGen, getPrimitiveOrArrayClass, isInstance, setClassifierID, setExtendedMetaData, setGeneratedInstanceClass, setInstanceClass, setInstanceClassGen, setInstanceClassName, setInstanceClassNameGen
 
Methods inherited from class org.eclipse.emf.ecore.impl.ENamedElementImpl
getName, getNameGen, setName
 
Methods inherited from class org.eclipse.emf.ecore.impl.EModelElementImpl
eURIFragmentSegment, freeze, getEAnnotation, getEAnnotations, setFrozen
 
Methods inherited from class org.eclipse.emf.ecore.impl.FlatEObjectImpl
eContents, eCrossReferences, eIsProxy, eProperties, eProxyURI, eSetProxyURI
 
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eBasicAdapters, eBasicProperties, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eSetClass
 
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eHasSettings, eInternalResource, eInverseAdd, eInverseRemove, eIsSet, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetDirectResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStore, eUnset, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues
 
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eNotificationRequired, eNotify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
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
 
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject
eNotificationRequired
 

Field Detail

eIDAttribute

protected EAttribute eIDAttribute

eAllAttributes

protected BasicEList eAllAttributes

eAllReferences

protected BasicEList eAllReferences

eAllStructuralFeatures

protected BasicEList eAllStructuralFeatures

eAllStructuralFeaturesData

protected EStructuralFeature[] eAllStructuralFeaturesData

eAllContainments

protected BasicEList eAllContainments

eAllOperations

protected BasicEList eAllOperations

eAllSuperTypes

protected BasicEList eAllSuperTypes

eNameToFeatureMap

protected Map eNameToFeatureMap

eSuperAdapter

protected ESuperAdapter eSuperAdapter

ABSTRACT_EDEFAULT

protected static final boolean ABSTRACT_EDEFAULT
The default value of the 'Abstract' attribute.

See Also:
isAbstract(), Constant Field Values

ABSTRACT_EFLAG

protected static final int ABSTRACT_EFLAG
The flag representing the value of the 'Abstract' attribute.

See Also:
isAbstract(), Constant Field Values

INTERFACE_EDEFAULT

protected static final boolean INTERFACE_EDEFAULT
The default value of the 'Interface' attribute.

See Also:
isInterface(), Constant Field Values

INTERFACE_EFLAG

protected static final int INTERFACE_EFLAG
The flag representing the value of the 'Interface' attribute.

See Also:
isInterface(), Constant Field Values

eSuperTypes

protected EList eSuperTypes
The cached value of the 'ESuper Types' reference list.

See Also:
getESuperTypes()

eOperations

protected EList eOperations
The cached value of the 'EOperations' containment reference list.

See Also:
getEOperations()

eReferences

protected BasicEList eReferences
The cached value of the 'EReferences' containment reference list.

See Also:
getEReferences()

eAttributes

protected BasicEList eAttributes
The cached value of the 'EAttributes' containment reference list.

See Also:
getEAttributes()

eStructuralFeatures

protected EList eStructuralFeatures
The cached value of the 'EStructural Features' containment reference list.

See Also:
getEStructuralFeatures()
Constructor Detail

EClassImpl

protected EClassImpl()

Method Detail

freeze

protected void freeze()
Overrides:
freeze in class EModelElementImpl

isFrozen

public boolean isFrozen()
Specified by:
isFrozen in interface ESuperAdapter.Holder
Overrides:
isFrozen in class EModelElementImpl

eStaticClass

protected EClass eStaticClass()

Overrides:
eStaticClass in class EClassifierImpl

getEIDAttribute

public EAttribute getEIDAttribute()

Specified by:
getEIDAttribute in interface EClass
Returns:
the value of the 'EID Attribute' reference.
See Also:
EAttribute.isID(), EcorePackage.getEClass_EIDAttribute()

getEStructuralFeatures

public EList getEStructuralFeatures()

Specified by:
getEStructuralFeatures in interface EClass
Returns:
the value of the 'EStructural Features' containment reference list.
See Also:
EcorePackage.getEClass_EStructuralFeatures(), EStructuralFeature.getEContainingClass()

getEAllAttributes

public EList getEAllAttributes()
Description copied from interface: EClass
Returns the value of the 'EAll Attributes' reference list. The list contents are of type EAttribute.

It represents the closure of all attributes, inherited and local.

Specified by:
getEAllAttributes in interface EClass
Returns:
the value of the 'EAll Attributes' reference list.
See Also:
EcorePackage.getEClass_EAllAttributes()

getEAllReferences

public EList getEAllReferences()
Description copied from interface: EClass
Returns the value of the 'EAll References' reference list. The list contents are of type EReference.

It represents the closure of all references, inherited and local.

Specified by:
getEAllReferences in interface EClass
Returns:
the value of the 'EAll References' reference list.
See Also:
EcorePackage.getEClass_EAllReferences()

getEReferences

public EList getEReferences()

Specified by:
getEReferences in interface EClass
Returns:
the value of the 'EReferences' reference list.
See Also:
EcorePackage.getEClass_EReferences()

getEAttributes

public EList getEAttributes()

Specified by:
getEAttributes in interface EClass
Returns:
the value of the 'EAttributes' reference list.
See Also:
EcorePackage.getEClass_EAttributes()

getEAllStructuralFeatures

public EList getEAllStructuralFeatures()

Specified by:
getEAllStructuralFeatures in interface EClass
Returns:
the value of the 'EAll Structural Features' reference list.
See Also:
EcorePackage.getEClass_EAllStructuralFeatures()

getEAllOperations

public EList getEAllOperations()

Specified by:
getEAllOperations in interface EClass
Returns:
the value of the 'EAll Operations' reference list.
See Also:
EcorePackage.getEClass_EAllOperations()

eGet

public Object eGet(int featureID,
                   boolean resolve,
                   boolean coreType)

Specified by:
eGet in interface InternalEObject
Overrides:
eGet in class EClassifierImpl

eSet

public void eSet(int featureID,
                 Object newValue)

Specified by:
eSet in interface InternalEObject
Overrides:
eSet in class EClassifierImpl

eUnset

public void eUnset(int featureID)

Specified by:
eUnset in interface InternalEObject
Overrides:
eUnset in class EClassifierImpl

eIsSet

public boolean eIsSet(int featureID)

Specified by:
eIsSet in interface InternalEObject
Overrides:
eIsSet in class EClassifierImpl

getEAllContainments

public EList getEAllContainments()
Description copied from interface: EClass
Returns the value of the 'EAll Containments' reference list. The list contents are of type EReference.

It represents the closure of all references, inherited and local, that are containments. These features will determine the EObject.eContents() of an instance.

Specified by:
getEAllContainments in interface EClass
Returns:
the value of the 'EAll Containments' reference list.
See Also:
EcorePackage.getEClass_EAllContainments()

getEStructuralFeature

public EStructuralFeature getEStructuralFeature(String name)
Description copied from interface: EClass
Returns the feature with this name.

Specified by:
getEStructuralFeature in interface EClass
Returns:
the feature with this name.

eInverseAdd

public NotificationChain eInverseAdd(InternalEObject otherEnd,
                                     int featureID,
                                     NotificationChain msgs)

Overrides:
eInverseAdd in class EClassifierImpl

eInverseRemove

public NotificationChain eInverseRemove(InternalEObject otherEnd,
                                        int featureID,
                                        NotificationChain msgs)

Overrides:
eInverseRemove in class EClassifierImpl

getEAllStructuralFeaturesData

protected EStructuralFeature[] getEAllStructuralFeaturesData()

getFeatureCount

public int getFeatureCount()

Specified by:
getFeatureCount in interface EClass
Returns:
the number of features.

getEStructuralFeature

public EStructuralFeature getEStructuralFeature(int featureID)
Description copied from interface: EClass
Returns the feature with this ID.

Specified by:
getEStructuralFeature in interface EClass
Returns:
the feature with this ID.

getFeatureID

public int getFeatureID(EStructuralFeature feature)

Specified by:
getFeatureID in interface EClass
Returns:
the ID of the feature relative to this class, or -1 if the feature is not in this class.

isAbstract

public boolean isAbstract()

Specified by:
isAbstract in interface EClass
Returns:
the value of the 'Abstract' attribute.
See Also:
EClass.setAbstract(boolean), EcorePackage.getEClass_Abstract()

setAbstract

public void setAbstract(boolean newAbstract)

Specified by:
setAbstract in interface EClass
Parameters:
newAbstract - the new value of the 'Abstract' attribute.
See Also:
EClass.isAbstract()

isInterface

public boolean isInterface()

Specified by:
isInterface in interface EClass
Returns:
the value of the 'Interface' attribute.
See Also:
EClass.setInterface(boolean), EcorePackage.getEClass_Interface()

setInterface

public void setInterface(boolean newInterface)

Specified by:
setInterface in interface EClass
Parameters:
newInterface - the new value of the 'Interface' attribute.
See Also:
EClass.isInterface()

toString

public String toString()

Overrides:
toString in class EClassifierImpl

getESuperTypesGen

public EList getESuperTypesGen()


getESuperTypes

public EList getESuperTypes()
Description copied from interface: EClass
Returns the value of the 'ESuper Types' reference list. The list contents are of type EClass.

It represents the super types in the Java sense, i.e., the super class and the direct implemented interfaces.

Specified by:
getESuperTypes in interface EClass
Returns:
the value of the 'ESuper Types' reference list.
See Also:
EClass.getEAllSuperTypes(), EcorePackage.getEClass_ESuperTypes()

getEOperations

public EList getEOperations()

Specified by:
getEOperations in interface EClass
Returns:
the value of the 'EOperations' containment reference list.
See Also:
EcorePackage.getEClass_EOperations(), EOperation.getEContainingClass()

isSuperTypeOf

public boolean isSuperTypeOf(EClass someClass)
Determines if the class or interface represented by this Class object is either the same as, or is a superclass or superinterface of, the class or interface represented by the specified someClass parameter. Semantics are the same as java.lang.Class#isAssignableFrom

Specified by:
isSuperTypeOf in interface EClass
Parameters:
someClass - some other class.
Returns:
whether this class is the same as, or a super type of, some other class.
See Also:
Class.isAssignableFrom(java.lang.Class)

getEAllSuperTypes

public EList getEAllSuperTypes()
Returns all the supertypes in the hierarchy.

Specified by:
getEAllSuperTypes in interface EClass
Returns:
the value of the 'EAll Super Types' reference list.
See Also:
EcorePackage.getEClass_EAllSuperTypes()

dynamicIsInstance

protected boolean dynamicIsInstance(EObject eObject)
Overrides:
dynamicIsInstance in class EClassifierImpl

getESuperAdapter

public ESuperAdapter getESuperAdapter()
Specified by:
getESuperAdapter in interface ESuperAdapter.Holder

eSetDeliver

public void eSetDeliver(boolean deliver)
Description copied from interface: Notifier
Sets whether this notifier will deliver notifications to the adapters.

Specified by:
eSetDeliver in interface Notifier
Overrides:
eSetDeliver in class EObjectImpl

eObjectForURIFragmentSegment

public EObject eObjectForURIFragmentSegment(String uriFragmentSegment)
Description copied from interface: InternalEObject
Returns the object resolved by the fragment segment.

The fragment segment encoding will typically be of the form returned by eURIFragmentSegment.

Specified by:
eObjectForURIFragmentSegment in interface InternalEObject
Overrides:
eObjectForURIFragmentSegment in class EModelElementImpl

Copyright 2001-2006 IBM Corporation and others.
All Rights Reserved.