org.eclipse.emf.codegen.ecore.genmodel.impl
Class GenClassImpl

java.lang.Object
  extended byorg.eclipse.emf.common.notify.impl.BasicNotifierImpl
      extended byorg.eclipse.emf.ecore.impl.BasicEObjectImpl
          extended byorg.eclipse.emf.ecore.impl.EObjectImpl
              extended byorg.eclipse.emf.codegen.ecore.genmodel.impl.GenBaseImpl
                  extended byorg.eclipse.emf.codegen.ecore.genmodel.impl.GenClassifierImpl
                      extended byorg.eclipse.emf.codegen.ecore.genmodel.impl.GenClassImpl
All Implemented Interfaces:
EObject, GenBase, GenClass, GenClassifier, InternalEObject, Notifier

public class GenClassImpl
extends GenClassifierImpl
implements GenClass

An implementation of the model object 'Gen Class'.

The following features are implemented:


Nested Class Summary
 class GenClassImpl.CollidingGenOperationFilter
           
 
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
 
Nested classes inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
BasicEObjectImpl.EPropertiesHolder, BasicEObjectImpl.EPropertiesHolderBaseImpl, BasicEObjectImpl.EPropertiesHolderImpl
 
Nested classes inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
BasicNotifierImpl.EAdapterList
 
Nested classes inherited from class org.eclipse.emf.ecore.InternalEObject
InternalEObject.EStore
 
Field Summary
protected  boolean dynamic
          The cached value of the 'Dynamic' attribute
protected static boolean DYNAMIC_EDEFAULT
          The default value of the 'Dynamic' attribute
protected  EClass ecoreClass
          The cached value of the 'Ecore Class' reference
protected  EList genFeatures
          The cached value of the 'Gen Features' containment reference list
protected  EList genOperations
          The cached value of the 'Gen Operations' containment reference list
protected  boolean image
          The cached value of the 'Image' attribute
protected static boolean IMAGE_EDEFAULT
          The default value of the 'Image' attribute
static List INTRINSIC_CONSTRAINTS
           
protected  GenFeature labelFeature
          The cached value of the 'Label Feature' reference
protected  GenProviderKind provider
          The cached value of the 'Provider' attribute
protected static GenProviderKind PROVIDER_EDEFAULT
          The default value of the 'Provider' attribute
 
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 GenClassImpl()
           
 
Method Summary
 EClass basicGetEcoreClass()
           
 GenFeature basicGetLabelFeature()
           
 boolean canGenerate()
           
 boolean canGenerateEdit()
           
 boolean canGenerateEditor()
           
 boolean canGenerateTests()
           
 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, Object newValue)
           
protected  EClass eStaticClass()
           
 void eUnset(int featureID)
           
 void generate(Monitor progressMonitor)
          Deprecated. In EMF 2.2, a Generator should be used to generate code. This method will be removed after 2.2.
 void generateEdit(Monitor progressMonitor)
          Deprecated. In EMF 2.2, a Generator should be used to generate code. This method will be removed after 2.2.
 void generateTests(Monitor progressMonitor)
          Deprecated. In EMF 2.2, a Generator should be used to generate code. This method will be removed after 2.2.
 String getAbstractFlag()
           
 List getAllBaseGenClasses()
           
 List getAllChildrenFeatures()
           
 List getAllCreateChildFeatures()
           
 List getAllCreateChildFeaturesIncludingDelegation()
           
 List getAllEVirtualIndexBitFields(List allEVirtualIndexBitFields)
           
 List getAllGenConstraints()
           
 List getAllGenFeatures()
           
 List getAllGenOperations()
           
 GenClass getBaseGenClass()
          This returns the GenClass for the first immediate supertype.
 List getBaseGenClasses()
           
 String getCastFromEObject()
           
 List getChildrenClasses(GenFeature genFeature)
           
 List getChildrenFeatures()
           
 String getClassExtends()
           
 GenClass getClassExtendsGenClass()
          This walks up the chain of GenClasses defined by getBaseGenClass() and returns the first that does not represent an abstract class or an interface; that is, the instantiable class that the implementation class should extended.
 String getClassImplements()
           
protected  List getClassImplementsList()
           
 String getClassName()
           
 GenClassifier getConstraintDelegate(String constraint)
           
 GenClassifier getConstraintImplementor(String constraint)
           
 List getContentNotifyFeatures()
           
 List getCreateChildFeatures()
           
 String getCreateChildIconFileName(GenFeature feature, GenClass childClass)
           
 List getCrossPackageChildrenClasses(GenFeature genFeature)
           
 List getCrossPackageCreateChildFeatures()
           
 List getDeclaredFieldGenFeatures()
           
 List getDeclaredGenFeatures()
           
 List getDeclaredGenOperations()
           
 List getEBasicRemoveFromContainerGenFeatures()
           
 EClass getEcoreClass()
           
 EClassifier getEcoreClassifier()
           
 List getEInverseAddGenFeatures()
           
 List getEInverseRemoveGenFeatures()
           
 int getESetFlagIndex(GenFeature genFeature)
           
 String getESetFlagsField(GenFeature genFeature)
           
 List getESetGenFeatures()
           
 List getEVirtualIndexBitFields(List eVirtualIndexBitFields)
           
 String getEVirtualValuesField()
           
 List getExtendedGenClasses()
           
 List getExtendedGenFeatures()
           
 List getExtendedGenOperations()
           
 int getFeatureCount()
           
 String getFeatureCountID()
           
 String getFeatureCountValue()
           
 String getFeatureID(GenFeature genFeature)
           
 String getFeatureValue(GenFeature genFeature)
           
 List getFlagGenFeatures()
           
 List getFlagGenFeatures(String staticDefaultValue)
           
 int getFlagIndex(GenFeature genFeature)
           
 String getFlagsField(GenFeature genFeature)
           
 List getGenConstraints()
           
 String getGeneratedInstanceClassFlag()
           
 EList getGenFeatures()
           
 EList getGenOperations()
           
 List getImplementedGenClasses()
           
 List getImplementedGenFeatures()
           
 List getImplementedGenOperations()
           
 GenModel getImplementingGenModel(GenFeature genFeature)
           
 String getImportedClassName()
           
 String getImportedInstanceClassName()
           
 String getImportedInterfaceName()
           
 String getImportedMetaType()
           
 String getImportedProviderClassName()
           
 String getImportedTestCaseClassName()
           
 List getInheritedGenFeatures()
           
 String getInterfaceExtends()
           
 List getInterfaceExtendsList()
           
 String getInterfaceFlag()
           
 String getInterfaceName()
          This should only be called when there is actually an interface being generated (i.e. when, for certain, this is not an external interface).
protected  String getInternalQualifiedInterfaceName()
           
 GenOperation getInvariantOperation(String constraint)
           
 List getInvariantOperations()
           
 String getItemIconFileName()
           
 String getItemProviderAdapterFactoryClassName()
           
 List getLabelAndContentNotifyFeatures()
           
 GenFeature getLabelFeature()
          Returns the value of the 'Label Feature' reference
 List getLabelFeatureCandidates()
           
 GenFeature getLabelFeatureGen()
           
 List getLabelNotifyFeatures()
           
 String getListConstructor(GenFeature genFeature)
           
 String getLocalFeatureIndex(GenFeature genFeature)
           
 GenFeature getMapEntryKeyFeature()
           
 GenFeature getMapEntryValueFeature()
           
 GenFeature getMixedGenFeature()
           
 List getMixinGenClasses()
           
 List getMixinGenFeatures()
           
 List getMixinGenOperations()
           
 String getModelInfo()
           
protected  int getNonPrimitiveFeatureCount()
           
 List getNotifyFeatures()
           
 String getOperationID(GenOperation genOperation)
           
 List getPropertyFeatures()
           
 GenProviderKind getProvider()
           
 String getProviderBaseClassName()
           
 String getProviderClassName()
           
protected  GenClass getProviderExtendsGenClass()
           
 List getProviderImplementedGenClasses()
           
protected  List getProviderImplementedGenFeatures()
           
 String getQualifiedClassName()
           
 String getQualifiedFeatureCountID()
           
 String getQualifiedFeatureID(GenFeature genFeature)
           
 String getQualifiedInterfaceName()
           
 String getQualifiedProviderClassName()
           
 String getQualifiedTestCaseClassName()
           
 List getSharedClassCreateChildFeatures()
           
 List getSwitchGenClasses()
          Like getAllBaseGenClasses(), this returns the GenClasses for all of the supertypes, but the result is ordered by a breadth-first search, making it appropriate for use in the switch class.
 String getTestCaseClassName()
           
 List getToStringGenFeatures()
           
 boolean hasFactoryInterfaceCreateMethod()
           
 boolean hasFeatureMapCreateChildFeatures()
           
protected  boolean hasModelContribution()
           
 boolean hasOnlyDefaultConstraints()
           
 boolean hasTests()
           
 boolean implementsAny(Collection genFeatures)
           
 void initialize(EClass eClass)
           
 boolean isAbstract()
           
 boolean isDocumentRoot()
           
 boolean isDynamic()
           
 boolean isEObject()
           
 boolean isEObjectExtension()
           
 boolean isESetField(GenFeature genFeature)
           
 boolean isESetFlag(GenFeature genFeature)
           
 boolean isExternalInterface()
          This indicates that there is already an existing interface for this class or interface, so none will be generated.
 boolean isField(GenFeature genFeature)
           
 boolean isFlag(GenFeature genFeature)
           
 boolean isImage()
           
 boolean isInterface()
           
 boolean isJavaIOSerializable()
           
 boolean isMapEntry()
           
protected  boolean isMixed()
           
 boolean isModelRoot()
           
 boolean isProviderSingleton()
           
 boolean needsRootExtendsInterfaceExtendsTag()
           
 boolean needsRootImplementsInterfaceOperations()
           
 boolean reconcile()
           
 boolean reconcile(GenClass oldGenClassVersion)
           
protected  void reconcileSettings(GenClass oldGenClassVersion)
           
 void setDynamic(boolean newDynamic)
           
 void setEcoreClass(EClass newEcoreClass)
           
 void setImage(boolean newImage)
           
 void setLabelFeature(GenFeature newLabelFeature)
           
 void setProvider(GenProviderKind newProvider)
           
 String toString()
           
 
Methods inherited from class org.eclipse.emf.codegen.ecore.genmodel.impl.GenClassifierImpl
getClassifierAccessorName, getClassifierID, getClassifierInstanceName, getEcoreModelElement, getFormattedName, getGenPackage, getMetaType, getName, getQualifiedClassifierAccessor, getSafeUncapName, getUncapName
 
Methods inherited from class org.eclipse.emf.codegen.ecore.genmodel.impl.GenBaseImpl
addNonDuplicates, appendAnnotationInfo, appendAnnotationInfo, appendAnnotationInfo, appendLineBreak, appendModelSetting, appendModelSetting, canGenerateSchema, capName, collectGenClasses, collectGenConstraints, collectGenFeatures, collectGenOperations, createInputStream, createMonitor, createOutputStream, eObjectForURIFragmentSegment, escapeString, 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, generateEditor, generateSchema, generateSchema, generateTests, genSchema, genTests, getAllGenPackages, getAnnotationInfo, getAnnotationInfo, getContents, getDocumentation, getDocumentation, getEffectiveEObjectType, getEffectiveFeatureMapWrapperInterface, getEffectiveListType, getEffectiveMapType, getEncoding, getExtendedMetaData, getGenAnnotation, getGenAnnotations, getGenModel, getImplClassName, getImportedEffectiveFeatureMapWrapperClass, getImportedEffectiveFeatureMapWrapperInternalInterface, getImportedType, getImportManager, getInstanceClass, getJavaLangTypes, getJavaReservedWords, getPrimitiveDefault, getPrimitiveObjectType, getType, getTypeGenClasses, hasDocumentation, indent, isBlank, isEffectiveSuppressEMFTypes, 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
 
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.GenClass
getUncapName
 
Methods inherited from interface org.eclipse.emf.codegen.ecore.genmodel.GenClassifier
getClassifierAccessorName, getClassifierID, getClassifierInstanceName, getFormattedName, getGenPackage, getMetaType, getName, getQualifiedClassifierAccessor, getSafeUncapName
 
Methods inherited from interface org.eclipse.emf.codegen.ecore.genmodel.GenBase
canGenerateSchema, capName, format, gen, genEdit, genEditor, generate, generateEdit, generateEditor, generateEditor, generateSchema, generateSchema, generateTests, genSchema, genTests, getDocumentation, getEcoreModelElement, getGenAnnotation, getGenAnnotations, getGenModel, 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

PROVIDER_EDEFAULT

protected static final GenProviderKind PROVIDER_EDEFAULT
The default value of the 'Provider' attribute.

See Also:
getProvider()

provider

protected GenProviderKind provider
The cached value of the 'Provider' attribute.

See Also:
getProvider()

IMAGE_EDEFAULT

protected static final boolean IMAGE_EDEFAULT
The default value of the 'Image' attribute.

See Also:
isImage(), Constant Field Values

image

protected boolean image
The cached value of the 'Image' attribute.

See Also:
isImage()

DYNAMIC_EDEFAULT

protected static final boolean DYNAMIC_EDEFAULT
The default value of the 'Dynamic' attribute.

See Also:
isDynamic(), Constant Field Values

dynamic

protected boolean dynamic
The cached value of the 'Dynamic' attribute.

See Also:
isDynamic()

ecoreClass

protected EClass ecoreClass
The cached value of the 'Ecore Class' reference.

See Also:
getEcoreClass()

genFeatures

protected EList genFeatures
The cached value of the 'Gen Features' containment reference list.

See Also:
getGenFeatures()

genOperations

protected EList genOperations
The cached value of the 'Gen Operations' containment reference list.

See Also:
getGenOperations()

labelFeature

protected GenFeature labelFeature
The cached value of the 'Label Feature' reference.

See Also:
getLabelFeature()

INTRINSIC_CONSTRAINTS

public static final List INTRINSIC_CONSTRAINTS
Constructor Detail

GenClassImpl

protected GenClassImpl()

Method Detail

eStaticClass

protected EClass eStaticClass()

Overrides:
eStaticClass in class GenClassifierImpl

getProvider

public GenProviderKind getProvider()

Specified by:
getProvider in interface GenClass
Returns:
the value of the 'Provider' attribute.
See Also:
GenProviderKind, GenClass.setProvider(GenProviderKind), GenModelPackage.getGenClass_Provider()

isProviderSingleton

public boolean isProviderSingleton()
Specified by:
isProviderSingleton in interface GenClass

setProvider

public void setProvider(GenProviderKind newProvider)

Specified by:
setProvider in interface GenClass
Parameters:
newProvider - the new value of the 'Provider' attribute.
See Also:
GenProviderKind, GenClass.getProvider()

isImage

public boolean isImage()

Specified by:
isImage in interface GenClass
Returns:
the value of the 'Image' attribute.
See Also:
GenClass.setImage(boolean), GenModelPackage.getGenClass_Image()

setImage

public void setImage(boolean newImage)

Specified by:
setImage in interface GenClass
Parameters:
newImage - the new value of the 'Image' attribute.
See Also:
GenClass.isImage()

isDynamic

public boolean isDynamic()

Specified by:
isDynamic in interface GenClass
Returns:
the value of the 'Dynamic' attribute.
See Also:
GenClass.setDynamic(boolean), GenModelPackage.getGenClass_Dynamic()

setDynamic

public void setDynamic(boolean newDynamic)

Specified by:
setDynamic in interface GenClass
Parameters:
newDynamic - the new value of the 'Dynamic' attribute.
See Also:
GenClass.isDynamic()

getEcoreClass

public EClass getEcoreClass()

Specified by:
getEcoreClass in interface GenClass
Returns:
the value of the 'Ecore Class' reference.
See Also:
GenClass.setEcoreClass(EClass), GenModelPackage.getGenClass_EcoreClass()

basicGetEcoreClass

public EClass basicGetEcoreClass()


setEcoreClass

public void setEcoreClass(EClass newEcoreClass)

Specified by:
setEcoreClass in interface GenClass
Parameters:
newEcoreClass - the new value of the 'Ecore Class' reference.
See Also:
GenClass.getEcoreClass()

getGenFeatures

public EList getGenFeatures()

Specified by:
getGenFeatures in interface GenClass
Returns:
the value of the 'Gen Features' containment reference list.
See Also:
GenModelPackage.getGenClass_GenFeatures(), GenFeature.getGenClass()

getGenOperations

public EList getGenOperations()

Specified by:
getGenOperations in interface GenClass
Returns:
the value of the 'Gen Operations' containment reference list.
See Also:
GenModelPackage.getGenClass_GenOperations(), GenOperation.getGenClass()

getEcoreClassifier

public EClassifier getEcoreClassifier()
Specified by:
getEcoreClassifier in interface GenClassifier
Specified by:
getEcoreClassifier in class GenClassifierImpl

getImportedMetaType

public String getImportedMetaType()
Specified by:
getImportedMetaType in interface GenClassifier
Specified by:
getImportedMetaType in class GenClassifierImpl

getInterfaceName

public String getInterfaceName()
Description copied from interface: GenClass
This should only be called when there is actually an interface being generated (i.e. when, for certain, this is not an external interface). Otherwise, getImportedInterfaceName() should be used.

Specified by:
getInterfaceName in interface GenClass

getQualifiedInterfaceName

public String getQualifiedInterfaceName()
Specified by:
getQualifiedInterfaceName in interface GenClass

getInternalQualifiedInterfaceName

protected String getInternalQualifiedInterfaceName()

getImportedInstanceClassName

public String getImportedInstanceClassName()
Specified by:
getImportedInstanceClassName in interface GenClassifier

getImportedInterfaceName

public String getImportedInterfaceName()
Specified by:
getImportedInterfaceName in interface GenClass

getClassName

public String getClassName()
Specified by:
getClassName in interface GenClass

getQualifiedClassName

public String getQualifiedClassName()
Specified by:
getQualifiedClassName in interface GenClass

getImportedClassName

public String getImportedClassName()
Specified by:
getImportedClassName in interface GenClass

getBaseGenClasses

public List getBaseGenClasses()
Specified by:
getBaseGenClasses in interface GenClass

getAllBaseGenClasses

public List getAllBaseGenClasses()
Specified by:
getAllBaseGenClasses in interface GenClass

getSwitchGenClasses

public List getSwitchGenClasses()
Description copied from interface: GenClass
Like getAllBaseGenClasses(), this returns the GenClasses for all of the supertypes, but the result is ordered by a breadth-first search, making it appropriate for use in the switch class.

Specified by:
getSwitchGenClasses in interface GenClass

getBaseGenClass

public GenClass getBaseGenClass()
Description copied from interface: GenClass
This returns the GenClass for the first immediate supertype.

Specified by:
getBaseGenClass in interface GenClass

getClassExtendsGenClass

public GenClass getClassExtendsGenClass()
Description copied from interface: GenClass
This walks up the chain of GenClasses defined by getBaseGenClass() and returns the first that does not represent an abstract class or an interface; that is, the instantiable class that the implementation class should extended.

Specified by:
getClassExtendsGenClass in interface GenClass

getClassExtends

public String getClassExtends()
Specified by:
getClassExtends in interface GenClass

needsRootImplementsInterfaceOperations

public boolean needsRootImplementsInterfaceOperations()

getClassImplementsList

protected List getClassImplementsList()

getClassImplements

public String getClassImplements()
Specified by:
getClassImplements in interface GenClass

needsRootExtendsInterfaceExtendsTag

public boolean needsRootExtendsInterfaceExtendsTag()
Specified by:
needsRootExtendsInterfaceExtendsTag in interface GenClass

getInterfaceExtendsList

public List getInterfaceExtendsList()

getInterfaceExtends

public String getInterfaceExtends()
Specified by:
getInterfaceExtends in interface GenClass

getAllGenFeatures

public List getAllGenFeatures()
Specified by:
getAllGenFeatures in interface GenClass

getInheritedGenFeatures

public List getInheritedGenFeatures()
Specified by:
getInheritedGenFeatures in interface GenClass

getAllGenOperations

public List getAllGenOperations()
Specified by:
getAllGenOperations in interface GenClass

getFeatureID

public String getFeatureID(GenFeature genFeature)
Specified by:
getFeatureID in interface GenClass

getQualifiedFeatureID

public String getQualifiedFeatureID(GenFeature genFeature)
Specified by:
getQualifiedFeatureID in interface GenClass

getOperationID

public String getOperationID(GenOperation genOperation)
Specified by:
getOperationID in interface GenClass

getFeatureValue

public String getFeatureValue(GenFeature genFeature)
Specified by:
getFeatureValue in interface GenClass

getLocalFeatureIndex

public String getLocalFeatureIndex(GenFeature genFeature)
Specified by:
getLocalFeatureIndex in interface GenClass

getFlagsField

public String getFlagsField(GenFeature genFeature)
Specified by:
getFlagsField in interface GenClass

getFlagIndex

public int getFlagIndex(GenFeature genFeature)
Specified by:
getFlagIndex in interface GenClass

getESetFlagsField

public String getESetFlagsField(GenFeature genFeature)
Specified by:
getESetFlagsField in interface GenClass

getESetFlagIndex

public int getESetFlagIndex(GenFeature genFeature)
Specified by:
getESetFlagIndex in interface GenClass

getFeatureCountID

public String getFeatureCountID()
Specified by:
getFeatureCountID in interface GenClass

getQualifiedFeatureCountID

public String getQualifiedFeatureCountID()
Specified by:
getQualifiedFeatureCountID in interface GenClass

getFeatureCountValue

public String getFeatureCountValue()
Specified by:
getFeatureCountValue in interface GenClass

getFeatureCount

public int getFeatureCount()
Specified by:
getFeatureCount in interface GenClass

isEObject

public boolean isEObject()
Specified by:
isEObject in interface GenClass

isEObjectExtension

public boolean isEObjectExtension()
Specified by:
isEObjectExtension in interface GenClass

getCastFromEObject

public String getCastFromEObject()
Specified by:
getCastFromEObject in interface GenClass

isAbstract

public boolean isAbstract()
Specified by:
isAbstract in interface GenClass

getAbstractFlag

public String getAbstractFlag()
Specified by:
getAbstractFlag in interface GenClass

isInterface

public boolean isInterface()
Specified by:
isInterface in interface GenClass

getInterfaceFlag

public String getInterfaceFlag()
Specified by:
getInterfaceFlag in interface GenClass

getGeneratedInstanceClassFlag

public String getGeneratedInstanceClassFlag()
Specified by:
getGeneratedInstanceClassFlag in interface GenClassifier

isExternalInterface

public boolean isExternalInterface()
Description copied from interface: GenClass
This indicates that there is already an existing interface for this class or interface, so none will be generated. Any other generated that wishes to refer to its interface should use the value from getQualifiedInterfaceName() or getImportedInterfaceName().

Specified by:
isExternalInterface in interface GenClass

isMapEntry

public boolean isMapEntry()
Specified by:
isMapEntry in interface GenClass

getMapEntryKeyFeature

public GenFeature getMapEntryKeyFeature()
Specified by:
getMapEntryKeyFeature in interface GenClass

getMapEntryValueFeature

public GenFeature getMapEntryValueFeature()
Specified by:
getMapEntryValueFeature in interface GenClass

getImplementedGenClasses

public List getImplementedGenClasses()
Specified by:
getImplementedGenClasses in interface GenClass

getImplementedGenFeatures

public List getImplementedGenFeatures()
Specified by:
getImplementedGenFeatures in interface GenClass

getImplementingGenModel

public GenModel getImplementingGenModel(GenFeature genFeature)
Specified by:
getImplementingGenModel in interface GenClass

getImplementedGenOperations

public List getImplementedGenOperations()
Specified by:
getImplementedGenOperations in interface GenClass

getExtendedGenClasses

public List getExtendedGenClasses()
Specified by:
getExtendedGenClasses in interface GenClass

getExtendedGenFeatures

public List getExtendedGenFeatures()
Specified by:
getExtendedGenFeatures in interface GenClass

getExtendedGenOperations

public List getExtendedGenOperations()
Specified by:
getExtendedGenOperations in interface GenClass

getDeclaredGenFeatures

public List getDeclaredGenFeatures()
Specified by:
getDeclaredGenFeatures in interface GenClass

getDeclaredGenOperations

public List getDeclaredGenOperations()
Specified by:
getDeclaredGenOperations in interface GenClass

getFlagGenFeatures

public List getFlagGenFeatures()
Specified by:
getFlagGenFeatures in interface GenClass

getFlagGenFeatures

public List getFlagGenFeatures(String staticDefaultValue)
Specified by:
getFlagGenFeatures in interface GenClass

getESetGenFeatures

public List getESetGenFeatures()
Specified by:
getESetGenFeatures in interface GenClass

getEInverseAddGenFeatures

public List getEInverseAddGenFeatures()
Specified by:
getEInverseAddGenFeatures in interface GenClass

getEInverseRemoveGenFeatures

public List getEInverseRemoveGenFeatures()
Specified by:
getEInverseRemoveGenFeatures in interface GenClass

getEBasicRemoveFromContainerGenFeatures

public List getEBasicRemoveFromContainerGenFeatures()
Specified by:
getEBasicRemoveFromContainerGenFeatures in interface GenClass

getToStringGenFeatures

public List getToStringGenFeatures()
Specified by:
getToStringGenFeatures in interface GenClass

getMixinGenClasses

public List getMixinGenClasses()
Specified by:
getMixinGenClasses in interface GenClass

getMixinGenFeatures

public List getMixinGenFeatures()
Specified by:
getMixinGenFeatures in interface GenClass

getMixinGenOperations

public List getMixinGenOperations()
Specified by:
getMixinGenOperations in interface GenClass

initialize

public void initialize(EClass eClass)
Specified by:
initialize in interface GenClass

hasModelContribution

protected boolean hasModelContribution()
Overrides:
hasModelContribution in class GenBaseImpl

generate

public void generate(Monitor progressMonitor)
Deprecated. In EMF 2.2, a Generator should be used to generate code. This method will be removed after 2.2.

Specified by:
generate in interface GenBase
Overrides:
generate in class GenBaseImpl

getModelInfo

public String getModelInfo()
Specified by:
getModelInfo in interface GenClass
Overrides:
getModelInfo in class GenBaseImpl

getProviderClassName

public String getProviderClassName()
Specified by:
getProviderClassName in interface GenClass

getQualifiedProviderClassName

public String getQualifiedProviderClassName()
Specified by:
getQualifiedProviderClassName in interface GenClass

getImportedProviderClassName

public String getImportedProviderClassName()
Specified by:
getImportedProviderClassName in interface GenClass

getItemIconFileName

public String getItemIconFileName()
Specified by:
getItemIconFileName in interface GenClass

getCreateChildIconFileName

public String getCreateChildIconFileName(GenFeature feature,
                                         GenClass childClass)
Specified by:
getCreateChildIconFileName in interface GenClass

getProviderExtendsGenClass

protected GenClass getProviderExtendsGenClass()

getProviderBaseClassName

public String getProviderBaseClassName()
Specified by:
getProviderBaseClassName in interface GenClass

getProviderImplementedGenClasses

public List getProviderImplementedGenClasses()
Specified by:
getProviderImplementedGenClasses in interface GenClass

getProviderImplementedGenFeatures

protected List getProviderImplementedGenFeatures()

getLabelFeatureCandidates

public List getLabelFeatureCandidates()
Specified by:
getLabelFeatureCandidates in interface GenClass

getPropertyFeatures

public List getPropertyFeatures()
Specified by:
getPropertyFeatures in interface GenClass

getNotifyFeatures

public List getNotifyFeatures()
Specified by:
getNotifyFeatures in interface GenClass

getLabelNotifyFeatures

public List getLabelNotifyFeatures()
Specified by:
getLabelNotifyFeatures in interface GenClass

getContentNotifyFeatures

public List getContentNotifyFeatures()
Specified by:
getContentNotifyFeatures in interface GenClass

getLabelAndContentNotifyFeatures

public List getLabelAndContentNotifyFeatures()
Specified by:
getLabelAndContentNotifyFeatures in interface GenClass

getChildrenFeatures

public List getChildrenFeatures()
Specified by:
getChildrenFeatures in interface GenClass

getAllChildrenFeatures

public List getAllChildrenFeatures()
Specified by:
getAllChildrenFeatures in interface GenClass

getCreateChildFeatures

public List getCreateChildFeatures()
Specified by:
getCreateChildFeatures in interface GenClass

getAllCreateChildFeatures

public List getAllCreateChildFeatures()
Specified by:
getAllCreateChildFeatures in interface GenClass

getAllCreateChildFeaturesIncludingDelegation

public List getAllCreateChildFeaturesIncludingDelegation()
Specified by:
getAllCreateChildFeaturesIncludingDelegation in interface GenClass

getCrossPackageCreateChildFeatures

public List getCrossPackageCreateChildFeatures()
Specified by:
getCrossPackageCreateChildFeatures in interface GenClass

getSharedClassCreateChildFeatures

public List getSharedClassCreateChildFeatures()
Specified by:
getSharedClassCreateChildFeatures in interface GenClass

hasFeatureMapCreateChildFeatures

public boolean hasFeatureMapCreateChildFeatures()
Specified by:
hasFeatureMapCreateChildFeatures in interface GenClass

getChildrenClasses

public List getChildrenClasses(GenFeature genFeature)
Specified by:
getChildrenClasses in interface GenClass

getCrossPackageChildrenClasses

public List getCrossPackageChildrenClasses(GenFeature genFeature)
Specified by:
getCrossPackageChildrenClasses in interface GenClass

getLabelFeatureGen

public GenFeature getLabelFeatureGen()


getLabelFeature

public GenFeature getLabelFeature()
Description copied from interface: GenClass
Returns the value of the 'Label Feature' reference.

If the meaning of the 'Label Feature' reference isn't clear, there really should be more of a description here...

Specified by:
getLabelFeature in interface GenClass
Returns:
the value of the 'Label Feature' reference.
See Also:
GenClass.setLabelFeature(GenFeature), GenModelPackage.getGenClass_LabelFeature()

basicGetLabelFeature

public GenFeature basicGetLabelFeature()


setLabelFeature

public void setLabelFeature(GenFeature newLabelFeature)

Specified by:
setLabelFeature in interface GenClass
Parameters:
newLabelFeature - the new value of the 'Label Feature' reference.
See Also:
GenClass.getLabelFeature()

eInverseAdd

public NotificationChain eInverseAdd(InternalEObject otherEnd,
                                     int featureID,
                                     NotificationChain msgs)

Overrides:
eInverseAdd in class GenBaseImpl

eInverseRemove

public NotificationChain eInverseRemove(InternalEObject otherEnd,
                                        int featureID,
                                        NotificationChain msgs)

Overrides:
eInverseRemove in class GenBaseImpl

eGet

public Object eGet(int featureID,
                   boolean resolve,
                   boolean coreType)

Specified by:
eGet in interface InternalEObject
Overrides:
eGet in class GenClassifierImpl

eSet

public void eSet(int featureID,
                 Object newValue)

Specified by:
eSet in interface InternalEObject
Overrides:
eSet in class GenBaseImpl

eUnset

public void eUnset(int featureID)

Specified by:
eUnset in interface InternalEObject
Overrides:
eUnset in class GenBaseImpl

eIsSet

public boolean eIsSet(int featureID)

Specified by:
eIsSet in interface InternalEObject
Overrides:
eIsSet in class GenClassifierImpl

toString

public String toString()

Overrides:
toString in class BasicEObjectImpl

getItemProviderAdapterFactoryClassName

public String getItemProviderAdapterFactoryClassName()
Specified by:
getItemProviderAdapterFactoryClassName in interface GenClass

getTestCaseClassName

public String getTestCaseClassName()
Specified by:
getTestCaseClassName in interface GenClass

getQualifiedTestCaseClassName

public String getQualifiedTestCaseClassName()
Specified by:
getQualifiedTestCaseClassName in interface GenClass

getImportedTestCaseClassName

public String getImportedTestCaseClassName()
Specified by:
getImportedTestCaseClassName in interface GenClass

canGenerate

public boolean canGenerate()
Specified by:
canGenerate in interface GenBase
Overrides:
canGenerate in class GenBaseImpl

canGenerateEdit

public boolean canGenerateEdit()
Specified by:
canGenerateEdit in interface GenBase
Overrides:
canGenerateEdit in class GenBaseImpl

canGenerateEditor

public boolean canGenerateEditor()
Specified by:
canGenerateEditor in interface GenBase
Overrides:
canGenerateEditor in class GenBaseImpl

generateEdit

public void generateEdit(Monitor progressMonitor)
Deprecated. In EMF 2.2, a Generator should be used to generate code. This method will be removed after 2.2.

Specified by:
generateEdit in interface GenBase
Overrides:
generateEdit in class GenBaseImpl

hasTests

public boolean hasTests()
Specified by:
hasTests in interface GenClass

canGenerateTests

public boolean canGenerateTests()
Specified by:
canGenerateTests in interface GenBase
Overrides:
canGenerateTests in class GenBaseImpl

generateTests

public void generateTests(Monitor progressMonitor)
Deprecated. In EMF 2.2, a Generator should be used to generate code. This method will be removed after 2.2.

Specified by:
generateTests in interface GenBase
Overrides:
generateTests in class GenBaseImpl

reconcile

public boolean reconcile(GenClass oldGenClassVersion)
Specified by:
reconcile in interface GenClass

reconcileSettings

protected void reconcileSettings(GenClass oldGenClassVersion)

reconcile

public boolean reconcile()
Specified by:
reconcile in interface GenBase

getGenConstraints

public List getGenConstraints()
Specified by:
getGenConstraints in interface GenClassifier
Overrides:
getGenConstraints in class GenClassifierImpl

getAllGenConstraints

public List getAllGenConstraints()
Specified by:
getAllGenConstraints in interface GenClassifier
Overrides:
getAllGenConstraints in class GenClassifierImpl

getConstraintImplementor

public GenClassifier getConstraintImplementor(String constraint)
Specified by:
getConstraintImplementor in interface GenClassifier
Overrides:
getConstraintImplementor in class GenClassifierImpl

getConstraintDelegate

public GenClassifier getConstraintDelegate(String constraint)
Specified by:
getConstraintDelegate in interface GenClassifier

hasOnlyDefaultConstraints

public boolean hasOnlyDefaultConstraints()
Specified by:
hasOnlyDefaultConstraints in interface GenClassifier
Overrides:
hasOnlyDefaultConstraints in class GenClassifierImpl

getInvariantOperations

public List getInvariantOperations()
Specified by:
getInvariantOperations in interface GenClass

getInvariantOperation

public GenOperation getInvariantOperation(String constraint)
Specified by:
getInvariantOperation in interface GenClass

isDocumentRoot

public boolean isDocumentRoot()
Specified by:
isDocumentRoot in interface GenClass

isMixed

protected boolean isMixed()

getMixedGenFeature

public GenFeature getMixedGenFeature()
Specified by:
getMixedGenFeature in interface GenClass

getListConstructor

public String getListConstructor(GenFeature genFeature)
Specified by:
getListConstructor in interface GenClass

isModelRoot

public boolean isModelRoot()
Specified by:
isModelRoot in interface GenClass

getDeclaredFieldGenFeatures

public List getDeclaredFieldGenFeatures()
Specified by:
getDeclaredFieldGenFeatures in interface GenClass

isFlag

public boolean isFlag(GenFeature genFeature)
Specified by:
isFlag in interface GenClass

isESetFlag

public boolean isESetFlag(GenFeature genFeature)
Specified by:
isESetFlag in interface GenClass

isField

public boolean isField(GenFeature genFeature)
Specified by:
isField in interface GenClass

isESetField

public boolean isESetField(GenFeature genFeature)
Specified by:
isESetField in interface GenClass

implementsAny

public boolean implementsAny(Collection genFeatures)
Specified by:
implementsAny in interface GenClass

getNonPrimitiveFeatureCount

protected int getNonPrimitiveFeatureCount()

getEVirtualValuesField

public String getEVirtualValuesField()
Specified by:
getEVirtualValuesField in interface GenClass

getEVirtualIndexBitFields

public List getEVirtualIndexBitFields(List eVirtualIndexBitFields)
Specified by:
getEVirtualIndexBitFields in interface GenClass

getAllEVirtualIndexBitFields

public List getAllEVirtualIndexBitFields(List allEVirtualIndexBitFields)
Specified by:
getAllEVirtualIndexBitFields in interface GenClass

isJavaIOSerializable

public boolean isJavaIOSerializable()
Specified by:
isJavaIOSerializable in interface GenClass

hasFactoryInterfaceCreateMethod

public boolean hasFactoryInterfaceCreateMethod()
Specified by:
hasFactoryInterfaceCreateMethod in interface GenClass

Copyright 2001-2006 IBM Corporation and others.
All Rights Reserved.