|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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.GenTypedElementImpl
org.eclipse.emf.codegen.ecore.genmodel.impl.GenOperationImpl
public class GenOperationImpl
An implementation of the model object 'Gen Operation'.
The following features are implemented:
| Nested Class Summary |
|---|
| Nested classes/interfaces 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/interfaces inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl |
|---|
BasicEObjectImpl.EPropertiesHolder, BasicEObjectImpl.EPropertiesHolderBaseImpl, BasicEObjectImpl.EPropertiesHolderImpl |
| Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl |
|---|
BasicNotifierImpl.EAdapterList<E extends java.lang.Object & Adapter> |
| Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject |
|---|
InternalEObject.EStore |
| Field Summary | |
|---|---|
protected EOperation |
ecoreOperation
The cached value of the ' Ecore Operation' reference |
protected EList<GenParameter> |
genParameters
The cached value of the ' Gen Parameters' containment reference list |
protected EList<GenTypeParameter> |
genTypeParameters
The cached value of the ' Gen Type 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)
|
java.lang.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,
java.lang.Object newValue)
|
protected EClass |
eStaticClass()
|
void |
eUnset(int featureID)
|
protected java.lang.String |
getBody()
|
java.lang.String |
getBody(java.lang.String indentation)
|
java.lang.String |
getCapName()
|
EOperation |
getEcoreOperation()
|
ETypedElement |
getEcoreTypedElement()
|
java.lang.String |
getFormattedName()
|
GenClass |
getGenClass()
|
java.util.List<GenClassifier> |
getGenExceptions()
|
GenPackage |
getGenPackage()
|
EList<GenParameter> |
getGenParameters()
|
EList<GenTypeParameter> |
getGenTypeParameters()
|
java.lang.String |
getImportedInternalType(GenClass context)
This returns the real imported feature type used internally, regardless of the value of GenModel.isSuppressEMFValues(). |
java.lang.String |
getImportedMetaType()
|
java.lang.String |
getImportedReturnType()
Deprecated. As of EMF 2.1, use getImportedType(GenClass) instead. |
java.lang.String |
getImportedType(GenClass context)
This returns the feature type, either primitive (e.g. |
java.lang.String |
getListItemType(GenClass context)
This returns the imported name of the feature type/wrapper class, or if a multi-valued feature, the type of the EList members |
java.lang.String |
getModelInfo()
|
java.lang.String |
getName()
|
java.lang.String |
getObjectReturnType()
Deprecated. As of EMF 2.1, use getObjectType(GenClass) instead. |
java.lang.String |
getObjectType(GenClass context)
This returns the imported name of the feature type or, if primitive, of the wrapper class (e.g. |
java.lang.String |
getParameterNames(java.lang.String separator)
|
java.lang.String |
getParameters()
Deprecated. |
java.lang.String |
getParameters(GenClass context)
|
protected java.lang.String |
getParameters(GenClass context,
boolean formal)
|
java.lang.String |
getParameterTypes(java.lang.String separator)
|
java.lang.String |
getParameterTypes(java.lang.String separator,
boolean qualified)
|
java.lang.String |
getPrimitiveValueFunction()
|
java.lang.String |
getQualifiedListItemType(GenClass context)
This returns the qualified name of the feature type/wrapper class, or if a multi-valued feature, the type of the EList members. |
protected EClassifier |
getReturn()
Deprecated. As of EMF 2.1, simply call getEcoreTypedElement().getEType(). |
java.lang.String |
getReturnType()
Deprecated. As of EMF 2.1, use getType(GenClass) instead. |
java.lang.String |
getReturnTypeClassifier()
Deprecated. As of EMF 2.1, use getTypeClassifierAccessorName instead. |
GenPackage |
getReturnTypeGenPackage()
Deprecated. As of EMF 2.1, use getTypeGenPackage instead. |
java.lang.String |
getThrows()
Deprecated. |
java.lang.String |
getThrows(GenClass context)
|
java.lang.String |
getType(GenClass context)
This returns the feature type, either primitive (e.g. |
java.lang.String |
getTypeClassifierAccessorName()
|
GenPackage |
getTypeGenPackage()
|
java.lang.String |
getTypeParameters(GenClass context)
|
boolean |
hasBody()
|
boolean |
hasGenericExceptions()
|
boolean |
hasParameterDocumentation()
|
void |
initialize(EOperation eOperation)
|
boolean |
isFeatureMapType()
|
boolean |
isInvariant()
|
boolean |
isOverrideOf(GenClass context,
GenOperation genOperation)
|
boolean |
isOverrideOf(GenOperation genOperation)
Use GenOperation.isOverrideOf(GenClass, GenOperation) with either null for erasing type parameter references
or a GenClass context representing potential type substitutions for type parameter references. |
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.ecore.impl.EObjectImpl |
|---|
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURI |
| 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, canGenerateTests, capName, format, gen, genEdit, genEditor, generate, generate, generateEdit, generateEdit, generateEditor, generateEditor, generateSchema, generateSchema, generateTests, generateTests, genSchema, genTests, getCopyright, getDocumentation, getGenAnnotation, getGenAnnotations, getGenModel, hasCopyright, 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 |
|---|
protected EOperation ecoreOperation
Ecore Operation' reference.
getEcoreOperation()protected EList<GenParameter> genParameters
Gen Parameters' containment reference list.
getGenParameters()protected EList<GenTypeParameter> genTypeParameters
Gen Type Parameters' containment reference list.
getGenTypeParameters()| Constructor Detail |
|---|
protected GenOperationImpl()
| Method Detail |
|---|
protected EClass eStaticClass()
eStaticClass in class GenTypedElementImplpublic GenClass getGenClass()
getGenClass in interface GenOperationGenOperation.setGenClass(GenClass),
GenModelPackage.getGenOperation_GenClass(),
GenClass.getGenOperations()
public NotificationChain basicSetGenClass(GenClass newGenClass,
NotificationChain msgs)
public void setGenClass(GenClass newGenClass)
setGenClass in interface GenOperationnewGenClass - the new value of the 'Gen Class' container reference.GenOperation.getGenClass()public EOperation getEcoreOperation()
getEcoreOperation in interface GenOperationGenOperation.setEcoreOperation(EOperation),
GenModelPackage.getGenOperation_EcoreOperation()public EOperation basicGetEcoreOperation()
public void setEcoreOperation(EOperation newEcoreOperation)
setEcoreOperation in interface GenOperationnewEcoreOperation - the new value of the 'Ecore Operation' reference.GenOperation.getEcoreOperation()public EList<GenParameter> getGenParameters()
getGenParameters in interface GenOperationGenModelPackage.getGenOperation_GenParameters(),
GenParameter.getGenOperation()public EList<GenTypeParameter> getGenTypeParameters()
getGenTypeParameters in interface GenOperationGenModelPackage.getGenOperation_GenTypeParameters()
public NotificationChain eInverseAdd(InternalEObject otherEnd,
int featureID,
NotificationChain msgs)
eInverseAdd in class GenBaseImpl
public NotificationChain eInverseRemove(InternalEObject otherEnd,
int featureID,
NotificationChain msgs)
eInverseRemove in class GenBaseImplpublic NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs)
eBasicRemoveFromContainerFeature in class BasicEObjectImpl
public java.lang.Object eGet(int featureID,
boolean resolve,
boolean coreType)
eGet in interface InternalEObjecteGet in class GenBaseImplInternalEObject.eGet(EStructuralFeature, boolean, boolean)
public void eSet(int featureID,
java.lang.Object newValue)
eSet in interface InternalEObjecteSet in class GenBaseImplEObject.eSet(EStructuralFeature, Object)public void eUnset(int featureID)
eUnset in interface InternalEObjecteUnset in class GenBaseImplEObject.eUnset(EStructuralFeature)public boolean eIsSet(int featureID)
eIsSet in interface InternalEObjecteIsSet in class GenBaseImplEObject.eIsSet(EStructuralFeature)public ETypedElement getEcoreTypedElement()
getEcoreTypedElement in class GenTypedElementImplpublic java.lang.String getName()
getName in interface GenOperationgetName in class GenBaseImplpublic java.lang.String getCapName()
getCapName in interface GenOperationpublic java.lang.String getFormattedName()
getFormattedName in interface GenOperationpublic boolean isVoid()
isVoid in interface GenOperation@Deprecated protected EClassifier getReturn()
getEcoreTypedElement().getEType().
public java.lang.String getTypeClassifierAccessorName()
getTypeClassifierAccessorName in interface GenTypedElementgetTypeClassifierAccessorName in class GenTypedElementImplpublic GenPackage getTypeGenPackage()
getTypeGenPackage in interface GenTypedElementgetTypeGenPackage in class GenTypedElementImplpublic java.lang.String getType(GenClass context)
GenTypedElement
getType in interface GenTypedElementgetType in class GenTypedElementImplpublic java.lang.String getImportedType(GenClass context)
GenTypedElement
getImportedType in interface GenTypedElementgetImportedType in class GenTypedElementImplpublic java.lang.String getObjectType(GenClass context)
GenTypedElement
getObjectType in interface GenTypedElementgetObjectType in class GenTypedElementImplpublic java.lang.String getImportedInternalType(GenClass context)
GenTypedElement
getImportedInternalType in interface GenTypedElementgetImportedInternalType in class GenTypedElementImplpublic boolean isFeatureMapType()
isFeatureMapType in interface GenTypedElementisFeatureMapType in class GenTypedElementImplpublic java.lang.String getListItemType(GenClass context)
GenTypedElement
getListItemType in interface GenTypedElementgetListItemType in class GenTypedElementImplpublic java.lang.String getQualifiedListItemType(GenClass context)
GenTypedElement
getQualifiedListItemType in interface GenTypedElementgetQualifiedListItemType in class GenTypedElementImplpublic boolean isPrimitiveType()
isPrimitiveType in interface GenTypedElementisPrimitiveType in class GenTypedElementImplpublic java.lang.String getPrimitiveValueFunction()
getPrimitiveValueFunction in interface GenTypedElementgetPrimitiveValueFunction in class GenTypedElementImplpublic boolean isStringType()
isStringType in interface GenTypedElementisStringType in class GenTypedElementImplpublic boolean isStringBasedType()
isStringBasedType in interface GenTypedElementisStringBasedType in class GenTypedElementImpl@Deprecated public java.lang.String getReturnTypeClassifier()
getTypeClassifierAccessorName instead.
getReturnTypeClassifier in interface GenOperation@Deprecated public GenPackage getReturnTypeGenPackage()
getTypeGenPackage instead.
getReturnTypeGenPackage in interface GenOperation@Deprecated public java.lang.String getReturnType()
getType(GenClass) instead.
getReturnType in interface GenOperation@Deprecated public java.lang.String getImportedReturnType()
getImportedType(GenClass) instead.
getImportedReturnType in interface GenOperation@Deprecated public java.lang.String getObjectReturnType()
getObjectType(GenClass) instead.
getObjectReturnType in interface GenOperation@Deprecated public boolean isPrimitiveReturnType()
isPrimitiveType instead.
isPrimitiveReturnType in interface GenOperation@Deprecated public java.lang.String getParameters()
GenOperationGenOperation.getParameters(GenClass) with either null for erasing type parameter references
or a GenClass context representing potential type substitutions for type parameter references.
By default, this will just do getParameters(getGenClass()).
getParameters in interface GenOperationGenOperation.getParameters(GenClass)public java.lang.String getParameters(GenClass context)
getParameters in interface GenOperation
protected java.lang.String getParameters(GenClass context,
boolean formal)
public java.lang.String getParameterTypes(java.lang.String separator)
getParameterTypes in interface GenOperation
public java.lang.String getParameterTypes(java.lang.String separator,
boolean qualified)
getParameterTypes in interface GenOperationpublic java.lang.String getImportedMetaType()
getImportedMetaType in interface GenOperationpublic GenPackage getGenPackage()
getGenPackage in interface GenOperationpublic void initialize(EOperation eOperation)
initialize in interface GenOperationpublic java.lang.String getModelInfo()
getModelInfo in interface GenOperationgetModelInfo in class GenBaseImplpublic boolean reconcile(GenOperation oldGenOperationVersion)
reconcile in interface GenOperationprotected void reconcileSettings(GenOperation oldGenOperationVersion)
public boolean reconcile()
reconcile in interface GenBaseprotected java.lang.String getBody()
public boolean hasBody()
hasBody in interface GenOperationpublic java.lang.String getBody(java.lang.String indentation)
getBody in interface GenOperationpublic java.util.List<GenClassifier> getGenExceptions()
getGenExceptions in interface GenOperation@Deprecated public java.lang.String getThrows()
GenOperationGenOperation.getThrows(GenClass) with either null for erasing type parameter references
or a GenClass context representing potential type substitutions for type parameter references.
By default, this will just do getThrows(getGenClass()).
getThrows in interface GenOperationGenOperation.getThrows(GenClass)public java.lang.String getThrows(GenClass context)
getThrows in interface GenOperationpublic boolean isInvariant()
isInvariant in interface GenOperationpublic java.lang.String getParameterNames(java.lang.String separator)
getParameterNames in interface GenOperationpublic boolean isOverrideOf(GenOperation genOperation)
GenOperationGenOperation.isOverrideOf(GenClass, GenOperation) with either null for erasing type parameter references
or a GenClass context representing potential type substitutions for type parameter references.
By default, this will just do isOverrideOf(getGenClass(), genOperation).
isOverrideOf in interface GenOperationGenOperation.isOverrideOf(GenClass, GenOperation)
public boolean isOverrideOf(GenClass context,
GenOperation genOperation)
isOverrideOf in interface GenOperationpublic java.lang.String getTypeParameters(GenClass context)
getTypeParameters in interface GenOperationpublic boolean hasGenericExceptions()
hasGenericExceptions in interface GenOperationpublic boolean hasParameterDocumentation()
hasParameterDocumentation in interface GenOperation
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||