public class EEnumLiteralImpl extends ENamedElementImpl implements EEnumLiteral
The following features are implemented:
MinimalEObjectImpl.Container.Dynamic
MinimalEObjectImpl.Container
BasicEObjectImpl.EPropertiesHolder, BasicEObjectImpl.EPropertiesHolderBaseImpl, BasicEObjectImpl.EPropertiesHolderImpl
BasicNotifierImpl.EAdapterList<E extends java.lang.Object & Adapter>, BasicNotifierImpl.EObservableAdapterList
InternalEObject.EStore
Modifier and Type | Field and Description |
---|---|
protected Enumerator |
generatedInstance
This stores the default or generated instance value.
|
protected Enumerator |
instance
The cached value of the '
Instance ' attribute |
protected static Enumerator |
INSTANCE_EDEFAULT
The default value of the '
Instance ' attribute |
protected java.lang.String |
literal
The cached value of the '
Literal ' attribute |
protected static java.lang.String |
LITERAL_EDEFAULT
The default value of the '
Literal ' attribute |
protected int |
value
The cached value of the '
Value ' attribute |
protected static int |
VALUE_EDEFAULT
The default value of the '
Value ' attribute |
name, NAME_EDEFAULT
eAnnotations, eFlags, EFROZEN, ELAST_EMODEL_ELEMENT_FLAG
eContainer
EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSET
NIL
EOPPOSITE_FEATURE_BASE
Modifier | Constructor and Description |
---|---|
protected |
EEnumLiteralImpl() |
Modifier and Type | Method and Description |
---|---|
NotificationChain |
eBasicRemoveFromContainerFeature(NotificationChain msgs) |
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) |
boolean |
eIsSet(int featureID) |
void |
eSet(int featureID,
java.lang.Object newValue) |
protected EClass |
eStaticClass() |
void |
eUnset(int featureID) |
EEnum |
getEEnum() |
Enumerator |
getInstance() |
java.lang.String |
getLiteral()
Returns the value of the 'Literal' attribute
|
java.lang.String |
getLiteralGen() |
int |
getValue() |
void |
setGeneratedInstance(boolean isGenerated) |
void |
setInstance(Enumerator newInstance)
Sets the value of the '
Instance ' attribute |
void |
setInstanceGen(Enumerator newInstance) |
void |
setLiteral(java.lang.String newLiteral) |
void |
setValue(int newValue) |
java.lang.String |
toString() |
java.lang.String |
toStringGen() |
eContents, eCrossReferences, getName, getNameGen, setName
eInvoke, eObjectForURIFragmentSegment, eSetDirectResource, eURIFragmentSegment, freeze, freeze, getEAnnotation, getEAnnotations, isFrozen, setFrozen
eBasicSetContainer, eInternalContainer
dynamicGet, dynamicSet, dynamicUnset, eAdapters, eBasicAdapterArray, eBasicAdapterListeners, eBasicAdapters, eBasicHasAdapters, eBasicProperties, eBasicSetAdapterArray, eBasicSetAdapterListeners, eBasicSetContainer, eBasicSetContainerFeatureID, eBasicSetSettings, eBasicSettings, eClass, eContainerFeatureID, eDeliver, eDirectResource, eDynamicClass, eHasSettings, eIsProxy, eProperties, eProxyURI, eSetClass, eSetDeliver, eSetProxyURI, eSettings
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
eNotificationRequired, eNotify
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getName, setName
getEAnnotation, getEAnnotations
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
eAdapters, eDeliver, eNotify, eSetDeliver
getName
eNotificationRequired
protected static final int VALUE_EDEFAULT
Value
' attribute.
getValue()
,
Constant Field Valuesprotected int value
Value
' attribute.
getValue()
protected static final Enumerator INSTANCE_EDEFAULT
Instance
' attribute.
getInstance()
protected Enumerator instance
Instance
' attribute.
getInstance()
protected static final java.lang.String LITERAL_EDEFAULT
Literal
' attribute.
getLiteral()
protected java.lang.String literal
Literal
' attribute.
getLiteral()
protected Enumerator generatedInstance
protected EClass eStaticClass()
eStaticClass
in class ENamedElementImpl
public int getValue()
getValue
in interface Enumerator
getValue
in interface EEnumLiteral
EEnumLiteral.setValue(int)
,
EcorePackage.getEEnumLiteral_Value()
public void setValue(int newValue)
setValue
in interface EEnumLiteral
newValue
- the new value of the 'Value' attribute.EEnumLiteral.getValue()
public Enumerator getInstance()
getInstance
in interface EEnumLiteral
EEnumLiteral.setInstance(Enumerator)
,
EcorePackage.getEEnumLiteral_Instance()
public void setGeneratedInstance(boolean isGenerated)
public void setInstanceGen(Enumerator newInstance)
public void setInstance(Enumerator newInstance)
EEnumLiteral
Instance
' attribute.
setInstance
in interface EEnumLiteral
newInstance
- the new value of the 'Instance' attribute.EEnumLiteral.getInstance()
public java.lang.String getLiteralGen()
public java.lang.String getLiteral()
EEnumLiteral
This is the literal, string value that represents this enumerator value.
This is used in persisting instances of enumerated type.
If set to null
, it will return the
name
, instead.
getLiteral
in interface Enumerator
getLiteral
in interface EEnumLiteral
EEnumLiteral.setLiteral(String)
,
EcorePackage.getEEnumLiteral_Literal()
public void setLiteral(java.lang.String newLiteral)
setLiteral
in interface EEnumLiteral
newLiteral
- the new value of the 'Literal' attribute.EEnumLiteral.getLiteral()
public EEnum getEEnum()
getEEnum
in interface EEnumLiteral
EcorePackage.getEEnumLiteral_EEnum()
,
EEnum.getELiterals()
public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs)
eInverseAdd
in class EModelElementImpl
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
eInverseRemove
in class EModelElementImpl
public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs)
eBasicRemoveFromContainerFeature
in class BasicEObjectImpl
public java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
eGet
in interface InternalEObject
eGet
in class ENamedElementImpl
InternalEObject.eGet(EStructuralFeature, boolean, boolean)
public void eSet(int featureID, java.lang.Object newValue)
eSet
in interface InternalEObject
eSet
in class ENamedElementImpl
EObject.eSet(EStructuralFeature, Object)
public void eUnset(int featureID)
eUnset
in interface InternalEObject
eUnset
in class ENamedElementImpl
EObject.eUnset(EStructuralFeature)
public boolean eIsSet(int featureID)
eIsSet
in interface InternalEObject
eIsSet
in class ENamedElementImpl
EObject.eIsSet(EStructuralFeature)
public java.lang.String toString()
ENamedElementImpl
toString
in class ENamedElementImpl
public java.lang.String toStringGen()