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.MinimalEObjectImpl
org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container
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:
- Notifier, EClassifier, EDataType, EEnum, EModelElement, ENamedElement, EObject, EStructuralFeature.Internal.DynamicValueHolder, InternalEObject, BasicExtendedMetaData.EClassifierExtendedMetaData.Holder
public class EEnumImpl
- extends EDataTypeImpl
- implements EEnum
An implementation of the model object 'EEnum'.
The following features are implemented:
Method Summary |
java.lang.Object |
eGet(int featureID,
boolean resolve,
boolean coreType)
|
NotificationChain |
eInverseAdd(InternalEObject otherEnd,
int featureID,
NotificationChain msgs)
|
NotificationChain |
eInverseRemove(InternalEObject otherEnd,
int featureID,
NotificationChain msgs)
|
java.lang.Object |
eInvoke(int operationID,
EList<?> arguments)
|
boolean |
eIsSet(int featureID)
|
void |
eSet(int featureID,
java.lang.Object newValue)
|
protected EClass |
eStaticClass()
|
void |
eUnset(int featureID)
|
protected void |
freeze()
|
java.lang.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(java.lang.String name)
Returns the enum literal with the given name, or null . |
EEnumLiteral |
getEEnumLiteralByLiteral(java.lang.String literal)
Returns the enum literal with the given literal value, or null . |
EList<EEnumLiteral> |
getELiterals()
|
boolean |
isInstance(java.lang.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 |
basicGetEPackage, basicSetInstanceClassName, basicSetInstanceTypeName, dynamicIsInstance, eBasicRemoveFromContainerFeature, eBasicSetContainer, getClassForName, getClassifierID, getEPackage, getEPackageGen, getETypeParameters, getExtendedMetaData, getInstanceClass, getInstanceClassGen, getInstanceClassName, getInstanceClassNameGen, getInstanceTypeName, getPrimitiveOrArrayClass, isSetInstanceClassName, isSetInstanceTypeName, setClassifierID, setExtendedMetaData, setInstanceClass, setInstanceClassName, setInstanceClassNameGen, setInstanceTypeName, setName, unsetInstanceClassName, unsetInstanceTypeName |
Methods inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl |
dynamicGet, dynamicSet, dynamicUnset, eAdapters, eBasicAdapterArray, eBasicAdapters, eBasicHasAdapters, eBasicProperties, eBasicSetAdapterArray, eBasicSetContainerFeatureID, eBasicSetSettings, eBasicSettings, eClass, eContainerFeatureID, eDeliver, eDirectResource, eDynamicClass, eHasSettings, eIsProxy, eProperties, eProxyURI, eSetClass, eSetDeliver, eSetProxyURI, eSettings |
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl |
eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainerAdapterArray, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDynamicBasicRemoveFromContainer, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicInvoke, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eInternalResource, eInverseAdd, eInverseRemove, eInvocationDelegate, eInvoke, eIsSet, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetResource, eSetStore, eSetting, eSettingDelegate, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStaticOperationCount, eStore, eUnset, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues |
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.EObject |
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset |
eLiterals
protected EList<EEnumLiteral> eLiterals
- The cached value of the '
ELiterals
' containment reference list.
- See Also:
getELiterals()
EEnumImpl
protected EEnumImpl()
-
freeze
protected void freeze()
- Overrides:
freeze
in class EModelElementImpl
setDataTypeGeneratedInstanceClass
protected void setDataTypeGeneratedInstanceClass(boolean isGenerated)
- Overrides:
setDataTypeGeneratedInstanceClass
in class EDataTypeImpl
getDefaultValue
public java.lang.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
- Returns:
- the value of the 'Default Value' attribute.
- See Also:
EcorePackage.getEClassifier_DefaultValue()
isInstance
public boolean isInstance(java.lang.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<EEnumLiteral> getELiterals()
-
- Specified by:
getELiterals
in interface EEnum
- Returns:
- the value of the 'ELiterals' containment reference list.
- See Also:
EcorePackage.getEEnum_ELiterals()
,
EEnumLiteral.getEEnum()
eGet
public java.lang.Object eGet(int featureID,
boolean resolve,
boolean coreType)
-
- Specified by:
eGet
in interface InternalEObject
- Overrides:
eGet
in class EDataTypeImpl
- See Also:
InternalEObject.eGet(EStructuralFeature, boolean, boolean)
eSet
public void eSet(int featureID,
java.lang.Object newValue)
-
- Specified by:
eSet
in interface InternalEObject
- Overrides:
eSet
in class EDataTypeImpl
- See Also:
EObject.eSet(EStructuralFeature, Object)
eUnset
public void eUnset(int featureID)
-
- Specified by:
eUnset
in interface InternalEObject
- Overrides:
eUnset
in class EDataTypeImpl
- See Also:
EObject.eUnset(EStructuralFeature)
eIsSet
public boolean eIsSet(int featureID)
-
- Specified by:
eIsSet
in interface InternalEObject
- Overrides:
eIsSet
in class EDataTypeImpl
- See Also:
EObject.eIsSet(EStructuralFeature)
eInvoke
public java.lang.Object eInvoke(int operationID,
EList<?> arguments)
throws java.lang.reflect.InvocationTargetException
-
- Specified by:
eInvoke
in interface InternalEObject
- Overrides:
eInvoke
in class EClassifierImpl
- Throws:
java.lang.reflect.InvocationTargetException
- See Also:
EObject.eInvoke(EOperation, EList>)
getEEnumLiteral
public EEnumLiteral getEEnumLiteral(java.lang.String name)
- Description copied from interface:
EEnum
-
Returns the enum literal with the given name, or
null
.
- Specified by:
getEEnumLiteral
in interface EEnum
- Parameters:
name
- 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
.
getEEnumLiteralByLiteral
public EEnumLiteral getEEnumLiteralByLiteral(java.lang.String literal)
- Description copied from interface:
EEnum
-
Returns the enum literal with the given literal value, or
null
.
- Specified by:
getEEnumLiteralByLiteral
in interface EEnum
- Parameters:
literal
- literal in question.
- Returns:
- the enum literal with the given literal value, or
null
.
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