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

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

public interface GenFeature
extends GenTypedElement

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 getCreateChildValueLiteral()
           
 String getDefaultValue()
           
 List getDelegatedFeatures()
           
 GenFeature getDelegateFeature()
           
 String getDerivedFlag()
           
 EStructuralFeature getEcoreFeature()
          Returns the value of the 'Ecore Feature' reference
 String getFeatureAccessorName()
           
 String getFeatureKind()
           
 String getFormattedName()
           
 GenClass getGenClass()
          Returns the value of the 'Gen Class' container reference.
 GenPackage getGenPackage()
           
 String getGetAccessor()
           
 String getGetArrayAccessor()
           
 String getIDFlag()
           
 String getImportedMetaType()
           
 String getIsName()
           
 String getMetaType()
           
 String getModelInfo()
           
 String getName()
           
 GenPropertyKind getProperty()
          Returns the value of the 'Property' attribute.
 String getPropertyCategory()
          Returns the value of the 'Property Category' attribute
 String getPropertyDescription()
          Returns the value of the 'Property Description' attribute
 EList getPropertyFilterFlags()
          Returns the value of the 'Property Filter Flags' attribute list.
 String getPropertyImageName()
           
 String getQualifiedFeatureAccessor()
           
 String getQualifiedFeatureAccessorName()
           
 String getQualifiedModelInfo()
           
 String getResolveProxiesFlag()
           
 GenFeature getReverse()
           
 String getSafeName()
           
 String getSafeNameAsEObject()
           
 String getStaticDefaultValue()
           
 String getTransientFlag()
           
 String getUncapName()
           
 String getUnsettableFlag()
           
 String getUpperName()
           
 String getVolatileFlag()
           
 boolean hasDelegateFeature()
           
 void initialize(EStructuralFeature eFeature)
           
 boolean isBasicGet()
           
 boolean isBasicSet()
           
 boolean isBasicUnset()
           
 boolean isBidirectional()
           
 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 isDerived()
           
 boolean isEffectiveContains()
           
 boolean isESetField()
           
 boolean isESetFlag()
           
 boolean isField()
           
 boolean isFlag()
           
 boolean isGet()
           
 boolean isID()
           
 boolean isIsSet()
           
 boolean isNotify()
          Returns the value of the 'Notify' attribute.
 boolean isProperty()
           
 boolean isPropertyMultiLine()
          Returns the value of the 'Property Multi Line' attribute
 boolean isPropertySortChoices()
          Returns the value of the 'Property Sort Choices' attribute
 boolean isReferenceType()
           
 boolean isResolveProxies()
           
 boolean isSet()
           
 boolean isSetCreateChild()
          Returns whether the value of the 'Create Child' attribute is set
 boolean isSetDefaultValue()
           
 boolean isSuppressedGetVisibility()
           
 boolean isSuppressedIsSetVisibility()
           
 boolean isSuppressedSetVisibility()
           
 boolean isSuppressedUnsetVisibility()
           
 boolean isUnset()
           
 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 setPropertyCategory(String value)
          Sets the value of the 'Property Category' attribute
 void setPropertyDescription(String value)
          Sets the value of the 'Property Description' attribute
 void setPropertyMultiLine(boolean value)
          Sets the value of the 'Property Multi Line' attribute
 void setPropertySortChoices(boolean value)
          Sets the value of the 'Property Sort Choices' attribute
 void unsetCreateChild()
          Unsets the value of the 'Create Child' attribute
 
Methods inherited from interface org.eclipse.emf.codegen.ecore.genmodel.GenTypedElement
getEcoreModelElement, getEObjectCast, getGenClassType, getGenDataTypeType, getGenEnumType, getImportedEffectiveFeatureMapWrapperClass, getImportedEffectiveFeatureMapWrapperInternalInterface, getImportedInternalType, getImportedMapEntryType, getImportedType, getInternalTypeCast, getListItemType, getLowerBound, getMapEntryTypeGenClass, getMapGenClass, getMapItemType, getNonEObjectInternalTypeCast, getObjectType, getOrderedFlag, getPrimitiveValueFunction, getQualifiedListItemType, getType, getTypeClassifier, getTypeClassifierAccessorName, getTypeGenClass, getTypeGenClassifier, getTypeGenDataType, getTypeGenEnum, getTypeGenPackage, getUniqueFlag, getUpperBound, isBooleanType, isEffectiveSuppressEMFTypes, isEnumBasedType, isEnumType, isFeatureMapType, isFeatureMapWrapped, isListType, isMapType, isPrimitiveType, isStringBasedType, isStringType, isUnique, isWrappedFeatureMapType
 
Methods inherited from interface org.eclipse.emf.codegen.ecore.genmodel.GenBase
canGenerate, canGenerateEdit, canGenerateEditor, canGenerateSchema, canGenerateTests, capName, format, gen, genEdit, genEditor, generate, generate, generateEdit, generateEdit, generateEditor, generateEditor, generateSchema, generateSchema, generateTests, generateTests, genSchema, genTests, getDocumentation, getGenAnnotation, getGenAnnotations, getGenModel, hasDocumentation, reconcile, safeName, uncapName, uncapPrefixedName
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset
 
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)

getPropertyCategory

public String getPropertyCategory()
Returns the value of the 'Property Category' attribute.

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

Returns:
the value of the 'Property Category' attribute.
See Also:
setPropertyCategory(String), GenModelPackage.getGenFeature_PropertyCategory()

setPropertyCategory

public void setPropertyCategory(String value)
Sets the value of the 'Property Category' attribute.

Parameters:
value - the new value of the 'Property Category' attribute.
See Also:
getPropertyCategory()

getPropertyFilterFlags

public EList getPropertyFilterFlags()
Returns the value of the 'Property Filter Flags' attribute list. The list contents are of type String.

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

Returns:
the value of the 'Property Filter Flags' attribute list.
See Also:
GenModelPackage.getGenFeature_PropertyFilterFlags()

getPropertyDescription

public String getPropertyDescription()
Returns the value of the 'Property Description' attribute.

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

Returns:
the value of the 'Property Description' attribute.
See Also:
setPropertyDescription(String), GenModelPackage.getGenFeature_PropertyDescription()

setPropertyDescription

public void setPropertyDescription(String value)
Sets the value of the 'Property Description' attribute.

Parameters:
value - the new value of the 'Property Description' attribute.
See Also:
getPropertyDescription()

isPropertyMultiLine

public boolean isPropertyMultiLine()
Returns the value of the 'Property Multi Line' attribute.

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

Returns:
the value of the 'Property Multi Line' attribute.
See Also:
setPropertyMultiLine(boolean), GenModelPackage.getGenFeature_PropertyMultiLine()

setPropertyMultiLine

public void setPropertyMultiLine(boolean value)
Sets the value of the 'Property Multi Line' attribute.

Parameters:
value - the new value of the 'Property Multi Line' attribute.
See Also:
isPropertyMultiLine()

isPropertySortChoices

public boolean isPropertySortChoices()
Returns the value of the 'Property Sort Choices' attribute.

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

Returns:
the value of the 'Property Sort Choices' attribute.
See Also:
setPropertySortChoices(boolean), GenModelPackage.getGenFeature_PropertySortChoices()

setPropertySortChoices

public void setPropertySortChoices(boolean value)
Sets the value of the 'Property Sort Choices' attribute.

Parameters:
value - the new value of the 'Property Sort Choices' attribute.
See Also:
isPropertySortChoices()

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

getGetArrayAccessor

public String getGetArrayAccessor()

getGetAccessor

public String getGetAccessor()

getGenPackage

public GenPackage getGenPackage()

getFeatureAccessorName

public String getFeatureAccessorName()

getQualifiedFeatureAccessorName

public String getQualifiedFeatureAccessorName()

getQualifiedFeatureAccessor

public String getQualifiedFeatureAccessor()

getMetaType

public String getMetaType()

getImportedMetaType

public String getImportedMetaType()

getFeatureKind

public String getFeatureKind()

isReferenceType

public boolean isReferenceType()

isFlag

public boolean isFlag()

isESetFlag

public boolean isESetFlag()

isSetDefaultValue

public boolean isSetDefaultValue()

getDefaultValue

public String getDefaultValue()

getStaticDefaultValue

public String getStaticDefaultValue()

isContainer

public boolean isContainer()

isContains

public boolean isContains()

isEffectiveContains

public boolean isEffectiveContains()

isBidirectional

public boolean isBidirectional()

getReverse

public GenFeature getReverse()

getContainerClass

public String getContainerClass()

getDerivedFlag

public String getDerivedFlag()

getTransientFlag

public String getTransientFlag()

getVolatileFlag

public String getVolatileFlag()

getChangeableFlag

public String getChangeableFlag()

getUnsettableFlag

public String getUnsettableFlag()

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

isDerived

public boolean isDerived()

isResolveProxies

public boolean isResolveProxies()

hasDelegateFeature

public boolean hasDelegateFeature()

getDelegateFeature

public GenFeature getDelegateFeature()

getDelegatedFeatures

public List getDelegatedFeatures()

getCreateChildValueLiteral

public String getCreateChildValueLiteral()

isSuppressedGetVisibility

public boolean isSuppressedGetVisibility()

isSuppressedSetVisibility

public boolean isSuppressedSetVisibility()

isSuppressedIsSetVisibility

public boolean isSuppressedIsSetVisibility()

isSuppressedUnsetVisibility

public boolean isSuppressedUnsetVisibility()

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)

isField

public boolean isField()

isESetField

public boolean isESetField()

isGet

public boolean isGet()

isBasicGet

public boolean isBasicGet()

isBasicSet

public boolean isBasicSet()

isSet

public boolean isSet()

isBasicUnset

public boolean isBasicUnset()

isUnset

public boolean isUnset()

isIsSet

public boolean isIsSet()

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