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

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.codegen.ecore.genmodel.impl.GenBaseImpl
                  extended byorg.eclipse.emf.codegen.ecore.genmodel.impl.GenClassifierImpl
                      extended byorg.eclipse.emf.codegen.ecore.genmodel.impl.GenDataTypeImpl
                          extended byorg.eclipse.emf.codegen.ecore.genmodel.impl.GenEnumImpl
All Implemented Interfaces:
EObject, GenBase, GenClassifier, GenDataType, GenEnum, InternalEObject, Notifier

public class GenEnumImpl
extends GenDataTypeImpl
implements GenEnum

An implementation of the model object 'Gen Enum'.

The following features are implemented:


Nested Class Summary
 
Nested classes inherited from class org.eclipse.emf.codegen.ecore.genmodel.impl.GenBaseImpl
GenBaseImpl.AnnotationFilter, GenBaseImpl.AnnotationFilterImpl, GenBaseImpl.ColorInformation, GenBaseImpl.EclipseUtil, GenBaseImpl.GenAnnotationCopier, GenBaseImpl.GenClassFilter, GenBaseImpl.GenConstraintFilter, GenBaseImpl.GenFeatureFilter, GenBaseImpl.GenOperationFilter, GenBaseImpl.GIFEmitter, GenBaseImpl.UniqueNameHelper
 
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  EEnum ecoreEnum
          The cached value of the 'Ecore Enum' reference
protected  EList genEnumLiterals
          The cached value of the 'Gen Enum Literals' containment reference list
 
Fields inherited from class org.eclipse.emf.codegen.ecore.genmodel.impl.GenDataTypeImpl
ecoreDataType, xmlCalendarTypes
 
Fields inherited from class org.eclipse.emf.codegen.ecore.genmodel.impl.GenBaseImpl
DEFAULT_ANNOTATION_FILTER, ecoreGenPackage, EMPTY_URI, genAnnotations, PLATFORM_RESOURCE_URI, xmlNamespaceGenPackage, xmlTypeGenPackage
 
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 GenEnumImpl()
           
 
Method Summary
 EEnum basicGetEcoreEnum()
           
 boolean canGenerateEdit()
           
 boolean canGenerateEditor()
           
 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)
           
 void generate(Monitor progressMonitor)
          Deprecated. In EMF 2.2, a Generator should be used to generate code. This method will be removed after 2.2.
 EClassifier getEcoreClassifier()
           
 EDataType getEcoreDataType()
          Returns the value of the 'Ecore Data Type' reference
 EEnum getEcoreEnum()
           
 String getEnumLiteralID(GenEnumLiteral genEnumLiteral)
           
 int getEnumLiteralValue(GenEnumLiteral genEnumLiteral)
           
 GenEnumLiteral getGenEnumLiteral(String literalName)
           
 EList getGenEnumLiterals()
           
 String getImportedMetaType()
           
 String getImportedName()
           
 String getQualifiedName()
           
 String getRawQualifiedInstanceClassName()
           
 String getStaticValue(String literal)
           
 List getUniqueValuedGenEnumLiterals()
           
protected  boolean hasModelContribution()
           
 void initialize(EEnum eEnum)
           
 boolean isSerializable()
           
 boolean reconcile()
           
 boolean reconcile(GenEnum oldGenEnumVersion)
           
protected  void reconcileSettings(GenEnum oldGenEnumVersion)
           
 void setEcoreEnum(EEnum newEcoreEnum)
           
 
Methods inherited from class org.eclipse.emf.codegen.ecore.genmodel.impl.GenDataTypeImpl
basicGetEcoreDataType, getAllGenConstraints, getBaseType, getConstraintDelegate, getConstraintImplementor, getEffectiveItemType, getEffectiveMemberTypes, getEnumerationLiterals, getFractionDigits, getGenConstraints, getGeneratedInstanceClassFlag, getImportedInstanceClassName, getItemType, getLengthAccessorFunction, getMaxLength, getMaxLiteral, getMemberTypes, getMinLength, getMinLiteral, getModelInfo, getObjectInstanceClassName, getObjectType, getPatterns, getPrimitiveValueFunction, getQualifiedInstanceClassName, getSerializableFlag, getTotalDigits, getWhiteSpace, initialize, isArrayType, isMaxInclusive, isMinInclusive, isObjectType, isPrimitiveType, isXMLBoolean, isXMLCalendar, isXMLDuration, reconcile, reconcileSettings, setEcoreDataType
 
Methods inherited from class org.eclipse.emf.codegen.ecore.genmodel.impl.GenClassifierImpl
getClassifierAccessorName, getClassifierID, getClassifierInstanceName, getEcoreModelElement, getFormattedName, getGenPackage, getMetaType, getName, getQualifiedClassifierAccessor, getSafeUncapName, getUncapName, hasOnlyDefaultConstraints
 
Methods inherited from class org.eclipse.emf.codegen.ecore.genmodel.impl.GenBaseImpl
addNonDuplicates, appendAnnotationInfo, appendAnnotationInfo, appendAnnotationInfo, appendLineBreak, appendModelSetting, appendModelSetting, canGenerate, canGenerateSchema, canGenerateTests, capName, collectGenClasses, collectGenConstraints, collectGenFeatures, collectGenOperations, createInputStream, createMonitor, createOutputStream, eObjectForURIFragmentSegment, escapeString, eURIFragmentSegment, exists, filterGenClasses, findGenClass, findGenClassifier, findGenDataType, findGenEnum, findGenFeature, findGenOperation, findGenPackage, findGenPackageHelper, findOrCreateContainer, format, format, formatCode, gen, gen, genEdit, genEditor, generate, generate, generate, generate, generate, generate, generateEdit, generateEdit, generateEditor, generateEditor, generateSchema, generateSchema, generateTests, generateTests, genSchema, genTests, getAllGenPackages, getAnnotationInfo, getAnnotationInfo, getContents, getDocumentation, getDocumentation, getEffectiveEObjectType, getEffectiveFeatureMapWrapperInterface, getEffectiveListType, getEffectiveMapType, getEncoding, getExtendedMetaData, getGenAnnotation, getGenAnnotations, getGenModel, getImplClassName, getImportedEffectiveFeatureMapWrapperClass, getImportedEffectiveFeatureMapWrapperInternalInterface, getImportedType, getImportManager, getInstanceClass, getJavaLangTypes, getJavaReservedWords, getPrimitiveDefault, getPrimitiveObjectType, getType, getTypeGenClasses, hasDocumentation, indent, isBlank, isEffectiveSuppressEMFTypes, isJavaUtilMapEntry, isPrimitiveType, isReadOnly, parseName, reconcileGenAnnotations, safeName, setImportManager, setOverwriteable, uncapName, uncapPrefixedName, uncapPrefixedName, unicodeEscapeEncode
 
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
eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eContents, eCrossReferences, 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, eProxyURI, 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, toString
 
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.codegen.ecore.genmodel.GenDataType
getBaseType, getEnumerationLiterals, getFractionDigits, getImportedInstanceClassName, getItemType, getLengthAccessorFunction, getMaxLength, getMaxLiteral, getMemberTypes, getMinLength, getMinLiteral, getModelInfo, getObjectInstanceClassName, getObjectType, getPatterns, getPrimitiveValueFunction, getQualifiedInstanceClassName, getSerializableFlag, getTotalDigits, getWhiteSpace, initialize, isArrayType, isMaxInclusive, isMinInclusive, isObjectType, isPrimitiveType, isXMLCalendar, isXMLDuration, reconcile, setEcoreDataType
 
Methods inherited from interface org.eclipse.emf.codegen.ecore.genmodel.GenClassifier
getAllGenConstraints, getClassifierAccessorName, getClassifierID, getClassifierInstanceName, getConstraintDelegate, getConstraintImplementor, getFormattedName, getGenConstraints, getGeneratedInstanceClassFlag, getGenPackage, getMetaType, getName, getQualifiedClassifierAccessor, getSafeUncapName, hasOnlyDefaultConstraints
 
Methods inherited from interface org.eclipse.emf.codegen.ecore.genmodel.GenBase
canGenerate, canGenerateSchema, canGenerateTests, capName, format, gen, genEdit, genEditor, generate, generateEdit, generateEdit, generateEditor, generateEditor, generateSchema, generateSchema, generateTests, generateTests, genSchema, genTests, getDocumentation, getEcoreModelElement, getGenAnnotation, getGenAnnotations, getGenModel, hasDocumentation, safeName, uncapName, uncapPrefixedName
 
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.ecore.InternalEObject
eNotificationRequired
 

Field Detail

ecoreEnum

protected EEnum ecoreEnum
The cached value of the 'Ecore Enum' reference.

See Also:
getEcoreEnum()

genEnumLiterals

protected EList genEnumLiterals
The cached value of the 'Gen Enum Literals' containment reference list.

See Also:
getGenEnumLiterals()
Constructor Detail

GenEnumImpl

protected GenEnumImpl()

Method Detail

eStaticClass

protected EClass eStaticClass()

Overrides:
eStaticClass in class GenDataTypeImpl

getEcoreEnum

public EEnum getEcoreEnum()

Specified by:
getEcoreEnum in interface GenEnum
Returns:
the value of the 'Ecore Enum' reference.
See Also:
GenEnum.setEcoreEnum(EEnum), GenModelPackage.getGenEnum_EcoreEnum()

basicGetEcoreEnum

public EEnum basicGetEcoreEnum()


setEcoreEnum

public void setEcoreEnum(EEnum newEcoreEnum)

Specified by:
setEcoreEnum in interface GenEnum
Parameters:
newEcoreEnum - the new value of the 'Ecore Enum' reference.
See Also:
GenEnum.getEcoreEnum()

getGenEnumLiterals

public EList getGenEnumLiterals()

Specified by:
getGenEnumLiterals in interface GenEnum
Returns:
the value of the 'Gen Enum Literals' containment reference list.
See Also:
GenModelPackage.getGenEnum_GenEnumLiterals(), GenEnumLiteral.getGenEnum()

eInverseAdd

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

Overrides:
eInverseAdd in class GenBaseImpl

eInverseRemove

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

Overrides:
eInverseRemove in class GenBaseImpl

eGet

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

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

eSet

public void eSet(int featureID,
                 Object newValue)

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

eUnset

public void eUnset(int featureID)

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

eIsSet

public boolean eIsSet(int featureID)

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

getEcoreClassifier

public EClassifier getEcoreClassifier()
Specified by:
getEcoreClassifier in interface GenClassifier
Overrides:
getEcoreClassifier in class GenDataTypeImpl

getEcoreDataType

public EDataType getEcoreDataType()
Description copied from interface: GenDataType
Returns the value of the 'Ecore Data Type' reference.

If the meaning of the 'Ecore Data Type' reference isn't clear, there really should be more of a description here...

Specified by:
getEcoreDataType in interface GenDataType
Overrides:
getEcoreDataType in class GenDataTypeImpl

getImportedMetaType

public String getImportedMetaType()
Specified by:
getImportedMetaType in interface GenClassifier
Overrides:
getImportedMetaType in class GenDataTypeImpl

getQualifiedName

public String getQualifiedName()
Specified by:
getQualifiedName in interface GenEnum

getImportedName

public String getImportedName()
Specified by:
getImportedName in interface GenEnum

getRawQualifiedInstanceClassName

public String getRawQualifiedInstanceClassName()
Overrides:
getRawQualifiedInstanceClassName in class GenDataTypeImpl

getEnumLiteralID

public String getEnumLiteralID(GenEnumLiteral genEnumLiteral)
Specified by:
getEnumLiteralID in interface GenEnum

getEnumLiteralValue

public int getEnumLiteralValue(GenEnumLiteral genEnumLiteral)
Specified by:
getEnumLiteralValue in interface GenEnum

getGenEnumLiteral

public GenEnumLiteral getGenEnumLiteral(String literalName)
Specified by:
getGenEnumLiteral in interface GenEnum

getUniqueValuedGenEnumLiterals

public List getUniqueValuedGenEnumLiterals()
Specified by:
getUniqueValuedGenEnumLiterals in interface GenEnum

isSerializable

public boolean isSerializable()
Specified by:
isSerializable in interface GenDataType
Overrides:
isSerializable in class GenDataTypeImpl

initialize

public void initialize(EEnum eEnum)
Specified by:
initialize in interface GenEnum

hasModelContribution

protected boolean hasModelContribution()
Overrides:
hasModelContribution in class GenBaseImpl

generate

public void generate(Monitor progressMonitor)
Deprecated. In EMF 2.2, a Generator should be used to generate code. This method will be removed after 2.2.

Specified by:
generate in interface GenBase
Overrides:
generate in class GenBaseImpl

canGenerateEdit

public boolean canGenerateEdit()
Specified by:
canGenerateEdit in interface GenBase
Overrides:
canGenerateEdit in class GenBaseImpl

canGenerateEditor

public boolean canGenerateEditor()
Specified by:
canGenerateEditor in interface GenBase
Overrides:
canGenerateEditor in class GenBaseImpl

reconcile

public boolean reconcile(GenEnum oldGenEnumVersion)
Specified by:
reconcile in interface GenEnum

reconcileSettings

protected void reconcileSettings(GenEnum oldGenEnumVersion)

reconcile

public boolean reconcile()
Specified by:
reconcile in interface GenBase
Overrides:
reconcile in class GenDataTypeImpl

getStaticValue

public String getStaticValue(String literal)
Specified by:
getStaticValue in interface GenDataType
Overrides:
getStaticValue in class GenDataTypeImpl

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