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:
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, getPatterns, getPrimitiveValueFunction, getQualifiedInstanceClassName, getRawQualifiedInstanceClassName, 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, 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, eObjectForURIFragmentSegment, escapeString, eURIFragmentSegment, filterGenClasses, findGenClass, findGenClassifier, findGenDataType, findGenEnum, findGenFeature, findGenOperation, findGenPackage, findGenPackageHelper, findOrCreateContainer, format, formatCode, generate, generate, generate, generate, generateEdit, generateEditor, generateSchema, generateTests, getAllGenPackages, getAnnotationInfo, getAnnotationInfo, getDocumentation, getDocumentation, getEffectiveEObjectType, getEffectiveFeatureMapWrapperInterface, getEffectiveListType, getEffectiveMapType, getExtendedMetaData, getGenModel, getImplClassName, getImportedEffectiveFeatureMapWrapperClass, getImportedEffectiveFeatureMapWrapperInternalInterface, getImportedType, getImportManager, getInstanceClass, getJavaLangTypes, getJavaReservedWords, getPrimitiveDefault, getPrimitiveObjectType, getType, getTypeGenClasses, hasDocumentation, indent, isBlank, isEffectiveSuppressEMFTypes, isJavaUtilMapEntry, isPrimitiveType, parseName, safeName, setImportManager, 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 |
eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, 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, 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, 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, getSafeUncapName, hasOnlyDefaultConstraints |
Methods inherited from interface org.eclipse.emf.codegen.ecore.genmodel.GenBase |
canGenerate, canGenerateSchema, canGenerateTests, capName, format, generateEdit, generateEditor, generateSchema, generateTests, getDocumentation, getGenModel, hasDocumentation, safeName, uncapName, uncapPrefixedName |
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,
Class baseClass,
NotificationChain msgs)
-
- Specified by:
eInverseAdd
in interface InternalEObject
- Overrides:
eInverseAdd
in class BasicEObjectImpl
eInverseRemove
public NotificationChain eInverseRemove(InternalEObject otherEnd,
int featureID,
Class baseClass,
NotificationChain msgs)
-
- Specified by:
eInverseRemove
in interface InternalEObject
- Overrides:
eInverseRemove
in class BasicEObjectImpl
eGet
public Object eGet(EStructuralFeature eFeature,
boolean resolve)
-
- Specified by:
eGet
in interface EObject
- Overrides:
eGet
in class GenDataTypeImpl
eIsSet
public boolean eIsSet(EStructuralFeature eFeature)
-
- Specified by:
eIsSet
in interface EObject
- Overrides:
eIsSet
in class GenDataTypeImpl
eSet
public void eSet(EStructuralFeature eFeature,
Object newValue)
-
- Specified by:
eSet
in interface EObject
- Overrides:
eSet
in class GenDataTypeImpl
eUnset
public void eUnset(EStructuralFeature eFeature)
-
- Specified by:
eUnset
in interface EObject
- Overrides:
eUnset
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
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(IProgressMonitor progressMonitor)
- 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