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

All Superinterfaces:
EObject, GenBase, Notifier
All Known Implementing Classes:
GenFeatureImpl

public interface GenFeature
extends GenBase

A representation of the model object 'Gen Feature'.

The following features are supported:

See Also:
GenModelPackage.getGenFeature()

Method Summary
 String getAccessorName()
           
 String getCapName()
           
 String getChangeableFlag()
           
 String getContainerClass()
           
 String getContainmentFlag()
           
 String getDefaultValue()
           
 GenFeature getDelegateFeature()
           
 String getDerivedFlag()
           
 EStructuralFeature getEcoreFeature()
          Returns the value of the 'Ecore Feature' reference
 String getEObjectCast()
           
 String getFeatureAccessorName()
           
 String getFeatureKind()
           
 String getFormattedName()
           
 GenClass getGenClass()
          Returns the value of the 'Gen Class' container reference.
 GenDataType getGenDataTypeType()
           
 GenEnum getGenEnumType()
           
 GenPackage getGenPackage()
           
 String getGetAccessor()
           
 String getIDFlag()
           
 String getImportedEffectiveFeatureMapWrapperClass()
           
 String getImportedEffectiveFeatureMapWrapperInternalInterface()
           
 String getImportedInternalType()
           
 String getImportedMetaType()
           
 String getImportedType()
           
 String getInternalTypeCast()
           
 String getIsName()
           
 String getListItemType()
           
 String getLowerBound()
           
 GenClass getMapGenClass()
           
 String getMapItemType()
           
 String getMetaType()
           
 String getModelInfo()
           
 String getName()
           
 String getObjectType()
           
 String getOrderedFlag()
           
 String getPrimitiveValueFunction()
           
 GenPropertyKind getProperty()
          Returns the value of the 'Property' attribute.
 String getPropertyImageName()
           
 String getQualifiedFeatureAccessorName()
           
 String getQualifiedListItemType()
           
 String getQualifiedModelInfo()
           
 String getResolveProxiesFlag()
           
 GenFeature getReverse()
           
 String getSafeName()
           
 String getSafeNameAsEObject()
           
 String getStaticDefaultValue()
           
 String getTransientFlag()
           
 String getType()
           
 String getTypeClassifier()
           
 GenPackage getTypeGenPackage()
           
 String getUncapName()
           
 String getUniqueFlag()
           
 String getUnsettableFlag()
           
 String getUpperBound()
           
 String getUpperName()
           
 String getVolatileFlag()
           
 boolean hasDelegateFeature()
           
 void initialize(EStructuralFeature eFeature)
           
 boolean isBidirectional()
           
 boolean isBooleanType()
           
 boolean isChangeable()
           
 boolean isChildren()
          Returns the value of the 'Children' attribute
 boolean isContainer()
           
 boolean isContains()
           
 boolean isCreateChild()
          Returns the value of the 'Create Child' attribute
 boolean isEffectiveSuppressEMFTypes()
           
 boolean isEnumType()
           
 boolean isFeatureMapType()
           
 boolean isFeatureMapWrapped()
           
 boolean isID()
           
 boolean isListType()
           
 boolean isMapType()
           
 boolean isNotify()
          Returns the value of the 'Notify' attribute.
 boolean isPrimitiveType()
           
 boolean isProperty()
           
 boolean isReferenceType()
           
 boolean isResolveProxies()
           
 boolean isSetCreateChild()
          Returns whether the value of the 'Create Child' attribute is set
 boolean isSetDefaultValue()
           
 boolean isStringType()
           
 boolean isUnique()
           
 boolean isUnsettable()
           
 boolean isVolatile()
           
 boolean reconcile(GenFeature oldGenFeatureVersion)
           
 void setChildren(boolean value)
          Sets the value of the 'Children' attribute
 void setCreateChild(boolean value)
          Sets the value of the 'Create Child' attribute
 void setEcoreFeature(EStructuralFeature value)
          Sets the value of the 'Ecore Feature' reference
 void setGenClass(GenClass value)
          Sets the value of the 'Gen Class' container reference
 void setNotify(boolean value)
          Sets the value of the 'Notify' attribute
 void setProperty(GenPropertyKind value)
          Sets the value of the 'Property' attribute
 void unsetCreateChild()
          Unsets the value of the 'Create Child' attribute
 
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

getProperty

public GenPropertyKind getProperty()
Returns the value of the 'Property' attribute. The literals are from the enumeration GenPropertyKind.

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

Returns:
the value of the 'Property' attribute.
See Also:
GenPropertyKind, setProperty(GenPropertyKind), GenModelPackage.getGenFeature_Property()

setProperty

public void setProperty(GenPropertyKind value)
Sets the value of the 'Property' attribute.

Parameters:
value - the new value of the 'Property' attribute.
See Also:
GenPropertyKind, getProperty()

isNotify

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

Returns:
the value of the 'Notify' attribute.
See Also:
setNotify(boolean), GenModelPackage.getGenFeature_Notify()

setNotify

public void setNotify(boolean value)
Sets the value of the 'Notify' attribute.

Parameters:
value - the new value of the 'Notify' attribute.
See Also:
isNotify()

isChildren

public boolean isChildren()
Returns the value of the 'Children' attribute.

Returns:
the value of the 'Children' attribute.
See Also:
setChildren(boolean), GenModelPackage.getGenFeature_Children()

setChildren

public void setChildren(boolean value)
Sets the value of the 'Children' attribute.

Parameters:
value - the new value of the 'Children' attribute.
See Also:
isChildren()

isCreateChild

public boolean isCreateChild()
Returns the value of the 'Create Child' attribute.

This attribute determines whether child objects can be created via this feature. It is temporarily unsettable to ease migration from pre-2.0 versions of EMF, in which the children feature did this as a secondary role.

If the feature has not yet been set, it will be set based on the value of the children feature, before its value is returned. This ensures that pre-2.0 models will upgrade themselves, and continue to work as before.

Returns:
the value of the 'Create Child' attribute.
See Also:
isSetCreateChild(), unsetCreateChild(), setCreateChild(boolean), GenModelPackage.getGenFeature_CreateChild()

setCreateChild

public void setCreateChild(boolean value)
Sets the value of the 'Create Child' attribute.

Parameters:
value - the new value of the 'Create Child' attribute.
See Also:
isSetCreateChild(), unsetCreateChild(), isCreateChild()

unsetCreateChild

public void unsetCreateChild()
Unsets the value of the 'Create Child' attribute.

See Also:
isSetCreateChild(), isCreateChild(), setCreateChild(boolean)

isSetCreateChild

public boolean isSetCreateChild()
Returns whether the value of the 'Create Child' attribute is set.

This always returns true. If the feature is unset, it will first be set based on the value of children. This ensures that pre-2.0 models will upgrade themselves, and continue to behave as before

Returns:
whether the value of the 'Create Child' attribute is set.
See Also:
unsetCreateChild(), isCreateChild(), setCreateChild(boolean)

getGenClass

public GenClass getGenClass()
Returns the value of the 'Gen Class' container reference. It is bidirectional and its opposite is 'Gen Features'.

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

Returns:
the value of the 'Gen Class' container reference.
See Also:
setGenClass(GenClass), GenModelPackage.getGenFeature_GenClass(), GenClass.getGenFeatures()

setGenClass

public void setGenClass(GenClass value)
Sets the value of the 'Gen Class' container reference.

Parameters:
value - the new value of the 'Gen Class' container reference.
See Also:
getGenClass()

getEcoreFeature

public EStructuralFeature getEcoreFeature()
Returns the value of the 'Ecore Feature' reference.

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

Returns:
the value of the 'Ecore Feature' reference.
See Also:
setEcoreFeature(EStructuralFeature), GenModelPackage.getGenFeature_EcoreFeature()

setEcoreFeature

public void setEcoreFeature(EStructuralFeature value)
Sets the value of the 'Ecore Feature' reference.

Parameters:
value - the new value of the 'Ecore Feature' reference.
See Also:
getEcoreFeature()

getName

public String getName()

getSafeName

public String getSafeName()

getSafeNameAsEObject

public String getSafeNameAsEObject()

getCapName

public String getCapName()

getUncapName

public String getUncapName()

getUpperName

public String getUpperName()

getFormattedName

public String getFormattedName()

getIsName

public String getIsName()

getAccessorName

public String getAccessorName()

getGetAccessor

public String getGetAccessor()

getGenPackage

public GenPackage getGenPackage()

getFeatureAccessorName

public String getFeatureAccessorName()

getQualifiedFeatureAccessorName

public String getQualifiedFeatureAccessorName()

getMetaType

public String getMetaType()

getImportedMetaType

public String getImportedMetaType()

getFeatureKind

public String getFeatureKind()

isReferenceType

public boolean isReferenceType()

getEObjectCast

public String getEObjectCast()

getInternalTypeCast

public String getInternalTypeCast()

isEffectiveSuppressEMFTypes

public boolean isEffectiveSuppressEMFTypes()

getTypeClassifier

public String getTypeClassifier()

getTypeGenPackage

public GenPackage getTypeGenPackage()

getType

public String getType()

getImportedType

public String getImportedType()

getObjectType

public String getObjectType()

getImportedInternalType

public String getImportedInternalType()

getQualifiedListItemType

public String getQualifiedListItemType()

getListItemType

public String getListItemType()

getMapGenClass

public GenClass getMapGenClass()

getMapItemType

public String getMapItemType()

getImportedEffectiveFeatureMapWrapperClass

public String getImportedEffectiveFeatureMapWrapperClass()

getImportedEffectiveFeatureMapWrapperInternalInterface

public String getImportedEffectiveFeatureMapWrapperInternalInterface()

isSetDefaultValue

public boolean isSetDefaultValue()

getDefaultValue

public String getDefaultValue()

getStaticDefaultValue

public String getStaticDefaultValue()

isEnumType

public boolean isEnumType()

getGenEnumType

public GenEnum getGenEnumType()

getGenDataTypeType

public GenDataType getGenDataTypeType()

isBooleanType

public boolean isBooleanType()

isStringType

public boolean isStringType()

isListType

public boolean isListType()

isMapType

public boolean isMapType()

isFeatureMapType

public boolean isFeatureMapType()

isFeatureMapWrapped

public boolean isFeatureMapWrapped()

isContainer

public boolean isContainer()

isContains

public boolean isContains()

isBidirectional

public boolean isBidirectional()

getReverse

public GenFeature getReverse()

isPrimitiveType

public boolean isPrimitiveType()

getPrimitiveValueFunction

public String getPrimitiveValueFunction()

getLowerBound

public String getLowerBound()

getUpperBound

public String getUpperBound()

getContainerClass

public String getContainerClass()

getOrderedFlag

public String getOrderedFlag()

getDerivedFlag

public String getDerivedFlag()

getTransientFlag

public String getTransientFlag()

getVolatileFlag

public String getVolatileFlag()

getChangeableFlag

public String getChangeableFlag()

getUnsettableFlag

public String getUnsettableFlag()

getUniqueFlag

public String getUniqueFlag()

getIDFlag

public String getIDFlag()

getContainmentFlag

public String getContainmentFlag()

getResolveProxiesFlag

public String getResolveProxiesFlag()

isVolatile

public boolean isVolatile()

isChangeable

public boolean isChangeable()

isUnsettable

public boolean isUnsettable()

isID

public boolean isID()

isUnique

public boolean isUnique()

isResolveProxies

public boolean isResolveProxies()

hasDelegateFeature

public boolean hasDelegateFeature()

getDelegateFeature

public GenFeature getDelegateFeature()

initialize

public void initialize(EStructuralFeature eFeature)

getPropertyImageName

public String getPropertyImageName()

getModelInfo

public String getModelInfo()

getQualifiedModelInfo

public String getQualifiedModelInfo()

isProperty

public boolean isProperty()

reconcile

public boolean reconcile(GenFeature oldGenFeatureVersion)

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