org.eclipse.emf.codegen.ecore.genmodel.impl
Class GenEnumImpl
java.lang.Object
org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.ecore.impl.BasicEObjectImpl
org.eclipse.emf.ecore.impl.EObjectImpl
org.eclipse.emf.codegen.ecore.genmodel.impl.GenBaseImpl
org.eclipse.emf.codegen.ecore.genmodel.impl.GenClassifierImpl
org.eclipse.emf.codegen.ecore.genmodel.impl.GenDataTypeImpl
org.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 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 |
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 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 |
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()
GenEnumImpl
protected GenEnumImpl()
-
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