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
 String getAbstractFlag()
           
 List getAllBaseGenClasses()
           
 List getAllChildrenFeatures()
           
 List getAllCreateChildFeatures()
           
 List getAllGenFeatures()
           
 List getAllGenOperations()
           
 GenClass getBaseGenClass()
          This returns the GenClass for the first immediate supertype.
 List getBaseGenClasses()
           
 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()
           
 String getClassName()
           
 List getContentNotifyFeatures()
           
 List getCreateChildFeatures()
           
 List getCrossPackageChildrenClasses(GenFeature genFeature)
           
 List getCrossPackageCreateChildFeatures()
           
 List getEBasicRemoveFromContainerGenFeatures()
           
 EClass getEcoreClass()
          Returns the value of the 'Ecore Class' reference
 List getEInverseAddGenFeatures()
           
 List getEInverseRemoveGenFeatures()
           
 List getESetGenFeatures()
           
 int getFeatureCount()
           
 String getFeatureCountID()
           
 String getFeatureCountValue()
           
 String getFeatureID(GenFeature genFeature)
           
 String getFeatureValue(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.
 List getImplementedGenClasses()
           
 List getImplementedGenFeatures()
           
 List getImplementedGenOperations()
           
 String getImportedClassName()
           
 String getImportedInterfaceName()
           
 String getImportedProviderClassName()
           
 List getInheritedGenFeatures()
           
 String getInterfaceExtends()
           
 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).
 GenOperation getInvariantOperation(String constraint)
           
 String getItemProviderAdapterFactoryClassName()
           
 List getLabelAndContentNotifyFeatures()
           
 GenFeature getLabelFeature()
          Returns the value of the 'Label Feature' reference
 List getLabelFeatureCandidates()
           
 List getLabelNotifyFeatures()
           
 String getLocalFeatureIndex(GenFeature genFeature)
           
 GenFeature getMapEntryKeyFeature()
           
 GenFeature getMapEntryValueFeature()
           
 List getMixinGenClasses()
           
 List getMixinGenFeatures()
           
 String getModelInfo()
           
 List getNotifyFeatures()
           
 List getPropertyFeatures()
           
 GenProviderKind getProvider()
          Returns the value of the 'Provider' attribute.
 String getProviderBaseClassName()
           
 String getProviderClassName()
           
 String getQualifiedClassName()
           
 String getQualifiedFeatureCountID()
           
 String getQualifiedFeatureID(GenFeature genFeature)
           
 String getQualifiedInterfaceName()
           
 String getQualifiedProviderClassName()
           
 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.
 List getToStringGenFeatures()
           
 String getUncapName()
          This returns the name uncapitalized.
 void initialize(EClass eClass)
           
 boolean isAbstract()
           
 boolean isDocumentRoot()
           
 boolean isEObject()
           
 boolean isEObjectExtension()
           
 boolean isExternalInterface()
          This indicates that there is already an existing interface for this class or interface, so none will be generated.
 boolean isImage()
          Returns the value of the 'Image' attribute.
 boolean isInterface()
           
 boolean isMapEntry()
           
 boolean isProviderSingleton()
           
 boolean needsRootExtendsInterfaceExtendsTag()
           
 boolean reconcile(GenClass oldGenClassVersion)
           
 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, getSafeUncapName, hasOnlyDefaultConstraints
 
Methods inherited from interface org.eclipse.emf.codegen.ecore.genmodel.GenBase
canGenerate, canGenerateEdit, canGenerateEditor, canGenerateSchema, capName, ePackageGenModel, format, generate, generateEdit, generateEditor, generateSchema, getDocumentation, 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, 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, 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:
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:
isImage()

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:
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:
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:
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:
getLabelFeature()

getInterfaceName

public 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 String getQualifiedInterfaceName()

getImportedInterfaceName

public String getImportedInterfaceName()

getClassName

public String getClassName()

getQualifiedClassName

public String getQualifiedClassName()

getImportedClassName

public String getImportedClassName()

getUncapName

public 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 List getBaseGenClasses()

getAllBaseGenClasses

public List getAllBaseGenClasses()

getSwitchGenClasses

public 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 String getClassExtends()

getClassImplements

public String getClassImplements()

getInterfaceExtends

public String getInterfaceExtends()

needsRootExtendsInterfaceExtendsTag

public boolean needsRootExtendsInterfaceExtendsTag()

getAllGenFeatures

public List getAllGenFeatures()

getInheritedGenFeatures

public List getInheritedGenFeatures()

getAllGenOperations

public List getAllGenOperations()

getFeatureID

public String getFeatureID(GenFeature genFeature)

getQualifiedFeatureID

public String getQualifiedFeatureID(GenFeature genFeature)

getFeatureValue

public String getFeatureValue(GenFeature genFeature)

getLocalFeatureIndex

public String getLocalFeatureIndex(GenFeature genFeature)

getFeatureCountID

public String getFeatureCountID()

getQualifiedFeatureCountID

public String getQualifiedFeatureCountID()

getFeatureCountValue

public String getFeatureCountValue()

getFeatureCount

public int getFeatureCount()

isEObject

public boolean isEObject()

isEObjectExtension

public boolean isEObjectExtension()

isAbstract

public boolean isAbstract()

getAbstractFlag

public String getAbstractFlag()

isInterface

public boolean isInterface()

getInterfaceFlag

public 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 List getImplementedGenClasses()

getImplementedGenFeatures

public List getImplementedGenFeatures()

getImplementedGenOperations

public List getImplementedGenOperations()

getESetGenFeatures

public List getESetGenFeatures()

getEInverseAddGenFeatures

public List getEInverseAddGenFeatures()

getEInverseRemoveGenFeatures

public List getEInverseRemoveGenFeatures()

getEBasicRemoveFromContainerGenFeatures

public List getEBasicRemoveFromContainerGenFeatures()

getToStringGenFeatures

public List getToStringGenFeatures()

getMixinGenClasses

public List getMixinGenClasses()

getMixinGenFeatures

public List getMixinGenFeatures()

initialize

public void initialize(EClass eClass)

getProviderClassName

public String getProviderClassName()

getQualifiedProviderClassName

public String getQualifiedProviderClassName()

getImportedProviderClassName

public String getImportedProviderClassName()

isProviderSingleton

public boolean isProviderSingleton()

getProviderBaseClassName

public String getProviderBaseClassName()

getLabelFeatureCandidates

public List getLabelFeatureCandidates()

getPropertyFeatures

public List getPropertyFeatures()

getNotifyFeatures

public List getNotifyFeatures()

getLabelNotifyFeatures

public List getLabelNotifyFeatures()

getContentNotifyFeatures

public List getContentNotifyFeatures()

getLabelAndContentNotifyFeatures

public List getLabelAndContentNotifyFeatures()

getChildrenFeatures

public List getChildrenFeatures()

getAllChildrenFeatures

public List getAllChildrenFeatures()

getCreateChildFeatures

public List getCreateChildFeatures()

getAllCreateChildFeatures

public List getAllCreateChildFeatures()

getCrossPackageCreateChildFeatures

public List getCrossPackageCreateChildFeatures()

getSharedClassCreateChildFeatures

public List getSharedClassCreateChildFeatures()

getChildrenClasses

public List getChildrenClasses(GenFeature genFeature)

getCrossPackageChildrenClasses

public List getCrossPackageChildrenClasses(GenFeature genFeature)

getItemProviderAdapterFactoryClassName

public String getItemProviderAdapterFactoryClassName()

getModelInfo

public String getModelInfo()

reconcile

public boolean reconcile(GenClass oldGenClassVersion)

getInvariantOperation

public GenOperation getInvariantOperation(String constraint)

isDocumentRoot

public boolean isDocumentRoot()

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