org.eclipse.emf.ecore.impl
Class EEnumImpl
java.lang.Object
org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.ecore.impl.BasicEObjectImpl
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.EDataTypeImpl
org.eclipse.emf.ecore.impl.EEnumImpl
- All Implemented Interfaces:
- BasicExtendedMetaData.EClassifierExtendedMetaData.Holder, EClassifier, EDataType, EEnum, EModelElement, ENamedElement, EObject, InternalEObject, Notifier
- public class EEnumImpl
- extends EDataTypeImpl
- implements EEnum
An implementation of the model object 'EEnum'.
The following features are implemented:
Method Summary |
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)
|
protected EClass |
eStaticClass()
|
void |
eUnset(EStructuralFeature eFeature)
|
Object |
getDefaultValue()
Returns the value of the 'Default Value' attribute |
EEnumLiteral |
getEEnumLiteral(int intValue)
Returns the enum literal with the given value, or null .
|
EEnumLiteral |
getEEnumLiteral(String stringValue)
Returns the enum literal with the given name, or null . |
EList |
getELiterals()
|
boolean |
isInstance(Object object)
Determines if the specified Object is an instance of this. |
protected void |
setDataTypeGeneratedInstanceClass(boolean isGenerated)
|
Methods inherited from class org.eclipse.emf.ecore.impl.EClassifierImpl |
dynamicIsInstance, getClassForName, getClassifierID, getEPackage, getExtendedMetaData, getInstanceClass, getInstanceClassGen, getInstanceClassName, getInstanceClassNameGen, getPrimitiveOrArrayClass, setClassifierID, setExtendedMetaData, setInstanceClass, setInstanceClassName, setInstanceClassNameGen |
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl |
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eIsProxy, eProperties, eSetClass, eSetDeliver, 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 |
eLiterals
protected EList eLiterals
- The cached value of the '
ELiterals
' containment reference list.
- See Also:
getELiterals()
EEnumImpl
protected EEnumImpl()
setDataTypeGeneratedInstanceClass
protected void setDataTypeGeneratedInstanceClass(boolean isGenerated)
- Overrides:
setDataTypeGeneratedInstanceClass
in class EDataTypeImpl
getDefaultValue
public Object getDefaultValue()
- Description copied from interface:
EClassifier
- Returns the value of the 'Default Value' attribute.
The default value for the type, in the Java sense.
For primitive types, it will be the Java primitive default wrapped appropriately.
For enums
, it will be the first enumerator.
And for all other types derived from java.lang.Object
, it will be null.
- Specified by:
getDefaultValue
in interface EClassifier
- Overrides:
getDefaultValue
in class EDataTypeImpl
isInstance
public boolean isInstance(Object object)
- Determines if the specified Object is an instance of this.
- Specified by:
isInstance
in interface EClassifier
- Overrides:
isInstance
in class EClassifierImpl
- Parameters:
object
- the object in question.
- Returns:
- whether the object is an instance.
- See Also:
Class.isInstance(java.lang.Object)
eStaticClass
protected EClass eStaticClass()
-
- Overrides:
eStaticClass
in class EDataTypeImpl
getELiterals
public EList getELiterals()
-
- Specified by:
getELiterals
in interface EEnum
- Returns:
- the value of the 'ELiterals' containment reference list.
- See Also:
EcorePackage.getEEnum_ELiterals()
,
EEnumLiteral.getEEnum()
eInverseRemove
public NotificationChain eInverseRemove(InternalEObject otherEnd,
int featureID,
Class baseClass,
NotificationChain msgs)
-
- Specified by:
eInverseRemove
in interface InternalEObject
- Overrides:
eInverseRemove
in class EDataTypeImpl
eBasicRemoveFromContainer
public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs)
-
- Specified by:
eBasicRemoveFromContainer
in interface InternalEObject
- Overrides:
eBasicRemoveFromContainer
in class EDataTypeImpl
eGet
public Object eGet(EStructuralFeature eFeature,
boolean resolve)
-
- Specified by:
eGet
in interface EObject
- Overrides:
eGet
in class EDataTypeImpl
eIsSet
public boolean eIsSet(EStructuralFeature eFeature)
-
- Specified by:
eIsSet
in interface EObject
- Overrides:
eIsSet
in class EDataTypeImpl
eSet
public void eSet(EStructuralFeature eFeature,
Object newValue)
-
- Specified by:
eSet
in interface EObject
- Overrides:
eSet
in class EDataTypeImpl
eUnset
public void eUnset(EStructuralFeature eFeature)
-
- Specified by:
eUnset
in interface EObject
- Overrides:
eUnset
in class EDataTypeImpl
getEEnumLiteral
public EEnumLiteral getEEnumLiteral(String stringValue)
- Description copied from interface:
EEnum
-
Returns the enum literal with the given name, or
null
.
- Specified by:
getEEnumLiteral
in interface EEnum
- Parameters:
stringValue
- name in question.
- Returns:
- the enum literal with the given name, or
null
.
getEEnumLiteral
public EEnumLiteral getEEnumLiteral(int intValue)
- Description copied from interface:
EEnum
-
Returns the enum literal with the given value, or
null
.
The values may not be unique; it returns the first.
- Specified by:
getEEnumLiteral
in interface EEnum
- Parameters:
intValue
- value in question.
- Returns:
- the enum literal with the given value, or
null
.
eInverseAdd
public NotificationChain eInverseAdd(InternalEObject otherEnd,
int featureID,
Class baseClass,
NotificationChain msgs)
-
- Specified by:
eInverseAdd
in interface InternalEObject
- Overrides:
eInverseAdd
in class EDataTypeImpl