org.eclipse.emf.codegen.ecore.genmodel.impl
Class GenEnumImpl
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.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, getEcoreDataType, getModelInfo, getObjectInstanceClassName, getQualifiedInstanceClassName, getSerializableFlag, initialize, isArrayType, isPrimitiveType, reconcile, reconcileSettings, setEcoreDataType |
Methods inherited from class org.eclipse.emf.codegen.ecore.genmodel.impl.GenBaseImpl |
appendModelSetting, appendModelSetting, canGenerate, capName, collectGenClasses, collectGenFeatures, collectGenOperations, eObjectForURIFragmentSegment, ePackageGenModel, eURIFragmentSegment, filterGenClasses, findGenClass, findGenClassifier, findGenDataType, findGenEnum, findGenFeature, findGenPackage, findGenPackageHelper, findOrCreateContainer, format, generate, generate, generate, generate, generateEdit, generateEditor, getAllGenPackages, getGenModel, getImplClassName, getImportedType, getImportManager, getInstanceClass, getJavaLangTypes, getJavaReservedWords, getPrimitiveDefault, getPrimitiveObjectType, getType, getTypeGenClasses, isJavaUtilMapEntry, isPrimitiveType, parseName, safeName, setImportManager, uncapName, uncapPrefixedName, unicodeEscapeEncode |
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl |
eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicSetContainer, eClass, eContainer, eContainerFeatureID, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicFeatureID, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicIsSet, eDynamicSet, eDynamicUnset, eGet, eHasSettings, eInternalResource, eIsProxy, eProperties, eProxyURI, eResource, eSetClass, eSetProxyURI, eSetResource, eSetting, eSettingDelegate, eSettings, eStaticFeatureCount, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
- Following copied from interface:
org.eclipse.emf.codegen.ecore.genmodel.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
- Following copied from interface:
org.eclipse.emf.codegen.ecore.genmodel.GenEnum
- Parameters:
value
- the new value of the 'Ecore Enum' reference.- See Also:
GenEnum.getEcoreEnum()
getGenEnumLiterals
public EList getGenEnumLiterals()
-
- Specified by:
getGenEnumLiterals
in interface GenEnum
- Following copied from interface:
org.eclipse.emf.codegen.ecore.genmodel.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,
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.
eGet
public java.lang.Object eGet(EStructuralFeature eFeature,
boolean resolve)
-
- Specified by:
eGet
in interface EObject
- Overrides:
eGet
in class GenDataTypeImpl
- 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 GenDataTypeImpl
- 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 GenDataTypeImpl
- 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 GenDataTypeImpl
- 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)
getEcoreClassifier
public EClassifier getEcoreClassifier()
- Specified by:
getEcoreClassifier
in interface GenClassifier
- Overrides:
getEcoreClassifier
in class GenDataTypeImpl
getImportedMetaType
public java.lang.String getImportedMetaType()
- Specified by:
getImportedMetaType
in interface GenClassifier
- Overrides:
getImportedMetaType
in class GenDataTypeImpl
getQualifiedName
public java.lang.String getQualifiedName()
- Specified by:
getQualifiedName
in interface GenEnum
getImportedName
public java.lang.String getImportedName()
- Specified by:
getImportedName
in interface GenEnum
getImportedInstanceClassName
public java.lang.String getImportedInstanceClassName()
- Specified by:
getImportedInstanceClassName
in interface GenDataType
- Overrides:
getImportedInstanceClassName
in class GenDataTypeImpl
getEnumLiteralID
public java.lang.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(java.lang.String literalName)
- Specified by:
getGenEnumLiteral
in interface GenEnum
getUniqueValuedGenEnumLiterals
public java.util.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(org.eclipse.core.runtime.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