public abstract class GenTypedElementImpl extends GenBaseImpl implements GenTypedElement
GenBaseImpl.AnnotationFilter, GenBaseImpl.AnnotationFilterImpl, GenBaseImpl.ColorInformation, GenBaseImpl.EclipseUtil, GenBaseImpl.GenAnnotationCopier, GenBaseImpl.GenClassFilter, GenBaseImpl.GenConstraintFilter, GenBaseImpl.GenFeatureFilter, GenBaseImpl.GenOperationFilter, GenBaseImpl.GIFEmitter, GenBaseImpl.UniqueNameHelperBasicEObjectImpl.EPropertiesHolder, BasicEObjectImpl.EPropertiesHolderBaseImpl, BasicEObjectImpl.EPropertiesHolderImplBasicNotifierImpl.EAdapterList<E extends java.lang.Object & Adapter>, BasicNotifierImpl.EObservableAdapterListInternalEObject.EStoreDEFAULT_ANNOTATION_FILTER, EMPTY_URI, genAnnotations, PLATFORM_RESOURCE_URIeAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXYEVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSETEOPPOSITE_FEATURE_BASE| Modifier | Constructor and Description |
|---|---|
protected |
GenTypedElementImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendModelSetting(java.lang.StringBuffer result,
boolean qualified,
java.lang.String name,
java.lang.String value) |
protected EClass |
eStaticClass() |
java.lang.String |
getArrayItemType(GenClass context)
This returns the imported name of the array type.
|
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 |
getQualifiedObjectType(GenClass context)
This returns the qualified name of the feature type or, if primitive, of the wrapper class (e.g.
|
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 |
getRawListItemType(GenClass context)
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() |
addNonDuplicates, addPackagePrefix, addPackageSuffix, appendAnnotationInfo, appendAnnotationInfo, appendAnnotationInfo, appendLineBreak, appendModelSetting, appendModelSetting, basicGetEcoreModelElement, canGenerate, canGenerateEdit, canGenerateEditor, canGenerateSchema, canGenerateTests, capName, collectGenClasses, collectGenConstraints, collectGenFeatures, collectGenOperations, collectGenOperations, createInputStream, createMonitor, createOutputStream, eGet, eInverseAdd, eInverseRemove, eIsSet, eObjectForURIFragmentSegment, escapeString, eSet, eUnset, 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, generateEdit, generateEditor, generateSchema, generateTests, genSchema, genTests, getAllGenPackages, getAnnotationInfo, getAnnotationInfo, getBoundType, getContents, getCopyright, getCopyright, getDocumentation, getDocumentation, getEcoreType, getEffectiveEObjectType, getEffectiveFeatureMapWrapperInterface, getEffectiveListType, getEffectiveListType, getEffectiveListType, getEffectiveMapEntryType, getEffectiveMapEntryType, getEffectiveMapEntryType, getEffectiveMapType, getEffectiveMapType, getEffectiveMapType, getEncoding, getExtendedMetaData, getGenAnnotation, getGenAnnotations, getGenModel, getImplClassName, getImportedType, getImportedType, getImportedType, getImportManager, getInstanceClass, getInterfaceName, getJavaLangTypes, getJavaReservedWords, getMainGenModel, getModelInfo, getName, getPrimitiveDefault, getPrimitiveObjectType, getType, getType, getType, getTypeArgument, getTypeArguments, getTypeGenClasses, hasCopyright, hasDocumentation, hasModelContribution, hasReferenceToClassifierWithInstanceTypeName, hasReferenceToClassifierWithInstanceTypeName, hasSubstitution, indent, indent, indent, indentAndImport, isBlank, isDerivedType, isJavaUtilMapEntry, isPrimitiveType, isReadOnly, isRemappedXMLType, parseName, reconcileGenAnnotations, safeName, setImportManager, setOverwriteable, toString, uncapName, uncapPrefixedName, uncapPrefixedName, unicodeEscapeEncodeeAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eInvoke, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURIeAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainerAdapterArray, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicInvoke, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eHasSettings, eInternalResource, eInverseAdd, eInverseRemove, eInvocationDelegate, eInvoke, eIsSet, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetDirectResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStaticOperationCount, eStore, eUnset, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValueseBasicAdapterArray, eBasicHasAdapters, eNotificationRequired, eNotifyclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcanGenerate, 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, uncapPrefixedNameeAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnseteAdapters, eDeliver, eNotify, eSetDelivereNotificationRequiredprotected EClass eStaticClass()
eStaticClass in class GenBaseImplpublic abstract ETypedElement getEcoreTypedElement()
public EModelElement getEcoreModelElement()
getEcoreModelElement in interface GenBasegetEcoreModelElement in interface GenTypedElementgetEcoreModelElement in class GenBaseImplpublic GenPackage getTypeGenPackage()
getTypeGenPackage in interface GenTypedElementpublic java.lang.String getTypeClassifierAccessorName()
getTypeClassifierAccessorName in interface GenTypedElement@Deprecated public java.lang.String getTypeClassifier()
getTypeClassifierAccessorName().getTypeClassifier in interface GenTypedElementprotected GenClass getContext()
public boolean hasGenericType()
hasGenericType in interface GenTypedElementpublic java.lang.String getRawType()
getRawType in interface GenTypedElementpublic java.lang.String getRawBoundType()
GenTypedElementgetRawBoundType in interface GenTypedElement@Deprecated public java.lang.String getType()
GenTypedElementGenTypedElement.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 GenTypedElementGenTypedElement.getType(GenClass)public java.lang.String getType(GenClass context)
GenTypedElementgetType in interface GenTypedElementpublic java.lang.String getRawImportedType()
getRawImportedType in interface GenTypedElementpublic java.lang.String getRawImportedBoundType()
GenTypedElementgetRawImportedBoundType in interface GenTypedElement@Deprecated public java.lang.String getImportedType()
GenTypedElementGenTypedElement.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 GenTypedElementGenTypedElement.getImportedType(GenClass)public java.lang.String getImportedType(GenClass context)
GenTypedElementgetImportedType in interface GenTypedElement@Deprecated public java.lang.String getObjectType()
GenTypedElementGenTypedElement.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 GenTypedElementGenTypedElement.getObjectType(GenClass)public java.lang.String getObjectType(GenClass context)
GenTypedElementgetObjectType in interface GenTypedElementpublic java.lang.String getQualifiedObjectType(GenClass context)
GenTypedElementgetQualifiedObjectType in interface GenTypedElement@Deprecated public java.lang.String getImportedInternalType()
GenTypedElementGenTypedElement.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 GenTypedElementGenTypedElement.getImportedInternalType(GenClass)public java.lang.String getImportedInternalType(GenClass context)
GenTypedElementgetImportedInternalType in interface GenTypedElementpublic boolean isFeatureMapType()
isFeatureMapType in interface GenTypedElementprotected static boolean isFeatureMapEntry(java.lang.String name)
public boolean isWrappedFeatureMapType()
isWrappedFeatureMapType in interface GenTypedElement@Deprecated public boolean isFeatureMapWrapped()
isWrappedFeatureMapType().isFeatureMapWrapped in interface GenTypedElementpublic GenJDKLevel getEffectiveComplianceLevel()
getEffectiveComplianceLevel in interface GenTypedElementgetEffectiveComplianceLevel in class GenBaseImplpublic boolean isEffectiveSuppressEMFTypes()
isEffectiveSuppressEMFTypes in interface GenTypedElementisEffectiveSuppressEMFTypes in class GenBaseImplpublic java.lang.String getImportedEffectiveFeatureMapWrapperInternalInterface()
getImportedEffectiveFeatureMapWrapperInternalInterface in interface GenTypedElementgetImportedEffectiveFeatureMapWrapperInternalInterface in class GenBaseImplpublic java.lang.String getImportedEffectiveFeatureMapWrapperClass()
getImportedEffectiveFeatureMapWrapperClass in interface GenTypedElementgetImportedEffectiveFeatureMapWrapperClass in class GenBaseImplpublic boolean isListType()
isListType in interface GenTypedElementpublic boolean isListDataType()
isListDataType in interface GenTypedElementpublic GenDataType getListDataType()
public java.lang.String getListTemplateArguments(GenClass context)
GenTypedElementgetListTemplateArguments in interface GenTypedElement@Deprecated public java.lang.String getListItemType()
GenTypedElementGenTypedElement.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 GenTypedElementGenTypedElement.getListItemType(GenClass)public java.lang.String getListItemType(GenClass context)
GenTypedElementgetListItemType in interface GenTypedElementpublic java.lang.String getRawListItemType()
GenTypedElementgetRawListItemType in interface GenTypedElementpublic java.lang.String getRawListItemType(GenClass context)
GenTypedElementgetRawListItemType in interface GenTypedElementpublic java.lang.String getArrayItemType(GenClass context)
GenTypedElementgetArrayItemType in interface GenTypedElement@Deprecated public java.lang.String getQualifiedListItemType()
GenTypedElementGenTypedElement.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 GenTypedElementGenTypedElement.getQualifiedListItemType(GenClass)public java.lang.String getQualifiedListItemType(GenClass context)
GenTypedElementgetQualifiedListItemType in interface GenTypedElementpublic boolean isMapType()
isMapType in interface GenTypedElementpublic boolean isMapEntryType()
public GenClass getMapEntryTypeGenClass()
getMapEntryTypeGenClass in interface GenTypedElementpublic java.lang.String getImportedMapEntryType()
getImportedMapEntryType in interface GenTypedElementpublic java.lang.String getImportedMapKeyType(GenClass context)
getImportedMapKeyType in interface GenTypedElementpublic java.lang.String getImportedMapValueType(GenClass context)
getImportedMapValueType in interface GenTypedElementpublic 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 GenTypedElementprotected boolean isEObjectType()
protected boolean hasEObjectBound(ETypeParameter eTypeParameter)
protected boolean isEObjectExtensionType()
protected boolean hasEObjectExtensionBound(ETypeParameter eTypeParameter)
public boolean isUncheckedCast()
isUncheckedCast in interface GenTypedElementpublic boolean isUncheckedCast(GenClass context)
isUncheckedCast in interface GenTypedElementpublic java.lang.String getEObjectCast()
GenTypedElementgetEObjectCast in interface GenTypedElementpublic java.lang.String getInternalTypeCast()
GenTypedElementgetInternalTypeCast in interface GenTypedElement@Deprecated public java.lang.String getNonEObjectInternalTypeCast()
GenTypedElementGenTypedElement.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 GenTypedElementGenTypedElement.getNonEObjectInternalTypeCast(GenClass)public java.lang.String getNonEObjectInternalTypeCast(GenClass context)
GenTypedElementgetNonEObjectInternalTypeCast in interface GenTypedElementpublic java.lang.String getRawTypeCast()
GenTypedElementgetRawTypeCast in interface GenTypedElementpublic boolean isPrimitiveType()
isPrimitiveType in interface GenTypedElementpublic java.lang.String getPrimitiveValueFunction()
getPrimitiveValueFunction in interface GenTypedElementpublic boolean isBooleanType()
isBooleanType in interface GenTypedElementpublic boolean isStringType()
isStringType in interface GenTypedElementpublic boolean isStringBasedType()
isStringBasedType in interface GenTypedElementpublic boolean isEnumType()
isEnumType in interface GenTypedElementpublic boolean isEnumBasedType()
isEnumBasedType in interface GenTypedElementpublic GenEnum getTypeGenEnum()
getTypeGenEnum in interface GenTypedElementpublic GenDataType getTypeGenDataType()
getTypeGenDataType in interface GenTypedElementpublic GenClass getTypeGenClass()
getTypeGenClass in interface GenTypedElementpublic 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 GenTypedElementpublic java.lang.String getLowerBound()
getLowerBound in interface GenTypedElementpublic java.lang.String getUpperBound()
getUpperBound in interface GenTypedElementpublic boolean isUnique()
isUnique in interface GenTypedElementpublic java.lang.String getUniqueFlag()
getUniqueFlag in interface GenTypedElementpublic java.lang.String getOrderedFlag()
getOrderedFlag in interface GenTypedElementprotected 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)