|
||||||||||
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
public abstract class GenTypedElementImpl
An implementation of the model object 'Gen Typed Element'.
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 |
---|
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 |
GenTypedElementImpl()
|
Method Summary | |
---|---|
protected void |
appendModelSetting(java.lang.StringBuffer result,
boolean qualified,
java.lang.String name,
java.lang.String value)
|
protected EClass |
eStaticClass()
|
protected GenClass |
getContext()
|
EModelElement |
getEcoreModelElement()
|
abstract ETypedElement |
getEcoreTypedElement()
|
GenJDKLevel |
getEffectiveComplianceLevel()
|
java.lang.String |
getEObjectCast()
This returns either "(EObject)", "(org.eclipse.emf.ecore.EObject)", or "" as needed for the reference type. |
GenClass |
getGenClassType()
Deprecated. As of EMF 2.1, replaced by getTypeGenClass() . |
GenDataType |
getGenDataTypeType()
Deprecated. As of EMF 2.1, replaced by getTypeGenDataType() . |
GenEnum |
getGenEnumType()
Deprecated. As of EMF 2.1, replaced by getTypeGenEnum() . |
java.lang.String |
getImportedEffectiveFeatureMapWrapperClass()
|
java.lang.String |
getImportedEffectiveFeatureMapWrapperInternalInterface()
|
java.lang.String |
getImportedInternalType()
Deprecated. |
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 |
getImportedMapEntryType()
|
java.lang.String |
getImportedMapKeyType(GenClass context)
|
java.lang.String |
getImportedMapTemplateArguments(GenClass context)
|
java.lang.String |
getImportedMapValueType(GenClass context)
|
java.lang.String |
getImportedType()
Deprecated. |
java.lang.String |
getImportedType(GenClass context)
This returns the feature type, either primitive (e.g. |
java.lang.String |
getInternalTypeCast()
This returns either "(EObject)", "(org.eclipse.emf.ecore.EObject)", or "" as needed for the reference type. |
GenDataType |
getListDataType()
|
java.lang.String |
getListItemType()
Deprecated. |
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 |
getListTemplateArguments(GenClass context)
Returns either "" or the getListItemType surrounded by <>, depending on the effective compliance level. |
java.lang.String |
getLowerBound()
|
GenClass |
getMapEntryTypeGenClass()
|
GenClass |
getMapGenClass()
Deprecated. As of EMF 2.1, replaced by getMapEntryTypeGenClass() . |
java.lang.String |
getMapItemType()
Deprecated. As of EMF 2.1, replaced by getImportedMapEntryType() . |
protected java.lang.String |
getMapModelInfo(boolean qualified,
boolean includeFeatures)
|
protected java.lang.String |
getMultiplicityModelInfo(boolean qualified)
|
java.lang.String |
getNonEObjectInternalTypeCast()
Deprecated. |
java.lang.String |
getNonEObjectInternalTypeCast(GenClass context)
This returns either a cast to the internal type, or "" if it is EObject. |
java.lang.String |
getObjectType()
Deprecated. |
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 |
getOrderedFlag()
|
java.lang.String |
getPrimitiveValueFunction()
|
java.lang.String |
getQualifiedListItemType()
Deprecated. |
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. |
java.lang.String |
getRawBoundType()
This returns the feature type as for getRawType, except for the case that the type is a type parameter, in which case it returns the actual bounding type. |
java.lang.String |
getRawImportedBoundType()
This returns the feature type as for getRawImportedType, except for the case that the type is a type parameter, in which case it returns the actual bounding type. |
java.lang.String |
getRawImportedType()
|
java.lang.String |
getRawListItemType()
This returns the raw imported name of the feature type/wrapper class, or if a multi-valued feature, the type of the EList members. |
java.lang.String |
getRawType()
|
java.lang.String |
getRawTypeCast()
This returns that case to the actual type if it's different from the raw type. |
java.lang.String |
getType()
Deprecated. |
java.lang.String |
getType(GenClass context)
This returns the feature type, either primitive (e.g. |
java.lang.String |
getTypeClassifier()
Deprecated. As of EMF 2.1, replaced by getTypeClassifierAccessorName() . |
java.lang.String |
getTypeClassifierAccessorName()
|
GenClass |
getTypeGenClass()
|
GenClassifier |
getTypeGenClassifier()
|
GenDataType |
getTypeGenDataType()
|
GenEnum |
getTypeGenEnum()
|
GenPackage |
getTypeGenPackage()
|
java.lang.String |
getUniqueFlag()
|
java.lang.String |
getUpperBound()
|
protected boolean |
hasEObjectBound(ETypeParameter eTypeParameter)
|
protected boolean |
hasEObjectExtensionBound(ETypeParameter eTypeParameter)
|
boolean |
hasGenericType()
|
boolean |
isBooleanType()
|
boolean |
isEffectiveSuppressEMFTypes()
|
boolean |
isEnumBasedType()
|
boolean |
isEnumType()
|
protected boolean |
isEObjectExtensionType()
|
protected boolean |
isEObjectType()
|
protected static boolean |
isFeatureMapEntry(java.lang.String name)
|
boolean |
isFeatureMapType()
|
boolean |
isFeatureMapWrapped()
Deprecated. As of EMF 2.1, replaced by isWrappedFeatureMapType() . |
boolean |
isListDataType()
|
boolean |
isListType()
|
boolean |
isMapEntryType()
|
boolean |
isMapType()
|
boolean |
isPrimitiveType()
|
boolean |
isStringBasedType()
|
boolean |
isStringType()
|
boolean |
isUncheckedCast()
|
boolean |
isUncheckedCast(GenClass context)
|
boolean |
isUnique()
|
boolean |
isWrappedFeatureMapType()
|
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, reconcile, 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 |
Constructor Detail |
---|
protected GenTypedElementImpl()
Method Detail |
---|
protected EClass eStaticClass()
eStaticClass
in class GenBaseImpl
public abstract ETypedElement getEcoreTypedElement()
public EModelElement getEcoreModelElement()
getEcoreModelElement
in interface GenBase
getEcoreModelElement
in interface GenTypedElement
getEcoreModelElement
in class GenBaseImpl
public GenPackage getTypeGenPackage()
getTypeGenPackage
in interface GenTypedElement
public java.lang.String getTypeClassifierAccessorName()
getTypeClassifierAccessorName
in interface GenTypedElement
@Deprecated public java.lang.String getTypeClassifier()
getTypeClassifierAccessorName()
.
getTypeClassifier
in interface GenTypedElement
protected GenClass getContext()
public boolean hasGenericType()
hasGenericType
in interface GenTypedElement
public java.lang.String getRawType()
getRawType
in interface GenTypedElement
public java.lang.String getRawBoundType()
GenTypedElement
getRawBoundType
in interface GenTypedElement
@Deprecated public java.lang.String getType()
GenTypedElement
GenTypedElement.getType(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 getType(getGenClass())
.
getType
in interface GenTypedElement
GenTypedElement.getType(GenClass)
public java.lang.String getType(GenClass context)
GenTypedElement
getType
in interface GenTypedElement
public java.lang.String getRawImportedType()
getRawImportedType
in interface GenTypedElement
public java.lang.String getRawImportedBoundType()
GenTypedElement
getRawImportedBoundType
in interface GenTypedElement
@Deprecated public java.lang.String getImportedType()
GenTypedElement
GenTypedElement.getImportedType(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 getImportedType(getGenClass())
.
getImportedType
in interface GenTypedElement
GenTypedElement.getImportedType(GenClass)
public java.lang.String getImportedType(GenClass context)
GenTypedElement
getImportedType
in interface GenTypedElement
@Deprecated public java.lang.String getObjectType()
GenTypedElement
GenTypedElement.getObjectType(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 getObjectType(getGenClass())
.
getObjectType
in interface GenTypedElement
GenTypedElement.getObjectType(GenClass)
public java.lang.String getObjectType(GenClass context)
GenTypedElement
getObjectType
in interface GenTypedElement
@Deprecated public java.lang.String getImportedInternalType()
GenTypedElement
GenTypedElement.getImportedInternalType(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 getImportedInternalType(getGenClass())
.
getImportedInternalType
in interface GenTypedElement
GenTypedElement.getImportedInternalType(GenClass)
public java.lang.String getImportedInternalType(GenClass context)
GenTypedElement
getImportedInternalType
in interface GenTypedElement
public boolean isFeatureMapType()
isFeatureMapType
in interface GenTypedElement
protected static boolean isFeatureMapEntry(java.lang.String name)
public boolean isWrappedFeatureMapType()
isWrappedFeatureMapType
in interface GenTypedElement
@Deprecated public boolean isFeatureMapWrapped()
isWrappedFeatureMapType()
.
isFeatureMapWrapped
in interface GenTypedElement
public GenJDKLevel getEffectiveComplianceLevel()
getEffectiveComplianceLevel
in interface GenTypedElement
getEffectiveComplianceLevel
in class GenBaseImpl
public boolean isEffectiveSuppressEMFTypes()
isEffectiveSuppressEMFTypes
in interface GenTypedElement
isEffectiveSuppressEMFTypes
in class GenBaseImpl
public java.lang.String getImportedEffectiveFeatureMapWrapperInternalInterface()
getImportedEffectiveFeatureMapWrapperInternalInterface
in interface GenTypedElement
getImportedEffectiveFeatureMapWrapperInternalInterface
in class GenBaseImpl
public java.lang.String getImportedEffectiveFeatureMapWrapperClass()
getImportedEffectiveFeatureMapWrapperClass
in interface GenTypedElement
getImportedEffectiveFeatureMapWrapperClass
in class GenBaseImpl
public boolean isListType()
isListType
in interface GenTypedElement
public boolean isListDataType()
isListDataType
in interface GenTypedElement
public GenDataType getListDataType()
public java.lang.String getListTemplateArguments(GenClass context)
GenTypedElement
getListTemplateArguments
in interface GenTypedElement
@Deprecated public java.lang.String getListItemType()
GenTypedElement
GenTypedElement.getListItemType(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 getListItemType(getGenClass())
.
getListItemType
in interface GenTypedElement
GenTypedElement.getListItemType(GenClass)
public java.lang.String getListItemType(GenClass context)
GenTypedElement
getListItemType
in interface GenTypedElement
public java.lang.String getRawListItemType()
GenTypedElement
getRawListItemType
in interface GenTypedElement
@Deprecated public java.lang.String getQualifiedListItemType()
GenTypedElement
GenTypedElement.getQualifiedListItemType(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 getQualifiedListItemType(getGenClass())
.
getQualifiedListItemType
in interface GenTypedElement
GenTypedElement.getQualifiedListItemType(GenClass)
public java.lang.String getQualifiedListItemType(GenClass context)
GenTypedElement
getQualifiedListItemType
in interface GenTypedElement
public boolean isMapType()
isMapType
in interface GenTypedElement
public boolean isMapEntryType()
public GenClass getMapEntryTypeGenClass()
getMapEntryTypeGenClass
in interface GenTypedElement
public java.lang.String getImportedMapEntryType()
getImportedMapEntryType
in interface GenTypedElement
public java.lang.String getImportedMapKeyType(GenClass context)
getImportedMapKeyType
in interface GenTypedElement
public java.lang.String getImportedMapValueType(GenClass context)
getImportedMapValueType
in interface GenTypedElement
public java.lang.String getImportedMapTemplateArguments(GenClass context)
getImportedMapTemplateArguments
in interface GenTypedElement
@Deprecated public GenClass getMapGenClass()
getMapEntryTypeGenClass()
.
getMapGenClass
in interface GenTypedElement
@Deprecated public java.lang.String getMapItemType()
getImportedMapEntryType()
.
getMapItemType
in interface GenTypedElement
protected boolean isEObjectType()
protected boolean hasEObjectBound(ETypeParameter eTypeParameter)
protected boolean isEObjectExtensionType()
protected boolean hasEObjectExtensionBound(ETypeParameter eTypeParameter)
public boolean isUncheckedCast()
isUncheckedCast
in interface GenTypedElement
public boolean isUncheckedCast(GenClass context)
isUncheckedCast
in interface GenTypedElement
public java.lang.String getEObjectCast()
GenTypedElement
getEObjectCast
in interface GenTypedElement
public java.lang.String getInternalTypeCast()
GenTypedElement
getInternalTypeCast
in interface GenTypedElement
@Deprecated public java.lang.String getNonEObjectInternalTypeCast()
GenTypedElement
GenTypedElement.getNonEObjectInternalTypeCast(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 getNonEObjectInternalTypeCast(getGenClass())
.
getNonEObjectInternalTypeCast
in interface GenTypedElement
GenTypedElement.getNonEObjectInternalTypeCast(GenClass)
public java.lang.String getNonEObjectInternalTypeCast(GenClass context)
GenTypedElement
getNonEObjectInternalTypeCast
in interface GenTypedElement
public java.lang.String getRawTypeCast()
GenTypedElement
getRawTypeCast
in interface GenTypedElement
public boolean isPrimitiveType()
isPrimitiveType
in interface GenTypedElement
public java.lang.String getPrimitiveValueFunction()
getPrimitiveValueFunction
in interface GenTypedElement
public boolean isBooleanType()
isBooleanType
in interface GenTypedElement
public boolean isStringType()
isStringType
in interface GenTypedElement
public boolean isStringBasedType()
isStringBasedType
in interface GenTypedElement
public boolean isEnumType()
isEnumType
in interface GenTypedElement
public boolean isEnumBasedType()
isEnumBasedType
in interface GenTypedElement
public GenEnum getTypeGenEnum()
getTypeGenEnum
in interface GenTypedElement
public GenDataType getTypeGenDataType()
getTypeGenDataType
in interface GenTypedElement
public GenClass getTypeGenClass()
getTypeGenClass
in interface GenTypedElement
public GenClassifier getTypeGenClassifier()
getTypeGenClassifier
in interface GenTypedElement
@Deprecated public GenEnum getGenEnumType()
getTypeGenEnum()
.
getGenEnumType
in interface GenTypedElement
@Deprecated public GenDataType getGenDataTypeType()
getTypeGenDataType()
.
getGenDataTypeType
in interface GenTypedElement
@Deprecated public GenClass getGenClassType()
getTypeGenClass()
.
getGenClassType
in interface GenTypedElement
public java.lang.String getLowerBound()
getLowerBound
in interface GenTypedElement
public java.lang.String getUpperBound()
getUpperBound
in interface GenTypedElement
public boolean isUnique()
isUnique
in interface GenTypedElement
public java.lang.String getUniqueFlag()
getUniqueFlag
in interface GenTypedElement
public java.lang.String getOrderedFlag()
getOrderedFlag
in interface GenTypedElement
protected void appendModelSetting(java.lang.StringBuffer result, boolean qualified, java.lang.String name, java.lang.String value)
protected java.lang.String getMapModelInfo(boolean qualified, boolean includeFeatures)
protected java.lang.String getMultiplicityModelInfo(boolean qualified)
|
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 |