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.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.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  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.EObjectImpl
eAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXY
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
protected EEnumLiteralImpl()
           
 
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)
           
 EEnum getEEnum()
           
 Enumerator getInstance()
           
 int getValue()
           
 void setInstance(Enumerator newInstance)
          Sets the value of the 'Instance' attribute
 void setInstanceGen(Enumerator newInstance)
           
 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, getEAnnotation, getEAnnotations, isFrozen
 
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
 
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, eIsProxy, eResource
 
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()
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()

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,
                                     Class baseClass,
                                     NotificationChain msgs)

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

eInverseRemove

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

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

eBasicRemoveFromContainer

public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs)

Specified by:
eBasicRemoveFromContainer in interface InternalEObject
Overrides:
eBasicRemoveFromContainer in class BasicEObjectImpl

eGet

public Object eGet(EStructuralFeature eFeature,
                   boolean resolve)

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

eIsSet

public boolean eIsSet(EStructuralFeature eFeature)

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

eSet

public void eSet(EStructuralFeature eFeature,
                 Object newValue)

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

eUnset

public void eUnset(EStructuralFeature eFeature)

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

toString

public String toString()
Description copied from class: ENamedElementImpl

Overrides:
toString in class ENamedElementImpl

toStringGen

public String toStringGen()


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