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.GenTypedElementImpl
                      extended byorg.eclipse.emf.codegen.ecore.genmodel.impl.GenOperationImpl
All Implemented Interfaces:
EObject, GenBase, GenOperation, GenTypedElement, InternalEObject, Notifier

public class GenOperationImpl
extends GenTypedElementImpl
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.AnnotationFilter, GenBaseImpl.AnnotationFilterImpl, GenBaseImpl.ColorInformation, GenBaseImpl.EclipseUtil, GenBaseImpl.GenAnnotationCopier, GenBaseImpl.GenClassFilter, GenBaseImpl.GenConstraintFilter, GenBaseImpl.GenFeatureFilter, GenBaseImpl.GenOperationFilter, GenBaseImpl.GIFEmitter, GenBaseImpl.UniqueNameHelper
 
Nested classes inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
BasicEObjectImpl.EPropertiesHolder, BasicEObjectImpl.EPropertiesHolderBaseImpl, 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
DEFAULT_ANNOTATION_FILTER, ecoreGenPackage, EMPTY_URI, genAnnotations, PLATFORM_RESOURCE_URI, 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 class org.eclipse.emf.ecore.impl.BasicEObjectImpl
EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSET
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
protected GenOperationImpl()
           
 
Method Summary
 EOperation basicGetEcoreOperation()
           
 NotificationChain basicSetGenClass(GenClass newGenClass, NotificationChain msgs)
           
 NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs)
           
 Object eGet(int featureID, boolean resolve, boolean coreType)
           
 NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs)
           
 NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
           
 boolean eIsSet(int featureID)
           
 void eSet(int featureID, Object newValue)
           
protected  EClass eStaticClass()
           
 void eUnset(int featureID)
           
protected  String getBody()
           
 String getBody(String indentation)
           
 String getCapName()
           
 EOperation getEcoreOperation()
           
 ETypedElement getEcoreTypedElement()
           
 String getFormattedName()
           
 GenClass getGenClass()
           
 List getGenExceptions()
           
 GenPackage getGenPackage()
           
 EList getGenParameters()
           
 String getImportedInternalType()
           
 String getImportedMetaType()
           
 String getImportedReturnType()
          Deprecated. As of EMF 2.1, use getImportedType instead.
 String getImportedType()
           
 String getListItemType()
           
 String getModelInfo()
           
 String getName()
           
 String getObjectReturnType()
          Deprecated. As of EMF 2.1, use getObjectType instead.
 String getObjectType()
           
 String getParameterNames(String separator)
           
 String getParameters()
           
protected  String getParameters(boolean formal)
           
 String getParameterTypes(String separator)
           
 String getParameterTypes(String separator, boolean qualified)
           
 String getPrimitiveValueFunction()
           
 String getQualifiedListItemType()
           
protected  EClassifier getReturn()
          Deprecated. As of EMF 2.1, simply call getEcoreTypedElement().getEType().
 String getReturnType()
          Deprecated. As of EMF 2.1, use getType instead.
 String getReturnTypeClassifier()
          Deprecated. As of EMF 2.1, use getTypeClassifierAccessorName instead.
 GenPackage getReturnTypeGenPackage()
          Deprecated. As of EMF 2.1, use getTypeGenPackage instead.
 String getThrows()
           
 String getType()
           
 String getTypeClassifierAccessorName()
           
 GenPackage getTypeGenPackage()
           
 boolean hasBody()
           
 void initialize(EOperation eOperation)
           
 boolean isFeatureMapType()
           
 boolean isInvariant()
           
 boolean isOverrideOf(GenOperation genOperation)
           
 boolean isPrimitiveReturnType()
          Deprecated. As of EMF 2.1, use isPrimitiveType instead.
 boolean isPrimitiveType()
           
 boolean isStringBasedType()
           
 boolean isStringType()
           
 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.GenTypedElementImpl
appendModelSetting, getEcoreModelElement, getEObjectCast, getGenClassType, getGenDataTypeType, getGenEnumType, getImportedEffectiveFeatureMapWrapperClass, getImportedEffectiveFeatureMapWrapperInternalInterface, getImportedMapEntryType, getInternalTypeCast, getLowerBound, getMapEntryTypeGenClass, getMapGenClass, getMapItemType, getMapModelInfo, getMultiplicityModelInfo, getNonEObjectInternalTypeCast, getOrderedFlag, getTypeClassifier, getTypeGenClass, getTypeGenClassifier, getTypeGenDataType, getTypeGenEnum, getUniqueFlag, getUpperBound, isBooleanType, isEffectiveSuppressEMFTypes, isEnumBasedType, isEnumType, isEObjectExtensionType, isEObjectType, isFeatureMapEntry, isFeatureMapWrapped, isListType, isMapType, isUnique, isWrappedFeatureMapType
 
Methods inherited from class org.eclipse.emf.codegen.ecore.genmodel.impl.GenBaseImpl
addNonDuplicates, appendAnnotationInfo, appendAnnotationInfo, appendAnnotationInfo, appendLineBreak, appendModelSetting, appendModelSetting, canGenerate, canGenerateEdit, canGenerateEditor, 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, 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, getImportedType, getImportManager, getInstanceClass, getJavaLangTypes, getJavaReservedWords, getPrimitiveDefault, getPrimitiveObjectType, getType, getTypeGenClasses, hasDocumentation, hasModelContribution, indent, isBlank, 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, 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 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.GenTypedElement
getEcoreModelElement, getEObjectCast, getGenClassType, getGenDataTypeType, getGenEnumType, getImportedEffectiveFeatureMapWrapperClass, getImportedEffectiveFeatureMapWrapperInternalInterface, getImportedMapEntryType, getInternalTypeCast, getLowerBound, getMapEntryTypeGenClass, getMapGenClass, getMapItemType, getNonEObjectInternalTypeCast, getOrderedFlag, getTypeClassifier, getTypeGenClass, getTypeGenClassifier, getTypeGenDataType, getTypeGenEnum, getUniqueFlag, getUpperBound, isBooleanType, isEffectiveSuppressEMFTypes, isEnumBasedType, isEnumType, isFeatureMapWrapped, isListType, isMapType, isUnique, isWrappedFeatureMapType
 
Methods inherited from interface org.eclipse.emf.codegen.ecore.genmodel.GenBase
canGenerate, canGenerateEdit, canGenerateEditor, canGenerateSchema, canGenerateTests, capName, format, gen, genEdit, genEditor, generate, generate, generateEdit, generateEdit, generateEditor, generateEditor, generateSchema, generateSchema, generateTests, generateTests, genSchema, genTests, getDocumentation, 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
 
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 GenTypedElementImpl

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

basicSetGenClass

public NotificationChain basicSetGenClass(GenClass newGenClass,
                                          NotificationChain msgs)


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

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,
                                     NotificationChain msgs)

Overrides:
eInverseAdd in class GenBaseImpl

eInverseRemove

public NotificationChain eInverseRemove(InternalEObject otherEnd,
                                        int featureID,
                                        NotificationChain msgs)

Overrides:
eInverseRemove in class GenBaseImpl

eBasicRemoveFromContainerFeature

public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs)

Overrides:
eBasicRemoveFromContainerFeature in class BasicEObjectImpl

eGet

public Object eGet(int featureID,
                   boolean resolve,
                   boolean coreType)

Specified by:
eGet in interface InternalEObject
Overrides:
eGet in class GenBaseImpl

eSet

public void eSet(int featureID,
                 Object newValue)

Specified by:
eSet in interface InternalEObject
Overrides:
eSet in class GenBaseImpl

eUnset

public void eUnset(int featureID)

Specified by:
eUnset in interface InternalEObject
Overrides:
eUnset in class GenBaseImpl

eIsSet

public boolean eIsSet(int featureID)

Specified by:
eIsSet in interface InternalEObject
Overrides:
eIsSet in class GenBaseImpl

getEcoreTypedElement

public ETypedElement getEcoreTypedElement()
Specified by:
getEcoreTypedElement in class GenTypedElementImpl

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()
Deprecated. As of EMF 2.1, simply call getEcoreTypedElement().getEType().


getTypeClassifierAccessorName

public String getTypeClassifierAccessorName()
Specified by:
getTypeClassifierAccessorName in interface GenTypedElement
Overrides:
getTypeClassifierAccessorName in class GenTypedElementImpl

getTypeGenPackage

public GenPackage getTypeGenPackage()
Specified by:
getTypeGenPackage in interface GenTypedElement
Overrides:
getTypeGenPackage in class GenTypedElementImpl

getType

public String getType()
Specified by:
getType in interface GenTypedElement
Overrides:
getType in class GenTypedElementImpl

getImportedType

public String getImportedType()
Specified by:
getImportedType in interface GenTypedElement
Overrides:
getImportedType in class GenTypedElementImpl

getObjectType

public String getObjectType()
Specified by:
getObjectType in interface GenTypedElement
Overrides:
getObjectType in class GenTypedElementImpl

getImportedInternalType

public String getImportedInternalType()
Specified by:
getImportedInternalType in interface GenTypedElement
Overrides:
getImportedInternalType in class GenTypedElementImpl

isFeatureMapType

public boolean isFeatureMapType()
Specified by:
isFeatureMapType in interface GenTypedElement
Overrides:
isFeatureMapType in class GenTypedElementImpl

getListItemType

public String getListItemType()
Specified by:
getListItemType in interface GenTypedElement
Overrides:
getListItemType in class GenTypedElementImpl

getQualifiedListItemType

public String getQualifiedListItemType()
Specified by:
getQualifiedListItemType in interface GenTypedElement
Overrides:
getQualifiedListItemType in class GenTypedElementImpl

isPrimitiveType

public boolean isPrimitiveType()
Specified by:
isPrimitiveType in interface GenTypedElement
Overrides:
isPrimitiveType in class GenTypedElementImpl

getPrimitiveValueFunction

public String getPrimitiveValueFunction()
Specified by:
getPrimitiveValueFunction in interface GenTypedElement
Overrides:
getPrimitiveValueFunction in class GenTypedElementImpl

isStringType

public boolean isStringType()
Specified by:
isStringType in interface GenTypedElement
Overrides:
isStringType in class GenTypedElementImpl

isStringBasedType

public boolean isStringBasedType()
Specified by:
isStringBasedType in interface GenTypedElement
Overrides:
isStringBasedType in class GenTypedElementImpl

getReturnTypeClassifier

public String getReturnTypeClassifier()
Deprecated. As of EMF 2.1, use getTypeClassifierAccessorName instead.

Specified by:
getReturnTypeClassifier in interface GenOperation

getReturnTypeGenPackage

public GenPackage getReturnTypeGenPackage()
Deprecated. As of EMF 2.1, use getTypeGenPackage instead.

Specified by:
getReturnTypeGenPackage in interface GenOperation

getReturnType

public String getReturnType()
Deprecated. As of EMF 2.1, use getType instead.

Specified by:
getReturnType in interface GenOperation

getImportedReturnType

public String getImportedReturnType()
Deprecated. As of EMF 2.1, use getImportedType instead.

Specified by:
getImportedReturnType in interface GenOperation

getObjectReturnType

public String getObjectReturnType()
Deprecated. As of EMF 2.1, use getObjectType instead.

Specified by:
getObjectReturnType in interface GenOperation

isPrimitiveReturnType

public boolean isPrimitiveReturnType()
Deprecated. As of EMF 2.1, use isPrimitiveType instead.

Specified by:
isPrimitiveReturnType in interface GenOperation

getParameters

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

getParameters

protected String getParameters(boolean formal)

getParameterTypes

public String getParameterTypes(String separator)
Specified by:
getParameterTypes in interface GenOperation

getParameterTypes

public String getParameterTypes(String separator,
                                boolean qualified)
Specified by:
getParameterTypes in interface GenOperation

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

getParameterNames

public String getParameterNames(String separator)
Specified by:
getParameterNames in interface GenOperation

isOverrideOf

public boolean isOverrideOf(GenOperation genOperation)
Specified by:
isOverrideOf in interface GenOperation

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