org.eclipse.emf.ecore.impl
Class EClassImpl

java.lang.Object
  |
  +--org.eclipse.emf.common.notify.impl.NotifierImpl
        |
        +--org.eclipse.emf.ecore.impl.EObjectImpl
              |
              +--org.eclipse.emf.ecore.impl.EModelElementImpl
                    |
                    +--org.eclipse.emf.ecore.impl.ENamedElementImpl
                          |
                          +--org.eclipse.emf.ecore.impl.EClassifierImpl
                                |
                                +--org.eclipse.emf.ecore.impl.EClassImpl
All Implemented Interfaces:
EClass, EClassifier, EModelElement, ENamedElement, EObject, InternalEObject, Notifier

public class EClassImpl
extends EClassifierImpl
implements EClass

An implementation of the model object 'EClass'.

The following features are implemented:


Inner classes inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
EObjectImpl.EPropertiesHolder
 
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  EList eAttributes
          The cached value of the 'EAttributes' containment reference list.
protected  EAttribute eIDAttribute
           
protected  java.util.Map eNameToFeatureMap
           
protected  EList eOperations
          The cached value of the 'EOperations' containment reference list.
protected  EList eReferences
          The cached value of the 'EReferences' 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
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
 
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eContainer, eContainerFeatureID, ELAST_EOBJECT_FLAG, eProperties
 
Fields inherited from class org.eclipse.emf.common.notify.impl.NotifierImpl
eAdapters, EDELIVER, eFlags, ELAST_NOTIFIER_FLAG
 
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)
          
 java.lang.Object eGet(EStructuralFeature eFeature, boolean resolve)
          
 NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, java.lang.Class baseClass, NotificationChain msgs)
          
 NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, java.lang.Class baseClass, NotificationChain msgs)
          
 boolean eIsSet(EStructuralFeature eFeature)
          
 void eSet(EStructuralFeature eFeature, java.lang.Object newValue)
          
 void eSetDeliver(boolean deliver)
          Sets whether this notifier will deliver notifications to the adapters.
protected  EClass eStaticClass()
          
 void eUnset(EStructuralFeature eFeature)
          
 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()
          
 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(java.lang.String name)
           Returns the feature with this name.
 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)
          
 java.lang.String toString()
          
 
Methods inherited from class org.eclipse.emf.ecore.impl.EClassifierImpl
getClassifierID, getDefaultValue, getEPackage, getInstanceClass, getInstanceClassGen, getInstanceClassName, getPrimitiveOrArrayClass, isInstance, setClassifierID, 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
 
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAllContents, eBaseStructuralFeatureID, eBasicSetContainer, eClass, eContainer, eContainerFeatureID, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicIsSet, eDynamicSet, eDynamicUnset, eGet, eInternalResource, eIsProxy, eProperties, eProxyURI, eResource, eSetClass, eSetProxyURI, eSetResource, eSetting, eSettingIndex, eSettings
 
Methods inherited from class org.eclipse.emf.common.notify.impl.NotifierImpl
eAdapters, eDeliver, 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, 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 java.util.Map eNameToFeatureMap

eSuperAdapter

protected ESuperAdapter eSuperAdapter

ABSTRACT_EDEFAULT

protected static final boolean ABSTRACT_EDEFAULT
The default value of the 'Abstract' attribute.
See Also:
isAbstract()

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

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 EList eReferences
The cached value of the 'EReferences' containment reference list.
See Also:
getEReferences()

eAttributes

protected EList eAttributes
The cached value of the 'EAttributes' containment reference list.
See Also:
getEAttributes()
Constructor Detail

EClassImpl

protected EClassImpl()
Method Detail

eStaticClass

protected EClass eStaticClass()
Overrides:
eStaticClass in class EClassifierImpl

getEIDAttribute

public EAttribute getEIDAttribute()
Specified by:
getEIDAttribute in interface EClass
Following copied from interface: org.eclipse.emf.ecore.EClass
Returns:
the value of the 'EID Attribute' reference.
See Also:
EAttribute.isID(), EcorePackage.getEClass_EIDAttribute()

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
Following copied from interface: org.eclipse.emf.ecore.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
Following copied from interface: org.eclipse.emf.ecore.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
Following copied from interface: org.eclipse.emf.ecore.EClass
Returns:
the value of the 'EReferences' containment reference list.
See Also:
EcorePackage.getEClass_EReferences()

getEAttributes

public EList getEAttributes()
Specified by:
getEAttributes in interface EClass
Following copied from interface: org.eclipse.emf.ecore.EClass
Returns:
the value of the 'EAttributes' containment reference list.
See Also:
EcorePackage.getEClass_EAttributes()

getEAllStructuralFeatures

public EList getEAllStructuralFeatures()
Specified by:
getEAllStructuralFeatures in interface EClass
Following copied from interface: org.eclipse.emf.ecore.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
Following copied from interface: org.eclipse.emf.ecore.EClass
Returns:
the value of the 'EAll Operations' reference list.
See Also:
EcorePackage.getEClass_EAllOperations()

eInverseRemove

public NotificationChain eInverseRemove(InternalEObject otherEnd,
                                        int featureID,
                                        java.lang.Class baseClass,
                                        NotificationChain msgs)
Overrides:
eInverseRemove in class EClassifierImpl
Following copied from interface: org.eclipse.emf.ecore.InternalEObject
Returns:
accumulated notifications.

eBasicRemoveFromContainer

public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs)
Overrides:
eBasicRemoveFromContainer in class EClassifierImpl
Following copied from interface: org.eclipse.emf.ecore.InternalEObject
Returns:
accumulated notifications.

getEStructuralFeature

public EStructuralFeature getEStructuralFeature(int featureID)
Description copied from interface: EClass
Returns the feature with this ID.
Specified by:
getEStructuralFeature in interface EClass
Following copied from interface: org.eclipse.emf.ecore.EClass
Returns:
the feature with this ID.

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
Following copied from interface: org.eclipse.emf.ecore.EClass
Returns:
the value of the 'EAll Containments' reference list.
See Also:
EcorePackage.getEClass_EAllContainments()

getEStructuralFeature

public EStructuralFeature getEStructuralFeature(java.lang.String name)
Description copied from interface: EClass
Returns the feature with this name.
Specified by:
getEStructuralFeature in interface EClass
Following copied from interface: org.eclipse.emf.ecore.EClass
Returns:
the feature with this name.

eInverseAdd

public NotificationChain eInverseAdd(InternalEObject otherEnd,
                                     int featureID,
                                     java.lang.Class baseClass,
                                     NotificationChain msgs)
Overrides:
eInverseAdd in class EClassifierImpl
Following copied from interface: org.eclipse.emf.ecore.InternalEObject
Returns:
accumulated notifications.

isAbstract

public boolean isAbstract()
Specified by:
isAbstract in interface EClass
Following copied from interface: org.eclipse.emf.ecore.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
Following copied from interface: org.eclipse.emf.ecore.EClass
Parameters:
value - the new value of the 'Abstract' attribute.
See Also:
EClass.isAbstract()

isInterface

public boolean isInterface()
Specified by:
isInterface in interface EClass
Following copied from interface: org.eclipse.emf.ecore.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
Following copied from interface: org.eclipse.emf.ecore.EClass
Parameters:
value - the new value of the 'Interface' attribute.
See Also:
EClass.isInterface()

eGet

public java.lang.Object eGet(EStructuralFeature eFeature,
                             boolean resolve)
Specified by:
eGet in interface EObject
Overrides:
eGet in class EClassifierImpl
Following copied from interface: org.eclipse.emf.ecore.EObject
Parameters:
feature - the feature of the value to fetch.
resolve - whether to resolve.
Returns:
the value of the given feature of the object.
Throws:
java.lang.IllegalArgumentException - if the feature is not one the meta class's features.
See Also:
InternalEList.basicIterator(), InternalEList.basicList(), EcoreUtil.resolve(EObject, ResourceSet), EObject.eSet(EStructuralFeature, Object), EObject.eUnset(EStructuralFeature), EObject.eIsSet(EStructuralFeature), EObject.eGet(EStructuralFeature)

eIsSet

public boolean eIsSet(EStructuralFeature eFeature)
Specified by:
eIsSet in interface EObject
Overrides:
eIsSet in class EClassifierImpl
Following copied from interface: org.eclipse.emf.ecore.EObject
Parameters:
feature - the feature in question.
Returns:
whether the feature of the object is set.
Throws:
java.lang.IllegalArgumentException - if the feature is not one the meta class's features.
See Also:
EObject.eSet(EStructuralFeature, Object), EObject.eUnset(EStructuralFeature), EObject.eGet(EStructuralFeature, boolean)

eSet

public void eSet(EStructuralFeature eFeature,
                 java.lang.Object newValue)
Specified by:
eSet in interface EObject
Overrides:
eSet in class EClassifierImpl
Following copied from interface: org.eclipse.emf.ecore.EObject
Parameters:
feature - the feature of the value to set.
Throws:
java.lang.IllegalArgumentException - if the feature is not one the meta class's features, or it isn't changeable.
ClassCastException - if there is a type conflict.
ArrayStoreException - if there is a type conflect.
See Also:
EObject.eUnset(EStructuralFeature), EObject.eIsSet(EStructuralFeature), EObject.eGet(EStructuralFeature, boolean)

eUnset

public void eUnset(EStructuralFeature eFeature)
Specified by:
eUnset in interface EObject
Overrides:
eUnset in class EClassifierImpl
Following copied from interface: org.eclipse.emf.ecore.EObject
Parameters:
feature - the feature in question.
Throws:
java.lang.IllegalArgumentException - if the feature is not one the meta class's features, or it isn't changeable.
See Also:
EObject.eIsSet(EStructuralFeature), EObject.eSet(EStructuralFeature, Object), EObject.eGet(EStructuralFeature, boolean)

toString

public java.lang.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
Following copied from interface: org.eclipse.emf.ecore.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
Following copied from interface: org.eclipse.emf.ecore.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
Following copied from interface: org.eclipse.emf.ecore.EClass
Parameters:
somClass - 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
Following copied from interface: org.eclipse.emf.ecore.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()

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 NotifierImpl
Following copied from interface: org.eclipse.emf.common.notify.Notifier
Parameters:
deliver - whether or not to deliver.
See Also:
Notifier.eDeliver()

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