org.eclipse.emf.codegen.ecore.genmodel.impl
Class GenEnumLiteralImpl

java.lang.Object
  |
  +--org.eclipse.emf.common.notify.impl.NotifierImpl
        |
        +--org.eclipse.emf.ecore.impl.EObjectImpl
              |
              +--org.eclipse.emf.codegen.ecore.genmodel.impl.GenBaseImpl
                    |
                    +--org.eclipse.emf.codegen.ecore.genmodel.impl.GenEnumLiteralImpl
All Implemented Interfaces:
EObject, GenBase, GenEnumLiteral, InternalEObject, Notifier

public class GenEnumLiteralImpl
extends GenBaseImpl
implements GenEnumLiteral

An implementation of the model object 'Gen Enum Literal'.

The following features are implemented:


Inner classes inherited from class org.eclipse.emf.codegen.ecore.genmodel.impl.GenBaseImpl
GenBaseImpl.ColorInformation, GenBaseImpl.GenClassFilter, GenBaseImpl.GenFeatureFilter, GenBaseImpl.GenOperationFilter, GenBaseImpl.GIFEmitter, GenBaseImpl.ImportManager, GenBaseImpl.UniqueNameHelper
 
Inner classes inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
EObjectImpl.EPropertiesHolder, EObjectImpl.EPropertiesHolderImpl
 
Field Summary
protected  EEnumLiteral ecoreEnumLiteral
          The cached value of the 'Ecore Enum Literal' reference.
 
Fields inherited from class org.eclipse.emf.codegen.ecore.genmodel.impl.GenBaseImpl
ecoreGenPackage, javaLangTypes, javaReservedWords, theEcorePackage
 
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eContainer, eContainerFeatureID, ELAST_EOBJECT_FLAG, eProperties
 
Fields inherited from class org.eclipse.emf.common.notify.impl.NotifierImpl
eAdapters, EDELIVER, eFlags, ELAST_NOTIFIER_FLAG
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
protected GenEnumLiteralImpl()
          
 
Method Summary
 EEnumLiteral basicGetEcoreEnumLiteral()
          
 NotificationChain eBasicRemoveFromContainer(NotificationChain msgs)
          
 java.lang.Object eGet(EStructuralFeature eFeature, boolean resolve)
          
 NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, java.lang.Class baseClass, NotificationChain msgs)
          
 NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, java.lang.Class baseClass, NotificationChain msgs)
          
 boolean eIsSet(EStructuralFeature eFeature)
          
 void eSet(EStructuralFeature eFeature, java.lang.Object newValue)
          
protected  EClass eStaticClass()
          
 void eUnset(EStructuralFeature eFeature)
          
 java.lang.String getCapName()
           
 EEnumLiteral getEcoreEnumLiteral()
          
 java.lang.String getEnumLiteralAccessorName()
           
 java.lang.String getEnumLiteralID()
           
 java.lang.String getFormattedName()
           
 GenEnum getGenEnum()
          
 GenPackage getGenPackage()
           
 java.lang.String getModelInfo()
           
 java.lang.String getName()
           
 int getValue()
           
 void initialize(EEnumLiteral eEnumLiteral)
           
 boolean reconcile()
           
 boolean reconcile(GenEnumLiteral oldGenEnumLiteralVersion)
           
protected  void reconcileSettings(GenEnumLiteral oldGenEnumLiteralVersion)
           
 void setEcoreEnumLiteral(EEnumLiteral newEcoreEnumLiteral)
          
 void setGenEnum(GenEnum newGenEnum)
          
 
Methods inherited from class org.eclipse.emf.codegen.ecore.genmodel.impl.GenBaseImpl
appendModelSetting, appendModelSetting, canGenerate, canGenerateEdit, canGenerateEditor, capName, collectGenClasses, collectGenFeatures, collectGenOperations, eObjectForURIFragmentSegment, ePackageGenModel, eURIFragmentSegment, filterGenClasses, findGenClass, findGenClassifier, findGenDataType, findGenEnum, findGenFeature, findGenPackage, findGenPackageHelper, findOrCreateContainer, format, generate, generate, generate, generate, generate, generateEdit, generateEditor, getAllGenPackages, getGenModel, getImplClassName, getImportedType, getImportManager, getInstanceClass, getJavaLangTypes, getJavaReservedWords, getPrimitiveDefault, getPrimitiveObjectType, getType, getTypeGenClasses, hasModelContribution, isJavaUtilMapEntry, isPrimitiveType, parseName, safeName, setImportManager, uncapName, uncapPrefixedName, unicodeEscapeEncode
 
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAllContents, eBaseStructuralFeatureID, eBasicSetContainer, eBasicSetContainer, eClass, eContainer, eContainerFeatureID, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicFeatureID, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicIsSet, eDynamicSet, eDynamicUnset, eGet, eHasSettings, eInternalContainer, eInternalResource, eIsProxy, eProperties, eProxyURI, eResource, eSetClass, eSetProxyURI, eSetResource, eSetting, eSettingDelegate, eSettings, eStaticFeatureCount, toString
 
Methods inherited from class org.eclipse.emf.common.notify.impl.NotifierImpl
eAdapters, eDeliver, eNotificationRequired, eNotify, eSetDeliver
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.emf.codegen.ecore.genmodel.GenBase
canGenerate, canGenerateEdit, canGenerateEditor, capName, ePackageGenModel, format, generate, generateEdit, generateEditor, getGenModel, safeName, uncapName, uncapPrefixedName
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, 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.ecore.InternalEObject
eNotificationRequired
 

Field Detail

ecoreEnumLiteral

protected EEnumLiteral ecoreEnumLiteral
The cached value of the 'Ecore Enum Literal' reference.
See Also:
getEcoreEnumLiteral()
Constructor Detail

GenEnumLiteralImpl

protected GenEnumLiteralImpl()
Method Detail

eStaticClass

protected EClass eStaticClass()
Overrides:
eStaticClass in class GenBaseImpl

getGenEnum

public GenEnum getGenEnum()
Specified by:
getGenEnum in interface GenEnumLiteral
Following copied from interface: org.eclipse.emf.codegen.ecore.genmodel.GenEnumLiteral
Returns:
the value of the 'Gen Enum' container reference.
See Also:
GenEnumLiteral.setGenEnum(GenEnum), GenModelPackage.getGenEnumLiteral_GenEnum(), GenEnum.getGenEnumLiterals()

setGenEnum

public void setGenEnum(GenEnum newGenEnum)
Specified by:
setGenEnum in interface GenEnumLiteral
Following copied from interface: org.eclipse.emf.codegen.ecore.genmodel.GenEnumLiteral
Parameters:
value - the new value of the 'Gen Enum' container reference.
See Also:
GenEnumLiteral.getGenEnum()

getEcoreEnumLiteral

public EEnumLiteral getEcoreEnumLiteral()
Specified by:
getEcoreEnumLiteral in interface GenEnumLiteral
Following copied from interface: org.eclipse.emf.codegen.ecore.genmodel.GenEnumLiteral
Returns:
the value of the 'Ecore Enum Literal' reference.
See Also:
GenEnumLiteral.setEcoreEnumLiteral(EEnumLiteral), GenModelPackage.getGenEnumLiteral_EcoreEnumLiteral()

basicGetEcoreEnumLiteral

public EEnumLiteral basicGetEcoreEnumLiteral()

setEcoreEnumLiteral

public void setEcoreEnumLiteral(EEnumLiteral newEcoreEnumLiteral)
Specified by:
setEcoreEnumLiteral in interface GenEnumLiteral
Following copied from interface: org.eclipse.emf.codegen.ecore.genmodel.GenEnumLiteral
Parameters:
value - the new value of the 'Ecore Enum Literal' reference.
See Also:
GenEnumLiteral.getEcoreEnumLiteral()

eInverseAdd

public NotificationChain eInverseAdd(InternalEObject otherEnd,
                                     int featureID,
                                     java.lang.Class baseClass,
                                     NotificationChain msgs)
Overrides:
eInverseAdd in class EObjectImpl
Following copied from interface: org.eclipse.emf.ecore.InternalEObject
Returns:
accumulated notifications.

eInverseRemove

public NotificationChain eInverseRemove(InternalEObject otherEnd,
                                        int featureID,
                                        java.lang.Class baseClass,
                                        NotificationChain msgs)
Overrides:
eInverseRemove in class EObjectImpl
Following copied from interface: org.eclipse.emf.ecore.InternalEObject
Returns:
accumulated notifications.

eBasicRemoveFromContainer

public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs)
Overrides:
eBasicRemoveFromContainer in class EObjectImpl
Following copied from interface: org.eclipse.emf.ecore.InternalEObject
Returns:
accumulated notifications.

eGet

public java.lang.Object eGet(EStructuralFeature eFeature,
                             boolean resolve)
Specified by:
eGet in interface EObject
Overrides:
eGet in class EObjectImpl
Following copied from interface: org.eclipse.emf.ecore.EObject
Parameters:
feature - the feature of the value to fetch.
resolve - whether to resolve.
Returns:
the value of the given feature of the object.
Throws:
java.lang.IllegalArgumentException - if the feature is not one the meta class's features.
See Also:
InternalEList.basicIterator(), InternalEList.basicList(), EcoreUtil.resolve(EObject, ResourceSet), EObject.eSet(EStructuralFeature, Object), EObject.eUnset(EStructuralFeature), EObject.eIsSet(EStructuralFeature), EObject.eGet(EStructuralFeature)

eIsSet

public boolean eIsSet(EStructuralFeature eFeature)
Specified by:
eIsSet in interface EObject
Overrides:
eIsSet in class EObjectImpl
Following copied from interface: org.eclipse.emf.ecore.EObject
Parameters:
feature - the feature in question.
Returns:
whether the feature of the object is set.
Throws:
java.lang.IllegalArgumentException - if the feature is not one the meta class's features.
See Also:
EObject.eSet(EStructuralFeature, Object), EObject.eUnset(EStructuralFeature), EObject.eGet(EStructuralFeature, boolean)

eSet

public void eSet(EStructuralFeature eFeature,
                 java.lang.Object newValue)
Specified by:
eSet in interface EObject
Overrides:
eSet in class EObjectImpl
Following copied from interface: org.eclipse.emf.ecore.EObject
Parameters:
feature - the feature of the value to set.
Throws:
java.lang.IllegalArgumentException - if the feature is not one the meta class's features, or it isn't changeable.
java.lang.ClassCastException - if there is a type conflict.
ArrayStoreException - if there is a type conflect.
See Also:
EObject.eUnset(EStructuralFeature), EObject.eIsSet(EStructuralFeature), EObject.eGet(EStructuralFeature, boolean)

eUnset

public void eUnset(EStructuralFeature eFeature)
Specified by:
eUnset in interface EObject
Overrides:
eUnset in class EObjectImpl
Following copied from interface: org.eclipse.emf.ecore.EObject
Parameters:
feature - the feature in question.
Throws:
java.lang.IllegalArgumentException - if the feature is not one the meta class's features, or it isn't changeable.
See Also:
EObject.eIsSet(EStructuralFeature), EObject.eSet(EStructuralFeature, Object), EObject.eGet(EStructuralFeature, boolean)

getName

public java.lang.String getName()
Specified by:
getName in interface GenEnumLiteral
Overrides:
getName in class GenBaseImpl

getCapName

public java.lang.String getCapName()
Specified by:
getCapName in interface GenEnumLiteral

getFormattedName

public java.lang.String getFormattedName()
Specified by:
getFormattedName in interface GenEnumLiteral

getValue

public int getValue()
Specified by:
getValue in interface GenEnumLiteral

getEnumLiteralID

public java.lang.String getEnumLiteralID()
Specified by:
getEnumLiteralID in interface GenEnumLiteral

getGenPackage

public GenPackage getGenPackage()
Specified by:
getGenPackage in interface GenEnumLiteral

getEnumLiteralAccessorName

public java.lang.String getEnumLiteralAccessorName()
Specified by:
getEnumLiteralAccessorName in interface GenEnumLiteral

initialize

public void initialize(EEnumLiteral eEnumLiteral)
Specified by:
initialize in interface GenEnumLiteral

getModelInfo

public java.lang.String getModelInfo()
Specified by:
getModelInfo in interface GenEnumLiteral
Overrides:
getModelInfo in class GenBaseImpl

reconcile

public boolean reconcile(GenEnumLiteral oldGenEnumLiteralVersion)
Specified by:
reconcile in interface GenEnumLiteral

reconcileSettings

protected void reconcileSettings(GenEnumLiteral oldGenEnumLiteralVersion)

reconcile

public boolean reconcile()
Specified by:
reconcile in interface GenBase

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