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

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.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:


Nested Class Summary
 
Nested classes inherited from class org.eclipse.emf.codegen.ecore.genmodel.impl.GenBaseImpl
GenBaseImpl.ColorInformation, GenBaseImpl.GenClassFilter, GenBaseImpl.GenConstraintFilter, GenBaseImpl.GenFeatureFilter, GenBaseImpl.GenOperationFilter, GenBaseImpl.GIFEmitter, GenBaseImpl.ImportManager, GenBaseImpl.UniqueNameHelper
 
Nested classes inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
BasicEObjectImpl.EPropertiesHolder, 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  EOperation ecoreOperation
          The cached value of the 'Ecore Operation' reference
protected  EList genParameters
          The cached value of the 'Gen Parameters' containment reference list
 
Fields inherited from class org.eclipse.emf.codegen.ecore.genmodel.impl.GenBaseImpl
ecoreGenPackage, javaLangTypes, javaReservedWords, 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 interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
protected GenOperationImpl()
           
 
Method Summary
 EOperation basicGetEcoreOperation()
           
 NotificationChain eBasicRemoveFromContainer(NotificationChain msgs)
           
 Object eGet(EStructuralFeature eFeature, boolean resolve)
           
 NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs)
           
 NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs)
           
 boolean eIsSet(EStructuralFeature eFeature)
           
 void eSet(EStructuralFeature eFeature, Object newValue)
           
protected  EClass eStaticClass()
           
 void eUnset(EStructuralFeature eFeature)
           
protected  String getBody()
           
 String getBody(String indentation)
           
 String getCapName()
           
 EModelElement getEcoreModelElement()
           
 EOperation getEcoreOperation()
           
 String getFormattedName()
           
 GenClass getGenClass()
           
 List getGenExceptions()
           
 GenPackage getGenPackage()
           
 EList getGenParameters()
           
 String getImportedMetaType()
           
 String getImportedReturnType()
           
 String getModelInfo()
           
 String getName()
           
 String getParameters()
           
protected  String getParameters(boolean formal)
           
protected  EClassifier getReturn()
           
 String getReturnType()
           
 String getReturnTypeClassifier()
           
 GenPackage getReturnTypeGenPackage()
           
 String getThrows()
           
 boolean hasBody()
           
 void initialize(EOperation eOperation)
           
 boolean isInvariant()
           
 boolean isVoid()
           
 boolean reconcile()
           
 boolean reconcile(GenOperation oldGenOperationVersion)
           
protected  void reconcileSettings(GenOperation oldGenOperationVersion)
           
 void setEcoreOperation(EOperation newEcoreOperation)
           
 void setGenClass(GenClass newGenClass)
           
 
Methods inherited from class org.eclipse.emf.codegen.ecore.genmodel.impl.GenBaseImpl
appendModelSetting, appendModelSetting, canGenerate, canGenerateEdit, canGenerateEditor, canGenerateSchema, capName, collectGenClasses, collectGenConstraints, collectGenFeatures, collectGenOperations, eObjectForURIFragmentSegment, ePackageGenModel, eURIFragmentSegment, filterGenClasses, findGenClass, findGenClassifier, findGenDataType, findGenEnum, findGenFeature, findGenPackage, findGenPackageHelper, findOrCreateContainer, format, generate, generate, generate, generate, generate, generateEdit, generateEditor, generateSchema, getAllGenPackages, getDocumentation, getDocumentation, getExtendedMetaData, getGenModel, getImplClassName, getImportedType, getImportManager, getInstanceClass, getJavaLangTypes, getJavaReservedWords, getPrimitiveDefault, getPrimitiveObjectType, getType, getTypeGenClasses, hasDocumentation, hasModelContribution, indent, isBlank, isJavaUtilMapEntry, isPrimitiveType, parseName, safeName, setImportManager, uncapName, 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, 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 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.GenBase
canGenerate, canGenerateEdit, canGenerateEditor, canGenerateSchema, capName, ePackageGenModel, format, generate, generateEdit, generateEditor, generateSchema, getDocumentation, getGenModel, hasDocumentation, safeName, uncapName, uncapPrefixedName
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eIsProxy, eResource
 
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

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()
Constructor Detail

GenOperationImpl

protected GenOperationImpl()

Method Detail

eStaticClass

protected EClass eStaticClass()

Overrides:
eStaticClass in class GenBaseImpl

getGenClass

public GenClass getGenClass()

Specified by:
getGenClass in interface 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
Parameters:
newGenClass - the new value of the 'Gen Class' container reference.
See Also:
GenOperation.getGenClass()

getEcoreModelElement

public EModelElement getEcoreModelElement()
Specified by:
getEcoreModelElement in class GenBaseImpl

getEcoreOperation

public EOperation getEcoreOperation()

Specified by:
getEcoreOperation in interface 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
Parameters:
newEcoreOperation - the new value of the 'Ecore Operation' reference.
See Also:
GenOperation.getEcoreOperation()

getGenParameters

public EList getGenParameters()

Specified by:
getGenParameters in interface 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,
                                     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

eBasicRemoveFromContainer

public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs)

Specified by:
eBasicRemoveFromContainer in interface InternalEObject
Overrides:
eBasicRemoveFromContainer in class BasicEObjectImpl

eGet

public Object eGet(EStructuralFeature eFeature,
                   boolean resolve)

Specified by:
eGet in interface EObject
Overrides:
eGet in class BasicEObjectImpl

eIsSet

public boolean eIsSet(EStructuralFeature eFeature)

Specified by:
eIsSet in interface EObject
Overrides:
eIsSet in class BasicEObjectImpl

eSet

public void eSet(EStructuralFeature eFeature,
                 Object newValue)

Specified by:
eSet in interface EObject
Overrides:
eSet in class BasicEObjectImpl

eUnset

public void eUnset(EStructuralFeature eFeature)

Specified by:
eUnset in interface EObject
Overrides:
eUnset in class BasicEObjectImpl

getName

public String getName()
Specified by:
getName in interface GenOperation
Specified by:
getName in class GenBaseImpl

getCapName

public String getCapName()
Specified by:
getCapName in interface GenOperation

getFormattedName

public String getFormattedName()
Specified by:
getFormattedName in interface GenOperation

isVoid

public boolean isVoid()
Specified by:
isVoid in interface GenOperation

getReturn

protected EClassifier getReturn()

getReturnType

public String getReturnType()
Specified by:
getReturnType in interface GenOperation

getImportedReturnType

public String getImportedReturnType()
Specified by:
getImportedReturnType in interface GenOperation

getReturnTypeClassifier

public String getReturnTypeClassifier()
Specified by:
getReturnTypeClassifier in interface GenOperation

getReturnTypeGenPackage

public GenPackage getReturnTypeGenPackage()
Specified by:
getReturnTypeGenPackage in interface GenOperation

getParameters

public String getParameters()
Specified by:
getParameters in interface GenOperation

getParameters

protected String getParameters(boolean formal)

getImportedMetaType

public 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 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

getBody

protected String getBody()

hasBody

public boolean hasBody()
Specified by:
hasBody in interface GenOperation

getBody

public String getBody(String indentation)
Specified by:
getBody in interface GenOperation

getGenExceptions

public List getGenExceptions()
Specified by:
getGenExceptions in interface GenOperation

getThrows

public String getThrows()
Specified by:
getThrows in interface GenOperation

isInvariant

public boolean isInvariant()
Specified by:
isInvariant in interface GenOperation

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