org.eclipse.emf.codegen.ecore.genmodel.impl
Class GenOperationImpl
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.GenOperationImpl
- All Implemented Interfaces:
- EObject, GenBase, GenOperation, InternalEObject, Notifier
- public class GenOperationImpl
- extends GenBaseImpl
- implements GenOperation
An implementation of the model object 'Gen Operation'.
The following features are implemented:
| 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 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 |
ecoreOperation
protected EOperation ecoreOperation
- The cached value of the '
Ecore Operation' reference.
- See Also:
getEcoreOperation()
genParameters
protected EList genParameters
- The cached value of the '
Gen Parameters' containment reference list.
- See Also:
getGenParameters()
GenOperationImpl
protected GenOperationImpl()
-
eStaticClass
protected EClass eStaticClass()
-
- Overrides:
eStaticClass in class GenBaseImpl
getGenClass
public GenClass getGenClass()
-
- Specified by:
getGenClass in interface GenOperation
- Following copied from interface:
org.eclipse.emf.codegen.ecore.genmodel.GenOperation
- Returns:
- the value of the 'Gen Class' container reference.
- See Also:
GenOperation.setGenClass(GenClass),
GenModelPackage.getGenOperation_GenClass(),
GenClass.getGenOperations()
setGenClass
public void setGenClass(GenClass newGenClass)
-
- Specified by:
setGenClass in interface GenOperation
- Following copied from interface:
org.eclipse.emf.codegen.ecore.genmodel.GenOperation
- Parameters:
value - the new value of the 'Gen Class' container reference.- See Also:
GenOperation.getGenClass()
getEcoreOperation
public EOperation getEcoreOperation()
-
- Specified by:
getEcoreOperation in interface GenOperation
- Following copied from interface:
org.eclipse.emf.codegen.ecore.genmodel.GenOperation
- Returns:
- the value of the 'Ecore Operation' reference.
- See Also:
GenOperation.setEcoreOperation(EOperation),
GenModelPackage.getGenOperation_EcoreOperation()
basicGetEcoreOperation
public EOperation basicGetEcoreOperation()
-
setEcoreOperation
public void setEcoreOperation(EOperation newEcoreOperation)
-
- Specified by:
setEcoreOperation in interface GenOperation
- Following copied from interface:
org.eclipse.emf.codegen.ecore.genmodel.GenOperation
- Parameters:
value - the new value of the 'Ecore Operation' reference.- See Also:
GenOperation.getEcoreOperation()
getGenParameters
public EList getGenParameters()
-
- Specified by:
getGenParameters in interface GenOperation
- Following copied from interface:
org.eclipse.emf.codegen.ecore.genmodel.GenOperation
- Returns:
- the value of the 'Gen Parameters' containment reference list.
- See Also:
GenModelPackage.getGenOperation_GenParameters(),
GenParameter.getGenOperation()
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 GenOperation- Overrides:
getName in class GenBaseImpl
getCapName
public java.lang.String getCapName()
- Specified by:
getCapName in interface GenOperation
getFormattedName
public java.lang.String getFormattedName()
- Specified by:
getFormattedName in interface GenOperation
isVoid
public boolean isVoid()
- Specified by:
isVoid in interface GenOperation
getReturn
protected EClassifier getReturn()
getReturnType
public java.lang.String getReturnType()
- Specified by:
getReturnType in interface GenOperation
getImportedReturnType
public java.lang.String getImportedReturnType()
- Specified by:
getImportedReturnType in interface GenOperation
getReturnTypeClassifier
public java.lang.String getReturnTypeClassifier()
- Specified by:
getReturnTypeClassifier in interface GenOperation
getReturnTypeGenPackage
public GenPackage getReturnTypeGenPackage()
- Specified by:
getReturnTypeGenPackage in interface GenOperation
getParameters
public java.lang.String getParameters()
- Specified by:
getParameters in interface GenOperation
getParameters
protected java.lang.String getParameters(boolean formal)
getImportedMetaType
public java.lang.String getImportedMetaType()
- Specified by:
getImportedMetaType in interface GenOperation
getGenPackage
public GenPackage getGenPackage()
- Specified by:
getGenPackage in interface GenOperation
initialize
public void initialize(EOperation eOperation)
- Specified by:
initialize in interface GenOperation
getModelInfo
public java.lang.String getModelInfo()
- Specified by:
getModelInfo in interface GenOperation- Overrides:
getModelInfo in class GenBaseImpl
reconcile
public boolean reconcile(GenOperation oldGenOperationVersion)
- Specified by:
reconcile in interface GenOperation
reconcileSettings
protected void reconcileSettings(GenOperation oldGenOperationVersion)
reconcile
public boolean reconcile()
- Specified by:
reconcile in interface GenBase