|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 |
isSuppressedVisibility()
|
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 GenTypedElementImpl
public GenClass getGenClass()
getGenClass
in interface GenOperation
GenOperation.setGenClass(GenClass)
,
GenModelPackage.getGenOperation_GenClass()
,
GenClass.getGenOperations()
public NotificationChain basicSetGenClass(GenClass newGenClass, NotificationChain msgs)
public void setGenClass(GenClass newGenClass)
setGenClass
in interface GenOperation
newGenClass
- the new value of the 'Gen Class' container reference.GenOperation.getGenClass()
public EOperation getEcoreOperation()
getEcoreOperation
in interface GenOperation
GenOperation.setEcoreOperation(EOperation)
,
GenModelPackage.getGenOperation_EcoreOperation()
public EOperation basicGetEcoreOperation()
public void setEcoreOperation(EOperation newEcoreOperation)
setEcoreOperation
in interface GenOperation
newEcoreOperation
- the new value of the 'Ecore Operation' reference.GenOperation.getEcoreOperation()
public EList<GenParameter> getGenParameters()
getGenParameters
in interface GenOperation
GenModelPackage.getGenOperation_GenParameters()
,
GenParameter.getGenOperation()
public EList<GenTypeParameter> getGenTypeParameters()
getGenTypeParameters
in interface GenOperation
GenModelPackage.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 GenBaseImpl
public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs)
eBasicRemoveFromContainerFeature
in class BasicEObjectImpl
public java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
eGet
in interface InternalEObject
eGet
in class GenBaseImpl
InternalEObject.eGet(EStructuralFeature, boolean, boolean)
public void eSet(int featureID, java.lang.Object newValue)
eSet
in interface InternalEObject
eSet
in class GenBaseImpl
EObject.eSet(EStructuralFeature, Object)
public void eUnset(int featureID)
eUnset
in interface InternalEObject
eUnset
in class GenBaseImpl
EObject.eUnset(EStructuralFeature)
public boolean eIsSet(int featureID)
eIsSet
in interface InternalEObject
eIsSet
in class GenBaseImpl
EObject.eIsSet(EStructuralFeature)
public ETypedElement getEcoreTypedElement()
getEcoreTypedElement
in class GenTypedElementImpl
public java.lang.String getName()
getName
in interface GenOperation
getName
in class GenBaseImpl
public java.lang.String getCapName()
getCapName
in interface GenOperation
public java.lang.String getFormattedName()
getFormattedName
in interface GenOperation
public boolean isVoid()
isVoid
in interface GenOperation
@Deprecated protected EClassifier getReturn()
getEcoreTypedElement().getEType()
.
public java.lang.String getTypeClassifierAccessorName()
getTypeClassifierAccessorName
in interface GenTypedElement
getTypeClassifierAccessorName
in class GenTypedElementImpl
public GenPackage getTypeGenPackage()
getTypeGenPackage
in interface GenTypedElement
getTypeGenPackage
in class GenTypedElementImpl
public java.lang.String getType(GenClass context)
GenTypedElement
getType
in interface GenTypedElement
getType
in class GenTypedElementImpl
public java.lang.String getImportedType(GenClass context)
GenTypedElement
getImportedType
in interface GenTypedElement
getImportedType
in class GenTypedElementImpl
public java.lang.String getObjectType(GenClass context)
GenTypedElement
getObjectType
in interface GenTypedElement
getObjectType
in class GenTypedElementImpl
public java.lang.String getImportedInternalType(GenClass context)
GenTypedElement
getImportedInternalType
in interface GenTypedElement
getImportedInternalType
in class GenTypedElementImpl
public boolean isFeatureMapType()
isFeatureMapType
in interface GenTypedElement
isFeatureMapType
in class GenTypedElementImpl
public java.lang.String getListItemType(GenClass context)
GenTypedElement
getListItemType
in interface GenTypedElement
getListItemType
in class GenTypedElementImpl
public java.lang.String getQualifiedListItemType(GenClass context)
GenTypedElement
getQualifiedListItemType
in interface GenTypedElement
getQualifiedListItemType
in class GenTypedElementImpl
public boolean isPrimitiveType()
isPrimitiveType
in interface GenTypedElement
isPrimitiveType
in class GenTypedElementImpl
public java.lang.String getPrimitiveValueFunction()
getPrimitiveValueFunction
in interface GenTypedElement
getPrimitiveValueFunction
in class GenTypedElementImpl
public boolean isStringType()
isStringType
in interface GenTypedElement
isStringType
in class GenTypedElementImpl
public boolean isStringBasedType()
isStringBasedType
in interface GenTypedElement
isStringBasedType
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()
GenOperation
GenOperation.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 GenOperation
GenOperation.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 GenOperation
public java.lang.String getImportedMetaType()
getImportedMetaType
in interface GenOperation
public GenPackage getGenPackage()
getGenPackage
in interface GenOperation
public void initialize(EOperation eOperation)
initialize
in interface GenOperation
public java.lang.String getModelInfo()
getModelInfo
in interface GenOperation
getModelInfo
in class GenBaseImpl
public boolean reconcile(GenOperation oldGenOperationVersion)
reconcile
in interface GenOperation
protected void reconcileSettings(GenOperation oldGenOperationVersion)
public boolean reconcile()
reconcile
in interface GenBase
protected java.lang.String getBody()
public boolean hasBody()
hasBody
in interface GenOperation
public java.lang.String getBody(java.lang.String indentation)
getBody
in interface GenOperation
public java.util.List<GenClassifier> getGenExceptions()
getGenExceptions
in interface GenOperation
@Deprecated public java.lang.String getThrows()
GenOperation
GenOperation.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 GenOperation
GenOperation.getThrows(GenClass)
public java.lang.String getThrows(GenClass context)
getThrows
in interface GenOperation
public boolean isInvariant()
isInvariant
in interface GenOperation
public java.lang.String getParameterNames(java.lang.String separator)
getParameterNames
in interface GenOperation
public boolean isOverrideOf(GenOperation genOperation)
GenOperation
GenOperation.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 GenOperation
GenOperation.isOverrideOf(GenClass, GenOperation)
public boolean isOverrideOf(GenClass context, GenOperation genOperation)
isOverrideOf
in interface GenOperation
public java.lang.String getTypeParameters(GenClass context)
getTypeParameters
in interface GenOperation
public boolean hasGenericExceptions()
hasGenericExceptions
in interface GenOperation
public boolean hasParameterDocumentation()
hasParameterDocumentation
in interface GenOperation
public boolean isSuppressedVisibility()
isSuppressedVisibility
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 |