org.eclipse.emf.codegen.ecore.genmodel.impl
Class GenTypedElementImpl
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
- All Implemented Interfaces:
- EObject, GenBase, GenTypedElement, InternalEObject, Notifier
- Direct Known Subclasses:
- GenFeatureImpl, GenOperationImpl, GenParameterImpl
- public abstract class GenTypedElementImpl
- extends GenBaseImpl
- implements GenTypedElement
An implementation of the model object 'Gen Typed Element'.
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 |
Method Summary |
protected void |
appendModelSetting(StringBuffer result,
boolean qualified,
String name,
String value)
|
protected EClass |
eStaticClass()
|
EModelElement |
getEcoreModelElement()
|
abstract ETypedElement |
getEcoreTypedElement()
|
String |
getEObjectCast()
|
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() . |
String |
getImportedEffectiveFeatureMapWrapperClass()
|
String |
getImportedEffectiveFeatureMapWrapperInternalInterface()
|
String |
getImportedInternalType()
|
String |
getImportedMapEntryType()
|
String |
getImportedType()
|
String |
getInternalTypeCast()
|
String |
getListItemType()
|
String |
getLowerBound()
|
GenClass |
getMapEntryTypeGenClass()
|
GenClass |
getMapGenClass()
Deprecated. As of EMF 2.1, replaced by getMapEntryTypeGenClass() . |
String |
getMapItemType()
Deprecated. As of EMF 2.1, replaced by getImportedMapEntryType() . |
protected String |
getMapModelInfo(boolean qualified,
boolean includeFeatures)
|
protected String |
getMultiplicityModelInfo(boolean qualified)
|
String |
getNonEObjectInternalTypeCast()
|
String |
getObjectType()
|
String |
getOrderedFlag()
|
String |
getPrimitiveValueFunction()
|
String |
getQualifiedListItemType()
|
String |
getType()
|
String |
getTypeClassifier()
Deprecated. As of EMF 2.1, replaced by getTypeClassifierAccessorName() . |
String |
getTypeClassifierAccessorName()
|
GenClass |
getTypeGenClass()
|
GenClassifier |
getTypeGenClassifier()
|
GenDataType |
getTypeGenDataType()
|
GenEnum |
getTypeGenEnum()
|
GenPackage |
getTypeGenPackage()
|
String |
getUniqueFlag()
|
String |
getUpperBound()
|
boolean |
isBooleanType()
|
boolean |
isEffectiveSuppressEMFTypes()
|
boolean |
isEnumBasedType()
|
boolean |
isEnumType()
|
protected boolean |
isEObjectExtensionType()
|
protected boolean |
isEObjectType()
|
protected static boolean |
isFeatureMapEntry(String name)
|
boolean |
isFeatureMapType()
|
boolean |
isFeatureMapWrapped()
Deprecated. As of EMF 2.1, replaced by isWrappedFeatureMapType() . |
boolean |
isListType()
|
boolean |
isMapType()
|
boolean |
isPrimitiveType()
|
boolean |
isStringBasedType()
|
boolean |
isStringType()
|
boolean |
isUnique()
|
boolean |
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, 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, 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, getModelInfo, getName, 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, eBasicRemoveFromContainerFeature, 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 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, 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 |
GenTypedElementImpl
protected GenTypedElementImpl()
-
eStaticClass
protected EClass eStaticClass()
-
- Overrides:
eStaticClass
in class GenBaseImpl
getEcoreTypedElement
public abstract ETypedElement getEcoreTypedElement()
getEcoreModelElement
public EModelElement getEcoreModelElement()
- Specified by:
getEcoreModelElement
in interface GenTypedElement
- Overrides:
getEcoreModelElement
in class GenBaseImpl
getTypeGenPackage
public GenPackage getTypeGenPackage()
- Specified by:
getTypeGenPackage
in interface GenTypedElement
getTypeClassifierAccessorName
public String getTypeClassifierAccessorName()
- Specified by:
getTypeClassifierAccessorName
in interface GenTypedElement
getTypeClassifier
public String getTypeClassifier()
- Deprecated. As of EMF 2.1, replaced by
getTypeClassifierAccessorName()
.
- Specified by:
getTypeClassifier
in interface GenTypedElement
getType
public String getType()
- Specified by:
getType
in interface GenTypedElement
getImportedType
public String getImportedType()
- Specified by:
getImportedType
in interface GenTypedElement
getObjectType
public String getObjectType()
- Specified by:
getObjectType
in interface GenTypedElement
getImportedInternalType
public String getImportedInternalType()
- Specified by:
getImportedInternalType
in interface GenTypedElement
isFeatureMapType
public boolean isFeatureMapType()
- Specified by:
isFeatureMapType
in interface GenTypedElement
isFeatureMapEntry
protected static boolean isFeatureMapEntry(String name)
isWrappedFeatureMapType
public boolean isWrappedFeatureMapType()
- Specified by:
isWrappedFeatureMapType
in interface GenTypedElement
isFeatureMapWrapped
public boolean isFeatureMapWrapped()
- Deprecated. As of EMF 2.1, replaced by
isWrappedFeatureMapType()
.
- Specified by:
isFeatureMapWrapped
in interface GenTypedElement
isEffectiveSuppressEMFTypes
public boolean isEffectiveSuppressEMFTypes()
- Specified by:
isEffectiveSuppressEMFTypes
in interface GenTypedElement
- Overrides:
isEffectiveSuppressEMFTypes
in class GenBaseImpl
getImportedEffectiveFeatureMapWrapperInternalInterface
public String getImportedEffectiveFeatureMapWrapperInternalInterface()
- Specified by:
getImportedEffectiveFeatureMapWrapperInternalInterface
in interface GenTypedElement
- Overrides:
getImportedEffectiveFeatureMapWrapperInternalInterface
in class GenBaseImpl
getImportedEffectiveFeatureMapWrapperClass
public String getImportedEffectiveFeatureMapWrapperClass()
- Specified by:
getImportedEffectiveFeatureMapWrapperClass
in interface GenTypedElement
- Overrides:
getImportedEffectiveFeatureMapWrapperClass
in class GenBaseImpl
isListType
public boolean isListType()
- Specified by:
isListType
in interface GenTypedElement
getListItemType
public String getListItemType()
- Specified by:
getListItemType
in interface GenTypedElement
getQualifiedListItemType
public String getQualifiedListItemType()
- Specified by:
getQualifiedListItemType
in interface GenTypedElement
isMapType
public boolean isMapType()
- Specified by:
isMapType
in interface GenTypedElement
getMapEntryTypeGenClass
public GenClass getMapEntryTypeGenClass()
- Specified by:
getMapEntryTypeGenClass
in interface GenTypedElement
getImportedMapEntryType
public String getImportedMapEntryType()
- Specified by:
getImportedMapEntryType
in interface GenTypedElement
getMapGenClass
public GenClass getMapGenClass()
- Deprecated. As of EMF 2.1, replaced by
getMapEntryTypeGenClass()
.
- Specified by:
getMapGenClass
in interface GenTypedElement
getMapItemType
public String getMapItemType()
- Deprecated. As of EMF 2.1, replaced by
getImportedMapEntryType()
.
- Specified by:
getMapItemType
in interface GenTypedElement
isEObjectType
protected boolean isEObjectType()
isEObjectExtensionType
protected boolean isEObjectExtensionType()
getEObjectCast
public String getEObjectCast()
- Specified by:
getEObjectCast
in interface GenTypedElement
getInternalTypeCast
public String getInternalTypeCast()
- Specified by:
getInternalTypeCast
in interface GenTypedElement
getNonEObjectInternalTypeCast
public String getNonEObjectInternalTypeCast()
- Specified by:
getNonEObjectInternalTypeCast
in interface GenTypedElement
isPrimitiveType
public boolean isPrimitiveType()
- Specified by:
isPrimitiveType
in interface GenTypedElement
getPrimitiveValueFunction
public String getPrimitiveValueFunction()
- Specified by:
getPrimitiveValueFunction
in interface GenTypedElement
isBooleanType
public boolean isBooleanType()
- Specified by:
isBooleanType
in interface GenTypedElement
isStringType
public boolean isStringType()
- Specified by:
isStringType
in interface GenTypedElement
isStringBasedType
public boolean isStringBasedType()
- Specified by:
isStringBasedType
in interface GenTypedElement
isEnumType
public boolean isEnumType()
- Specified by:
isEnumType
in interface GenTypedElement
isEnumBasedType
public boolean isEnumBasedType()
- Specified by:
isEnumBasedType
in interface GenTypedElement
getTypeGenEnum
public GenEnum getTypeGenEnum()
- Specified by:
getTypeGenEnum
in interface GenTypedElement
getTypeGenDataType
public GenDataType getTypeGenDataType()
- Specified by:
getTypeGenDataType
in interface GenTypedElement
getTypeGenClass
public GenClass getTypeGenClass()
- Specified by:
getTypeGenClass
in interface GenTypedElement
getTypeGenClassifier
public GenClassifier getTypeGenClassifier()
- Specified by:
getTypeGenClassifier
in interface GenTypedElement
getGenEnumType
public GenEnum getGenEnumType()
- Deprecated. As of EMF 2.1, replaced by
getTypeGenEnum()
.
- Specified by:
getGenEnumType
in interface GenTypedElement
getGenDataTypeType
public GenDataType getGenDataTypeType()
- Deprecated. As of EMF 2.1, replaced by
getTypeGenDataType()
.
- Specified by:
getGenDataTypeType
in interface GenTypedElement
getGenClassType
public GenClass getGenClassType()
- Deprecated. As of EMF 2.1, replaced by
getTypeGenClass()
.
- Specified by:
getGenClassType
in interface GenTypedElement
getLowerBound
public String getLowerBound()
- Specified by:
getLowerBound
in interface GenTypedElement
getUpperBound
public String getUpperBound()
- Specified by:
getUpperBound
in interface GenTypedElement
isUnique
public boolean isUnique()
- Specified by:
isUnique
in interface GenTypedElement
getUniqueFlag
public String getUniqueFlag()
- Specified by:
getUniqueFlag
in interface GenTypedElement
getOrderedFlag
public String getOrderedFlag()
- Specified by:
getOrderedFlag
in interface GenTypedElement
appendModelSetting
protected void appendModelSetting(StringBuffer result,
boolean qualified,
String name,
String value)
getMapModelInfo
protected String getMapModelInfo(boolean qualified,
boolean includeFeatures)
getMultiplicityModelInfo
protected String getMultiplicityModelInfo(boolean qualified)