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.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.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  boolean abstract_
          The cached value of the 'Abstract' attribute
protected static boolean ABSTRACT_EDEFAULT
          The default value of the 'Abstract' attribute
protected  BasicEList eAllAttributes
           
protected  BasicEList eAllContainments
           
protected  BasicEList eAllOperations
           
protected  BasicEList eAllReferences
           
protected  BasicEList eAllStructuralFeatures
           
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  boolean interface_
          The cached value of the 'Interface' attribute
protected static boolean INTERFACE_EDEFAULT
          The default 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.EObjectImpl
eAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXY
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
protected EClassImpl()
           
 
Method Summary
protected  boolean dynamicIsInstance(EObject eObject)
           
 NotificationChain eBasicRemoveFromContainer(NotificationChain msgs)
           
 Object eGet(EStructuralFeature eFeature, boolean resolve)
           
 NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs)
           
 NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs)
           
 boolean eIsSet(EStructuralFeature eFeature)
           
 void eSet(EStructuralFeature eFeature, Object newValue)
           
 void eSetDeliver(boolean deliver)
          Sets whether this notifier will deliver notifications to the adapters.
protected  EClass eStaticClass()
           
 void eUnset(EStructuralFeature eFeature)
           
 void freeze()
           
 EList getEAllAttributes()
          Returns the value of the 'EAll Attributes' reference list.
 EList getEAllAttributesGen()
           
 EList getEAllContainments()
          Returns the value of the 'EAll Containments' reference list.
 EList getEAllContainmentsGen()
           
 EList getEAllOperations()
          Returns the value of the 'EAll Operations' reference list.
 EList getEAllOperationsGen()
           
 EList getEAllReferences()
          Returns the value of the 'EAll References' reference list.
 EList getEAllReferencesGen()
           
 EList getEAllStructuralFeatures()
          Returns the value of the 'EAll Structural Features' reference list.
 EList getEAllStructuralFeaturesGen()
           
 EList getEAllSuperTypes()
          Returns the value of the 'EAll Super Types' reference list.
 EList getEAllSuperTypesGen()
          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()
           
 boolean isAbstract()
           
 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
getClassForName, getClassifierID, getDefaultValue, getEPackage, 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
eObjectForURIFragmentSegment, eURIFragmentSegment, getEAnnotation, getEAnnotations, isFrozen
 
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eIsProxy, eProperties, eSetClass, eSetProxyURI
 
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAllContents, eBaseStructuralFeatureID, eBasicSetContainer, eContainer, eContainingFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicIsSet, eDynamicSet, eDynamicUnset, eGet, eHasSettings, eInternalResource, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eResolveProxy, eResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eStaticFeatureCount, eStore
 
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, eIsProxy, eResource
 
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

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_

protected boolean abstract_
The cached value of the 'Abstract' attribute.

See Also:
isAbstract()

INTERFACE_EDEFAULT

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

See Also:
isInterface(), Constant Field Values

interface_

protected boolean interface_
The cached value of the 'Interface' attribute.

See Also:
isInterface()

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

public void freeze()
Overrides:
freeze 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()

getEAllAttributesGen

public EList getEAllAttributesGen()

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()

getEAllReferencesGen

public EList getEAllReferencesGen()

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()

getEAllStructuralFeaturesGen

public EList getEAllStructuralFeaturesGen()


getEAllStructuralFeatures

public EList getEAllStructuralFeatures()
Description copied from interface: EClass
Returns the value of the 'EAll Structural Features' reference list. The list contents are of type EStructuralFeature.

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

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

getEAllOperationsGen

public EList getEAllOperationsGen()


getEAllOperations

public EList getEAllOperations()
Description copied from interface: EClass
Returns the value of the 'EAll Operations' reference list. The list contents are of type EOperation.

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

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

eInverseRemove

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

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

eBasicRemoveFromContainer

public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs)

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

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.

getEAllContainmentsGen

public EList getEAllContainmentsGen()

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,
                                     Class baseClass,
                                     NotificationChain msgs)

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

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()

eGet

public Object eGet(EStructuralFeature eFeature,
                   boolean resolve)

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

eIsSet

public boolean eIsSet(EStructuralFeature eFeature)

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

eSet

public void eSet(EStructuralFeature eFeature,
                 Object newValue)

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

eUnset

public void eUnset(EStructuralFeature eFeature)

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

toString

public String toString()

Overrides:
toString in class EClassifierImpl

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()

getESuperTypesGen

public EList getESuperTypesGen()


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)

getEAllSuperTypesGen

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


getEAllSuperTypes

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

It represents the closure of all inherited super types.

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

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