org.eclipse.emf.codegen.ecore.genmodel
Interface GenClass

All Superinterfaces:
EObject, GenBase, GenClassifier, Notifier
All Known Implementing Classes:
GenClassImpl

public interface GenClass
extends GenClassifier

A representation of the model object 'Gen Class'.

The following features are supported:

See Also:
GenModelPackage.getGenClass()

Method Summary
 java.lang.String getAbstractFlag()
           
 java.util.List getAllBaseGenClasses()
           
 java.util.List getAllChildrenFeatures()
           
 java.util.List getAllCreateChildFeatures()
           
 java.util.List getAllCreateChildFeaturesIncludingDelegation()
           
 java.util.List getAllEVirtualIndexBitFields(java.util.List allEVirtualIndexBitFields)
           
 java.util.List getAllGenFeatures()
           
 java.util.List getAllGenOperations()
           
 GenClass getBaseGenClass()
          This returns the GenClass for the first immediate supertype.
 java.util.List getBaseGenClasses()
           
 java.lang.String getCastFromEObject()
           
 java.util.List getChildrenClasses(GenFeature genFeature)
           
 java.util.List getChildrenFeatures()
           
 java.lang.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.
 java.lang.String getClassImplements()
           
 java.lang.String getClassName()
           
 java.util.List getContentNotifyFeatures()
           
 java.util.List getCreateChildFeatures()
           
 java.lang.String getCreateChildIconFileName(GenFeature feature, GenClass childClass)
           
 java.util.List getCrossPackageChildrenClasses(GenFeature genFeature)
           
 java.util.List getCrossPackageCreateChildFeatures()
           
 java.util.List getDeclaredFieldGenFeatures()
           
 java.util.List getDeclaredGenFeatures()
           
 java.util.List getDeclaredGenOperations()
           
 java.util.List getEBasicRemoveFromContainerGenFeatures()
           
 EClass getEcoreClass()
          Returns the value of the 'Ecore Class' reference
 java.util.List getEInverseAddGenFeatures()
           
 java.util.List getEInverseRemoveGenFeatures()
           
 int getESetFlagIndex(GenFeature genFeature)
           
 java.lang.String getESetFlagsField(GenFeature genFeature)
           
 java.util.List getESetGenFeatures()
           
 java.util.List getEVirtualIndexBitFields(java.util.List eVirtualIndexBitFields)
           
 java.lang.String getEVirtualValuesField()
           
 java.util.List getExtendedGenClasses()
           
 java.util.List getExtendedGenFeatures()
           
 java.util.List getExtendedGenOperations()
           
 int getFeatureCount()
           
 java.lang.String getFeatureCountID()
           
 java.lang.String getFeatureCountValue()
           
 java.lang.String getFeatureID(GenFeature genFeature)
           
 java.lang.String getFeatureValue(GenFeature genFeature)
           
 java.util.List getFlagGenFeatures()
           
 java.util.List getFlagGenFeatures(java.lang.String staticDefaultValue)
           
 int getFlagIndex(GenFeature genFeature)
           
 java.lang.String getFlagsField(GenFeature genFeature)
           
 EList getGenFeatures()
          Returns the value of the 'Gen Features' containment reference list.
 EList getGenOperations()
          Returns the value of the 'Gen Operations' containment reference list.
 java.util.List getImplementedGenClasses()
           
 java.util.List getImplementedGenFeatures()
           
 java.util.List getImplementedGenOperations()
           
 GenModel getImplementingGenModel(GenFeature genFeature)
           
 java.lang.String getImportedClassName()
           
 java.lang.String getImportedInterfaceName()
           
 java.lang.String getImportedProviderClassName()
           
 java.lang.String getImportedTestCaseClassName()
           
 java.util.List getInheritedGenFeatures()
           
 java.lang.String getInterfaceExtends()
           
 java.lang.String getInterfaceFlag()
           
 java.lang.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).
 GenOperation getInvariantOperation(java.lang.String constraint)
           
 java.util.List getInvariantOperations()
           
 java.lang.String getItemIconFileName()
           
 java.lang.String getItemProviderAdapterFactoryClassName()
           
 java.util.List getLabelAndContentNotifyFeatures()
           
 GenFeature getLabelFeature()
          Returns the value of the 'Label Feature' reference
 java.util.List getLabelFeatureCandidates()
           
 java.util.List getLabelNotifyFeatures()
           
 java.lang.String getListConstructor(GenFeature genFeature)
           
 java.lang.String getLocalFeatureIndex(GenFeature genFeature)
           
 GenFeature getMapEntryKeyFeature()
           
 GenFeature getMapEntryValueFeature()
           
 GenFeature getMixedGenFeature()
           
 java.util.List getMixinGenClasses()
           
 java.util.List getMixinGenFeatures()
           
 java.util.List getMixinGenOperations()
           
 java.lang.String getModelInfo()
           
 java.util.List getNotifyFeatures()
           
 java.lang.String getOperationID(GenOperation genOperation)
           
 java.util.List getPropertyFeatures()
           
 GenProviderKind getProvider()
          Returns the value of the 'Provider' attribute.
 java.lang.String getProviderBaseClassName()
           
 java.lang.String getProviderClassName()
           
 java.util.List getProviderImplementedGenClasses()
           
 java.lang.String getQualifiedClassName()
           
 java.lang.String getQualifiedFeatureCountID()
           
 java.lang.String getQualifiedFeatureID(GenFeature genFeature)
           
 java.lang.String getQualifiedInterfaceName()
           
 java.lang.String getQualifiedProviderClassName()
           
 java.lang.String getQualifiedTestCaseClassName()
           
 java.util.List getSharedClassCreateChildFeatures()
           
 java.util.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.
 java.lang.String getTestCaseClassName()
           
 java.util.List getToStringGenFeatures()
           
 java.lang.String getUncapName()
          This returns the name uncapitalized.
 boolean hasFactoryInterfaceCreateMethod()
           
 boolean hasFeatureMapCreateChildFeatures()
           
 boolean hasTests()
           
 boolean implementsAny(java.util.Collection genFeatures)
           
 void initialize(EClass eClass)
           
 boolean isAbstract()
           
 boolean isDocumentRoot()
           
 boolean isDynamic()
          Returns the value of the 'Dynamic' attribute
 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()
          Returns the value of the 'Image' attribute.
 boolean isInterface()
           
 boolean isJavaIOSerializable()
           
 boolean isMapEntry()
           
 boolean isModelRoot()
           
 boolean isProviderSingleton()
           
 boolean needsRootExtendsInterfaceExtendsTag()
           
 boolean reconcile(GenClass oldGenClassVersion)
           
 void setDynamic(boolean value)
          Sets the value of the 'Dynamic' attribute
 void setEcoreClass(EClass value)
          Sets the value of the 'Ecore Class' reference
 void setImage(boolean value)
          Sets the value of the 'Image' attribute
 void setLabelFeature(GenFeature value)
          Sets the value of the 'Label Feature' reference
 void setProvider(GenProviderKind value)
          Sets the value of the 'Provider' attribute
 
Methods inherited from interface org.eclipse.emf.codegen.ecore.genmodel.GenClassifier
getAllGenConstraints, getClassifierAccessorName, getClassifierID, getClassifierInstanceName, getConstraintDelegate, getConstraintImplementor, getEcoreClassifier, getFormattedName, getGenConstraints, getGeneratedInstanceClassFlag, getGenPackage, getImportedInstanceClassName, getImportedMetaType, getMetaType, getName, getQualifiedClassifierAccessor, getSafeUncapName, hasOnlyDefaultConstraints
 
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, getEcoreModelElement, 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
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 

Method Detail

getProvider

public GenProviderKind getProvider()
Returns the value of the 'Provider' attribute. The literals are from the enumeration GenProviderKind.

If the meaning of the 'Provider' attribute isn't clear, there really should be more of a description here...

Returns:
the value of the 'Provider' attribute.
See Also:
GenProviderKind, GenClass.setProvider(GenProviderKind), GenModelPackage.getGenClass_Provider()

setProvider

public void setProvider(GenProviderKind value)
Sets the value of the 'Provider' attribute.

Parameters:
value - the new value of the 'Provider' attribute.
See Also:
GenProviderKind, GenClass.getProvider()

isImage

public boolean isImage()
Returns the value of the 'Image' attribute. The default value is "true".

If the meaning of the 'Image' attribute isn't clear, there really should be more of a description here...

Returns:
the value of the 'Image' attribute.
See Also:
GenClass.setImage(boolean), GenModelPackage.getGenClass_Image()

setImage

public void setImage(boolean value)
Sets the value of the 'Image' attribute.

Parameters:
value - the new value of the 'Image' attribute.
See Also:
GenClass.isImage()

isDynamic

public boolean isDynamic()
Returns the value of the 'Dynamic' attribute.

If the meaning of the 'Dynamic' attribute isn't clear, there really should be more of a description here...

Returns:
the value of the 'Dynamic' attribute.
See Also:
GenClass.setDynamic(boolean), GenModelPackage.getGenClass_Dynamic()

setDynamic

public void setDynamic(boolean value)
Sets the value of the 'Dynamic' attribute.

Parameters:
value - the new value of the 'Dynamic' attribute.
See Also:
GenClass.isDynamic()

getEcoreClass

public EClass getEcoreClass()
Returns the value of the 'Ecore Class' reference.

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

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

setEcoreClass

public void setEcoreClass(EClass value)
Sets the value of the 'Ecore Class' reference.

Parameters:
value - the new value of the 'Ecore Class' reference.
See Also:
GenClass.getEcoreClass()

getGenFeatures

public EList getGenFeatures()
Returns the value of the 'Gen Features' containment reference list. The list contents are of type GenFeature. It is bidirectional and its opposite is 'Gen Class'.

If the meaning of the 'Gen Features' reference list isn't clear, there really should be more of a description here...

Returns:
the value of the 'Gen Features' containment reference list.
See Also:
GenModelPackage.getGenClass_GenFeatures(), GenFeature.getGenClass()

getGenOperations

public EList getGenOperations()
Returns the value of the 'Gen Operations' containment reference list. The list contents are of type GenOperation. It is bidirectional and its opposite is 'Gen Class'.

If the meaning of the 'Gen Operations' reference list isn't clear, there really should be more of a description here...

Returns:
the value of the 'Gen Operations' containment reference list.
See Also:
GenModelPackage.getGenClass_GenOperations(), GenOperation.getGenClass()

getLabelFeature

public GenFeature getLabelFeature()
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...

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

setLabelFeature

public void setLabelFeature(GenFeature value)
Sets the value of the 'Label Feature' reference.

Parameters:
value - the new value of the 'Label Feature' reference.
See Also:
GenClass.getLabelFeature()

getInterfaceName

public java.lang.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). Otherwise, getImportedInterfaceName() should be used.


getQualifiedInterfaceName

public java.lang.String getQualifiedInterfaceName()

getImportedInterfaceName

public java.lang.String getImportedInterfaceName()

getClassName

public java.lang.String getClassName()

getQualifiedClassName

public java.lang.String getQualifiedClassName()

getImportedClassName

public java.lang.String getImportedClassName()

getUncapName

public java.lang.String getUncapName()
This returns the name uncapitalized. Callers that plan to use this name without appending a suffix should call getSafeUncapInterfaceName() to make sure it's not a reserved word.


getBaseGenClasses

public java.util.List getBaseGenClasses()

getAllBaseGenClasses

public java.util.List getAllBaseGenClasses()

getSwitchGenClasses

public java.util.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.


getBaseGenClass

public GenClass getBaseGenClass()
This returns the GenClass for the first immediate supertype.


getClassExtendsGenClass

public 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.


getClassExtends

public java.lang.String getClassExtends()

getClassImplements

public java.lang.String getClassImplements()

getInterfaceExtends

public java.lang.String getInterfaceExtends()

needsRootExtendsInterfaceExtendsTag

public boolean needsRootExtendsInterfaceExtendsTag()

getAllGenFeatures

public java.util.List getAllGenFeatures()

getInheritedGenFeatures

public java.util.List getInheritedGenFeatures()

getAllGenOperations

public java.util.List getAllGenOperations()

getFeatureID

public java.lang.String getFeatureID(GenFeature genFeature)

getQualifiedFeatureID

public java.lang.String getQualifiedFeatureID(GenFeature genFeature)

getOperationID

public java.lang.String getOperationID(GenOperation genOperation)

getFeatureValue

public java.lang.String getFeatureValue(GenFeature genFeature)

getLocalFeatureIndex

public java.lang.String getLocalFeatureIndex(GenFeature genFeature)

getFlagsField

public java.lang.String getFlagsField(GenFeature genFeature)

getFlagIndex

public int getFlagIndex(GenFeature genFeature)

getESetFlagsField

public java.lang.String getESetFlagsField(GenFeature genFeature)

getESetFlagIndex

public int getESetFlagIndex(GenFeature genFeature)

getFeatureCountID

public java.lang.String getFeatureCountID()

getQualifiedFeatureCountID

public java.lang.String getQualifiedFeatureCountID()

getFeatureCountValue

public java.lang.String getFeatureCountValue()

getFeatureCount

public int getFeatureCount()

isEObject

public boolean isEObject()

isEObjectExtension

public boolean isEObjectExtension()

getCastFromEObject

public java.lang.String getCastFromEObject()

isAbstract

public boolean isAbstract()

getAbstractFlag

public java.lang.String getAbstractFlag()

isInterface

public boolean isInterface()

getInterfaceFlag

public java.lang.String getInterfaceFlag()

isExternalInterface

public boolean isExternalInterface()
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().


isMapEntry

public boolean isMapEntry()

getMapEntryKeyFeature

public GenFeature getMapEntryKeyFeature()

getMapEntryValueFeature

public GenFeature getMapEntryValueFeature()

getImplementedGenClasses

public java.util.List getImplementedGenClasses()

getImplementedGenFeatures

public java.util.List getImplementedGenFeatures()

getImplementedGenOperations

public java.util.List getImplementedGenOperations()

getImplementingGenModel

public GenModel getImplementingGenModel(GenFeature genFeature)

implementsAny

public boolean implementsAny(java.util.Collection genFeatures)

getExtendedGenClasses

public java.util.List getExtendedGenClasses()

getExtendedGenFeatures

public java.util.List getExtendedGenFeatures()

getExtendedGenOperations

public java.util.List getExtendedGenOperations()

getDeclaredFieldGenFeatures

public java.util.List getDeclaredFieldGenFeatures()

getDeclaredGenFeatures

public java.util.List getDeclaredGenFeatures()

getDeclaredGenOperations

public java.util.List getDeclaredGenOperations()

getFlagGenFeatures

public java.util.List getFlagGenFeatures()

getFlagGenFeatures

public java.util.List getFlagGenFeatures(java.lang.String staticDefaultValue)

getESetGenFeatures

public java.util.List getESetGenFeatures()

getEInverseAddGenFeatures

public java.util.List getEInverseAddGenFeatures()

getEInverseRemoveGenFeatures

public java.util.List getEInverseRemoveGenFeatures()

getEBasicRemoveFromContainerGenFeatures

public java.util.List getEBasicRemoveFromContainerGenFeatures()

getToStringGenFeatures

public java.util.List getToStringGenFeatures()

getMixinGenClasses

public java.util.List getMixinGenClasses()

getMixinGenFeatures

public java.util.List getMixinGenFeatures()

getMixinGenOperations

public java.util.List getMixinGenOperations()

initialize

public void initialize(EClass eClass)

getProviderClassName

public java.lang.String getProviderClassName()

getQualifiedProviderClassName

public java.lang.String getQualifiedProviderClassName()

getImportedProviderClassName

public java.lang.String getImportedProviderClassName()

isProviderSingleton

public boolean isProviderSingleton()

getItemIconFileName

public java.lang.String getItemIconFileName()

getCreateChildIconFileName

public java.lang.String getCreateChildIconFileName(GenFeature feature,
                                                   GenClass childClass)

getProviderBaseClassName

public java.lang.String getProviderBaseClassName()

getProviderImplementedGenClasses

public java.util.List getProviderImplementedGenClasses()

getLabelFeatureCandidates

public java.util.List getLabelFeatureCandidates()

getPropertyFeatures

public java.util.List getPropertyFeatures()

getNotifyFeatures

public java.util.List getNotifyFeatures()

getLabelNotifyFeatures

public java.util.List getLabelNotifyFeatures()

getContentNotifyFeatures

public java.util.List getContentNotifyFeatures()

getLabelAndContentNotifyFeatures

public java.util.List getLabelAndContentNotifyFeatures()

getChildrenFeatures

public java.util.List getChildrenFeatures()

getAllChildrenFeatures

public java.util.List getAllChildrenFeatures()

getCreateChildFeatures

public java.util.List getCreateChildFeatures()

getAllCreateChildFeatures

public java.util.List getAllCreateChildFeatures()

getAllCreateChildFeaturesIncludingDelegation

public java.util.List getAllCreateChildFeaturesIncludingDelegation()

getCrossPackageCreateChildFeatures

public java.util.List getCrossPackageCreateChildFeatures()

getSharedClassCreateChildFeatures

public java.util.List getSharedClassCreateChildFeatures()

hasFeatureMapCreateChildFeatures

public boolean hasFeatureMapCreateChildFeatures()

getChildrenClasses

public java.util.List getChildrenClasses(GenFeature genFeature)

getCrossPackageChildrenClasses

public java.util.List getCrossPackageChildrenClasses(GenFeature genFeature)

getItemProviderAdapterFactoryClassName

public java.lang.String getItemProviderAdapterFactoryClassName()

getTestCaseClassName

public java.lang.String getTestCaseClassName()

getQualifiedTestCaseClassName

public java.lang.String getQualifiedTestCaseClassName()

getImportedTestCaseClassName

public java.lang.String getImportedTestCaseClassName()

getModelInfo

public java.lang.String getModelInfo()

reconcile

public boolean reconcile(GenClass oldGenClassVersion)

getInvariantOperations

public java.util.List getInvariantOperations()

getInvariantOperation

public GenOperation getInvariantOperation(java.lang.String constraint)

isDocumentRoot

public boolean isDocumentRoot()

getMixedGenFeature

public GenFeature getMixedGenFeature()

getListConstructor

public java.lang.String getListConstructor(GenFeature genFeature)

isModelRoot

public boolean isModelRoot()

isFlag

public boolean isFlag(GenFeature genFeature)

isESetFlag

public boolean isESetFlag(GenFeature genFeature)

isField

public boolean isField(GenFeature genFeature)

isESetField

public boolean isESetField(GenFeature genFeature)

hasTests

public boolean hasTests()

getEVirtualValuesField

public java.lang.String getEVirtualValuesField()

getEVirtualIndexBitFields

public java.util.List getEVirtualIndexBitFields(java.util.List eVirtualIndexBitFields)

getAllEVirtualIndexBitFields

public java.util.List getAllEVirtualIndexBitFields(java.util.List allEVirtualIndexBitFields)

isJavaIOSerializable

public boolean isJavaIOSerializable()

hasFactoryInterfaceCreateMethod

public boolean hasFactoryInterfaceCreateMethod()

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