org.eclipse.emf.ecore.impl
Class EEnumLiteralImpl

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.FlatEObjectImpl
                  extended byorg.eclipse.emf.ecore.impl.EModelElementImpl
                      extended byorg.eclipse.emf.ecore.impl.ENamedElementImpl
                          extended byorg.eclipse.emf.ecore.impl.EEnumLiteralImpl
All Implemented Interfaces:
EEnumLiteral, EModelElement, ENamedElement, Enumerator, EObject, InternalEObject, Notifier

public class EEnumLiteralImpl
extends ENamedElementImpl
implements EEnumLiteral

An implementation of the model object 'EEnum Literal'.

The following features are implemented:


Nested Class Summary
 
Nested classes inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
BasicEObjectImpl.EPropertiesHolder, BasicEObjectImpl.EPropertiesHolderBaseImpl, 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  Enumerator instance
          The cached value of the 'Instance' attribute
protected static Enumerator INSTANCE_EDEFAULT
          The default value of the 'Instance' attribute
protected  String literal
          The cached value of the 'Literal' attribute
protected static 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
 
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.FlatEObjectImpl
eContents, eCrossReferences, eProxyURI
 
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 class org.eclipse.emf.ecore.impl.BasicEObjectImpl
EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSET
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
protected EEnumLiteralImpl()
           
 
Method Summary
 NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs)
           
 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, Object newValue)
           
protected  EClass eStaticClass()
           
 void eUnset(int featureID)
           
 EEnum getEEnum()
           
 Enumerator getInstance()
           
 String getLiteral()
          Returns the value of the 'Literal' attribute
 String getLiteralGen()
           
 int getValue()
           
 void setInstance(Enumerator newInstance)
          Sets the value of the 'Instance' attribute
 void setInstanceGen(Enumerator newInstance)
           
 void setLiteral(String newLiteral)
           
 void setValue(int newValue)
           
 String toString()
           
 String toStringGen()
           
 
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, freeze, freeze, getEAnnotation, getEAnnotations, isFrozen, setFrozen
 
Methods inherited from class org.eclipse.emf.ecore.impl.FlatEObjectImpl
eContents, eCrossReferences, eIsProxy, eProperties, eProxyURI, eSetProxyURI
 
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eSetClass, eSetDeliver
 
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eHasSettings, eInternalResource, eInverseAdd, eInverseRemove, eIsSet, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetDirectResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStore, eUnset, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues
 
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.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, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 
Methods inherited from interface org.eclipse.emf.common.util.Enumerator
getName
 
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject
eNotificationRequired
 

Field Detail

VALUE_EDEFAULT

protected static final int VALUE_EDEFAULT
The default value of the 'Value' attribute.

See Also:
getValue(), Constant Field Values

value

protected int value
The cached value of the 'Value' attribute.

See Also:
getValue()

INSTANCE_EDEFAULT

protected static final Enumerator INSTANCE_EDEFAULT
The default value of the 'Instance' attribute.

See Also:
getInstance()

instance

protected Enumerator instance
The cached value of the 'Instance' attribute.

See Also:
getInstance()

LITERAL_EDEFAULT

protected static final String LITERAL_EDEFAULT
The default value of the 'Literal' attribute.

See Also:
getLiteral()

literal

protected String literal
The cached value of the 'Literal' attribute.

See Also:
getLiteral()
Constructor Detail

EEnumLiteralImpl

protected EEnumLiteralImpl()

Method Detail

eStaticClass

protected EClass eStaticClass()

Overrides:
eStaticClass in class ENamedElementImpl

getValue

public int getValue()

Specified by:
getValue in interface EEnumLiteral
Returns:
the value of the 'Value' attribute.
See Also:
EEnumLiteral.setValue(int), EcorePackage.getEEnumLiteral_Value()

setValue

public void setValue(int newValue)

Specified by:
setValue in interface EEnumLiteral
Parameters:
newValue - the new value of the 'Value' attribute.
See Also:
EEnumLiteral.getValue()

getInstance

public Enumerator getInstance()

Specified by:
getInstance in interface EEnumLiteral
Returns:
the value of the 'Instance' attribute.
See Also:
EEnumLiteral.setInstance(Enumerator), EcorePackage.getEEnumLiteral_Instance()

setInstanceGen

public void setInstanceGen(Enumerator newInstance)


setInstance

public void setInstance(Enumerator newInstance)
Description copied from interface: EEnumLiteral
Sets the value of the 'Instance' attribute.

Specified by:
setInstance in interface EEnumLiteral
Parameters:
newInstance - the new value of the 'Instance' attribute.
See Also:
EEnumLiteral.getInstance()

getLiteralGen

public String getLiteralGen()


getLiteral

public String getLiteral()
Description copied from interface: EEnumLiteral
Returns the value of the 'Literal' attribute.

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.

Specified by:
getLiteral in interface EEnumLiteral
Returns:
the value of the 'Literal' attribute.
See Also:
EEnumLiteral.setLiteral(String), EcorePackage.getEEnumLiteral_Literal()

setLiteral

public void setLiteral(String newLiteral)

Specified by:
setLiteral in interface EEnumLiteral
Parameters:
newLiteral - the new value of the 'Literal' attribute.
See Also:
EEnumLiteral.getLiteral()

getEEnum

public EEnum getEEnum()

Specified by:
getEEnum in interface EEnumLiteral
Returns:
the value of the 'EEnum' container reference.
See Also:
EcorePackage.getEEnumLiteral_EEnum(), EEnum.getELiterals()

eInverseAdd

public NotificationChain eInverseAdd(InternalEObject otherEnd,
                                     int featureID,
                                     NotificationChain msgs)

Overrides:
eInverseAdd in class EModelElementImpl

eInverseRemove

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

Overrides:
eInverseRemove in class EModelElementImpl

eBasicRemoveFromContainerFeature

public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs)

Overrides:
eBasicRemoveFromContainerFeature in class BasicEObjectImpl

eGet

public Object eGet(int featureID,
                   boolean resolve,
                   boolean coreType)

Specified by:
eGet in interface InternalEObject
Overrides:
eGet in class ENamedElementImpl

eSet

public void eSet(int featureID,
                 Object newValue)

Specified by:
eSet in interface InternalEObject
Overrides:
eSet in class ENamedElementImpl

eUnset

public void eUnset(int featureID)

Specified by:
eUnset in interface InternalEObject
Overrides:
eUnset in class ENamedElementImpl

eIsSet

public boolean eIsSet(int featureID)

Specified by:
eIsSet in interface InternalEObject
Overrides:
eIsSet in class ENamedElementImpl

toString

public String toString()
Description copied from class: ENamedElementImpl

Overrides:
toString in class ENamedElementImpl

toStringGen

public String toStringGen()


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