org.eclipse.emf.codegen.ecore.genmodel.impl
Class GenFeatureImpl
java.lang.Object
|
+--org.eclipse.emf.common.notify.impl.NotifierImpl
|
+--org.eclipse.emf.ecore.impl.EObjectImpl
|
+--org.eclipse.emf.codegen.ecore.genmodel.impl.GenBaseImpl
|
+--org.eclipse.emf.codegen.ecore.genmodel.impl.GenFeatureImpl
- All Implemented Interfaces:
- EObject, GenBase, GenFeature, InternalEObject, Notifier
- public class GenFeatureImpl
- extends GenBaseImpl
- implements GenFeature
An implementation of the model object 'Gen Feature'.
The following features are implemented:
Method Summary |
protected void |
appendModelSetting(java.lang.StringBuffer result,
boolean qualified,
java.lang.String name,
java.lang.String value)
|
EStructuralFeature |
basicGetEcoreFeature()
|
NotificationChain |
eBasicRemoveFromContainer(NotificationChain msgs)
|
java.lang.Object |
eGet(EStructuralFeature eFeature,
boolean resolve)
|
NotificationChain |
eInverseAdd(InternalEObject otherEnd,
int featureID,
java.lang.Class baseClass,
NotificationChain msgs)
|
NotificationChain |
eInverseRemove(InternalEObject otherEnd,
int featureID,
java.lang.Class baseClass,
NotificationChain msgs)
|
boolean |
eIsSet(EStructuralFeature eFeature)
|
void |
eSet(EStructuralFeature eFeature,
java.lang.Object newValue)
|
protected EClass |
eStaticClass()
|
void |
eUnset(EStructuralFeature eFeature)
|
java.lang.String |
getAccessorName()
|
java.lang.String |
getCapName()
|
java.lang.String |
getChangeableFlag()
|
java.lang.String |
getContainmentFlag()
|
java.lang.String |
getDefaultValue()
|
EStructuralFeature |
getEcoreFeature()
|
java.lang.String |
getFeatureAccessorName()
|
java.lang.String |
getFeatureKind()
|
java.lang.String |
getFormattedName()
|
GenClass |
getGenClass()
|
GenDataType |
getGenDataTypeType()
|
GenEnum |
getGenEnumType()
|
GenPackage |
getGenPackage()
|
java.lang.String |
getGetAccessor()
|
java.lang.String |
getIDFlag()
|
java.lang.String |
getImportedMetaType()
|
java.lang.String |
getImportedType()
|
java.lang.String |
getIsName()
|
java.lang.String |
getListItemType()
|
java.lang.String |
getLowerBound()
|
GenClass |
getMapGenClass()
|
java.lang.String |
getMapItemType()
|
java.lang.String |
getMetaType()
|
java.lang.String |
getModelInfo()
|
java.lang.String |
getModelInfo(boolean qualified)
|
java.lang.String |
getName()
|
java.lang.String |
getObjectType()
|
java.lang.String |
getPrimitiveValueFunction()
|
GenPropertyKind |
getProperty()
|
java.lang.String |
getPropertyImageName()
|
java.lang.String |
getQualifiedListItemType()
|
java.lang.String |
getQualifiedModelInfo()
|
java.lang.String |
getResolveProxiesFlag()
|
GenFeature |
getReverse()
|
java.lang.String |
getSafeName()
|
java.lang.String |
getStaticDefaultValue()
|
java.lang.String |
getTransientFlag()
|
java.lang.String |
getType()
|
java.lang.String |
getTypeClassifier()
|
GenPackage |
getTypeGenPackage()
|
java.lang.String |
getUncapName()
|
java.lang.String |
getUnsettableFlag()
|
java.lang.String |
getUpperBound()
|
java.lang.String |
getUpperName()
|
java.lang.String |
getVolatileFlag()
|
void |
initialize(EStructuralFeature eFeature)
|
boolean |
isBidirectional()
|
boolean |
isBooleanType()
|
boolean |
isChangeable()
|
boolean |
isChildren()
|
boolean |
isContainer()
|
boolean |
isContains()
|
boolean |
isEnumType()
|
boolean |
isID()
|
boolean |
isListType()
|
protected boolean |
isMapEntryFeature()
|
boolean |
isMapType()
|
boolean |
isNotify()
|
boolean |
isPrimitiveType()
|
boolean |
isProperty()
|
boolean |
isReferenceType()
|
boolean |
isResolveProxies()
|
boolean |
isSetDefaultValue()
|
boolean |
isStringType()
|
boolean |
isUnique()
|
boolean |
isUnsettable()
|
boolean |
isVolatile()
|
boolean |
reconcile()
|
boolean |
reconcile(GenFeature oldGenFeatureVersion)
|
protected void |
reconcileSettings(GenFeature oldGenFeatureVersion)
|
void |
setChildren(boolean newChildren)
|
void |
setEcoreFeature(EStructuralFeature newEcoreFeature)
|
void |
setGenClass(GenClass newGenClass)
|
void |
setNotify(boolean newNotify)
|
void |
setProperty(GenPropertyKind newProperty)
|
java.lang.String |
toString()
|
Methods inherited from class org.eclipse.emf.codegen.ecore.genmodel.impl.GenBaseImpl |
appendModelSetting, appendModelSetting, canGenerate, canGenerateEdit, canGenerateEditor, capName, collectGenClasses, collectGenFeatures, collectGenOperations, eObjectForURIFragmentSegment, ePackageGenModel, eURIFragmentSegment, filterGenClasses, findGenClass, findGenClassifier, findGenDataType, findGenEnum, findGenFeature, findGenPackage, findGenPackageHelper, findOrCreateContainer, format, generate, generate, generate, generate, generate, generateEdit, generateEditor, getAllGenPackages, getGenModel, getImplClassName, getImportedType, getImportManager, getInstanceClass, getJavaLangTypes, getJavaReservedWords, getPrimitiveDefault, getPrimitiveObjectType, getType, getTypeGenClasses, hasModelContribution, isJavaUtilMapEntry, isPrimitiveType, parseName, safeName, setImportManager, uncapName, uncapPrefixedName |
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl |
eAllContents, eBaseStructuralFeatureID, eBasicSetContainer, eClass, eContainer, eContainerFeatureID, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicIsSet, eDynamicSet, eDynamicUnset, eGet, eInternalResource, eIsProxy, eProperties, eProxyURI, eResource, eSetClass, eSetProxyURI, eSetResource, eSetting, eSettingIndex, eSettings |
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.GenBase |
canGenerate, canGenerateEdit, canGenerateEditor, capName, ePackageGenModel, format, generate, generateEdit, generateEditor, getGenModel, safeName, uncapName, uncapPrefixedName |
PROPERTY_EDEFAULT
protected static final GenPropertyKind PROPERTY_EDEFAULT
- The default value of the '
Property
' attribute.
- See Also:
getProperty()
property
protected GenPropertyKind property
- The cached value of the '
Property
' attribute.
- See Also:
getProperty()
NOTIFY_EDEFAULT
protected static final boolean NOTIFY_EDEFAULT
- The default value of the '
Notify
' attribute.
- See Also:
isNotify()
notify
protected boolean notify
- The cached value of the '
Notify
' attribute.
- See Also:
isNotify()
CHILDREN_EDEFAULT
protected static final boolean CHILDREN_EDEFAULT
- The default value of the '
Children
' attribute.
- See Also:
isChildren()
children
protected boolean children
- The cached value of the '
Children
' attribute.
- See Also:
isChildren()
ecoreFeature
protected EStructuralFeature ecoreFeature
- The cached value of the '
Ecore Feature
' reference.
- See Also:
getEcoreFeature()
GenFeatureImpl
protected GenFeatureImpl()
-
eStaticClass
protected EClass eStaticClass()
-
- Overrides:
eStaticClass
in class GenBaseImpl
getProperty
public GenPropertyKind getProperty()
-
- Specified by:
getProperty
in interface GenFeature
- Following copied from interface:
org.eclipse.emf.codegen.ecore.genmodel.GenFeature
- Returns:
- the value of the 'Property' attribute.
- See Also:
GenPropertyKind
,
GenFeature.setProperty(GenPropertyKind)
,
GenModelPackage.getGenFeature_Property()
isProperty
public boolean isProperty()
- Specified by:
isProperty
in interface GenFeature
setProperty
public void setProperty(GenPropertyKind newProperty)
-
- Specified by:
setProperty
in interface GenFeature
- Following copied from interface:
org.eclipse.emf.codegen.ecore.genmodel.GenFeature
- Parameters:
value
- the new value of the 'Property' attribute.- See Also:
GenPropertyKind
,
GenFeature.getProperty()
isNotify
public boolean isNotify()
-
- Specified by:
isNotify
in interface GenFeature
- Following copied from interface:
org.eclipse.emf.codegen.ecore.genmodel.GenFeature
- Returns:
- the value of the 'Notify' attribute.
- See Also:
GenFeature.setNotify(boolean)
,
GenModelPackage.getGenFeature_Notify()
setNotify
public void setNotify(boolean newNotify)
-
- Specified by:
setNotify
in interface GenFeature
- Following copied from interface:
org.eclipse.emf.codegen.ecore.genmodel.GenFeature
- Parameters:
value
- the new value of the 'Notify' attribute.- See Also:
GenFeature.isNotify()
isChildren
public boolean isChildren()
-
- Specified by:
isChildren
in interface GenFeature
- Following copied from interface:
org.eclipse.emf.codegen.ecore.genmodel.GenFeature
- Returns:
- the value of the 'Children' attribute.
- See Also:
GenFeature.setChildren(boolean)
,
GenModelPackage.getGenFeature_Children()
setChildren
public void setChildren(boolean newChildren)
-
- Specified by:
setChildren
in interface GenFeature
- Following copied from interface:
org.eclipse.emf.codegen.ecore.genmodel.GenFeature
- Parameters:
value
- the new value of the 'Children' attribute.- See Also:
GenFeature.isChildren()
getGenClass
public GenClass getGenClass()
-
- Specified by:
getGenClass
in interface GenFeature
- Following copied from interface:
org.eclipse.emf.codegen.ecore.genmodel.GenFeature
- Returns:
- the value of the 'Gen Class' container reference.
- See Also:
GenFeature.setGenClass(GenClass)
,
GenModelPackage.getGenFeature_GenClass()
,
GenClass.getGenFeatures()
setGenClass
public void setGenClass(GenClass newGenClass)
-
- Specified by:
setGenClass
in interface GenFeature
- Following copied from interface:
org.eclipse.emf.codegen.ecore.genmodel.GenFeature
- Parameters:
value
- the new value of the 'Gen Class' container reference.- See Also:
GenFeature.getGenClass()
getEcoreFeature
public EStructuralFeature getEcoreFeature()
-
- Specified by:
getEcoreFeature
in interface GenFeature
- Following copied from interface:
org.eclipse.emf.codegen.ecore.genmodel.GenFeature
- Returns:
- the value of the 'Ecore Feature' reference.
- See Also:
GenFeature.setEcoreFeature(EStructuralFeature)
,
GenModelPackage.getGenFeature_EcoreFeature()
basicGetEcoreFeature
public EStructuralFeature basicGetEcoreFeature()
-
setEcoreFeature
public void setEcoreFeature(EStructuralFeature newEcoreFeature)
-
- Specified by:
setEcoreFeature
in interface GenFeature
- Following copied from interface:
org.eclipse.emf.codegen.ecore.genmodel.GenFeature
- Parameters:
value
- the new value of the 'Ecore Feature' reference.- See Also:
GenFeature.getEcoreFeature()
eInverseAdd
public NotificationChain eInverseAdd(InternalEObject otherEnd,
int featureID,
java.lang.Class baseClass,
NotificationChain msgs)
-
- Overrides:
eInverseAdd
in class EObjectImpl
- Following copied from interface:
org.eclipse.emf.ecore.InternalEObject
- Returns:
- accumulated notifications.
eInverseRemove
public NotificationChain eInverseRemove(InternalEObject otherEnd,
int featureID,
java.lang.Class baseClass,
NotificationChain msgs)
-
- Overrides:
eInverseRemove
in class EObjectImpl
- Following copied from interface:
org.eclipse.emf.ecore.InternalEObject
- Returns:
- accumulated notifications.
eBasicRemoveFromContainer
public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs)
-
- Overrides:
eBasicRemoveFromContainer
in class EObjectImpl
- Following copied from interface:
org.eclipse.emf.ecore.InternalEObject
- Returns:
- accumulated notifications.
eGet
public java.lang.Object eGet(EStructuralFeature eFeature,
boolean resolve)
-
- Specified by:
eGet
in interface EObject
- Overrides:
eGet
in class EObjectImpl
- Following copied from interface:
org.eclipse.emf.ecore.EObject
- Parameters:
feature
- the feature of the value to fetch.resolve
- whether to resolve.- Returns:
- the value of the given feature of the object.
- Throws:
java.lang.IllegalArgumentException
- if the feature is not one the meta class
's
features
.- See Also:
InternalEList.basicIterator()
,
InternalEList.basicList()
,
EcoreUtil.resolve(EObject, ResourceSet)
,
EObject.eSet(EStructuralFeature, Object)
,
EObject.eUnset(EStructuralFeature)
,
EObject.eIsSet(EStructuralFeature)
,
EObject.eGet(EStructuralFeature)
eIsSet
public boolean eIsSet(EStructuralFeature eFeature)
-
- Specified by:
eIsSet
in interface EObject
- Overrides:
eIsSet
in class EObjectImpl
- Following copied from interface:
org.eclipse.emf.ecore.EObject
- Parameters:
feature
- the feature in question.- Returns:
- whether the feature of the object is set.
- Throws:
java.lang.IllegalArgumentException
- if the feature is not one the meta class
's
features
.- See Also:
EObject.eSet(EStructuralFeature, Object)
,
EObject.eUnset(EStructuralFeature)
,
EObject.eGet(EStructuralFeature, boolean)
eSet
public void eSet(EStructuralFeature eFeature,
java.lang.Object newValue)
-
- Specified by:
eSet
in interface EObject
- Overrides:
eSet
in class EObjectImpl
- Following copied from interface:
org.eclipse.emf.ecore.EObject
- Parameters:
feature
- the feature of the value to set.- Throws:
java.lang.IllegalArgumentException
- if the feature is not one the meta class
's
features
,
or it isn't changeable
.ClassCastException
- if there is a type conflict.ArrayStoreException
- if there is a type conflect.- See Also:
EObject.eUnset(EStructuralFeature)
,
EObject.eIsSet(EStructuralFeature)
,
EObject.eGet(EStructuralFeature, boolean)
eUnset
public void eUnset(EStructuralFeature eFeature)
-
- Specified by:
eUnset
in interface EObject
- Overrides:
eUnset
in class EObjectImpl
- Following copied from interface:
org.eclipse.emf.ecore.EObject
- Parameters:
feature
- the feature in question.- Throws:
java.lang.IllegalArgumentException
- if the feature is not one the meta class
's
features
,
or it isn't changeable
.- See Also:
EObject.eIsSet(EStructuralFeature)
,
EObject.eSet(EStructuralFeature, Object)
,
EObject.eGet(EStructuralFeature, boolean)
toString
public java.lang.String toString()
-
- Overrides:
toString
in class EObjectImpl
getName
public java.lang.String getName()
- Specified by:
getName
in interface GenFeature
- Overrides:
getName
in class GenBaseImpl
getCapName
public java.lang.String getCapName()
- Specified by:
getCapName
in interface GenFeature
getAccessorName
public java.lang.String getAccessorName()
- Specified by:
getAccessorName
in interface GenFeature
getGetAccessor
public java.lang.String getGetAccessor()
- Specified by:
getGetAccessor
in interface GenFeature
getSafeName
public java.lang.String getSafeName()
- Specified by:
getSafeName
in interface GenFeature
getFormattedName
public java.lang.String getFormattedName()
- Specified by:
getFormattedName
in interface GenFeature
getUpperName
public java.lang.String getUpperName()
- Specified by:
getUpperName
in interface GenFeature
getUncapName
public java.lang.String getUncapName()
- Specified by:
getUncapName
in interface GenFeature
getIsName
public java.lang.String getIsName()
- Specified by:
getIsName
in interface GenFeature
getGenPackage
public GenPackage getGenPackage()
- Specified by:
getGenPackage
in interface GenFeature
getFeatureAccessorName
public java.lang.String getFeatureAccessorName()
- Specified by:
getFeatureAccessorName
in interface GenFeature
getMetaType
public java.lang.String getMetaType()
- Specified by:
getMetaType
in interface GenFeature
getImportedMetaType
public java.lang.String getImportedMetaType()
- Specified by:
getImportedMetaType
in interface GenFeature
getFeatureKind
public java.lang.String getFeatureKind()
- Specified by:
getFeatureKind
in interface GenFeature
isReferenceType
public boolean isReferenceType()
- Specified by:
isReferenceType
in interface GenFeature
getTypeClassifier
public java.lang.String getTypeClassifier()
- Specified by:
getTypeClassifier
in interface GenFeature
getTypeGenPackage
public GenPackage getTypeGenPackage()
- Specified by:
getTypeGenPackage
in interface GenFeature
getType
public java.lang.String getType()
- Specified by:
getType
in interface GenFeature
getImportedType
public java.lang.String getImportedType()
- Specified by:
getImportedType
in interface GenFeature
getObjectType
public java.lang.String getObjectType()
- Specified by:
getObjectType
in interface GenFeature
getQualifiedListItemType
public java.lang.String getQualifiedListItemType()
- Specified by:
getQualifiedListItemType
in interface GenFeature
getListItemType
public java.lang.String getListItemType()
- Specified by:
getListItemType
in interface GenFeature
getMapGenClass
public GenClass getMapGenClass()
- Specified by:
getMapGenClass
in interface GenFeature
getMapItemType
public java.lang.String getMapItemType()
- Specified by:
getMapItemType
in interface GenFeature
isSetDefaultValue
public boolean isSetDefaultValue()
- Specified by:
isSetDefaultValue
in interface GenFeature
getDefaultValue
public java.lang.String getDefaultValue()
- Specified by:
getDefaultValue
in interface GenFeature
getStaticDefaultValue
public java.lang.String getStaticDefaultValue()
- Specified by:
getStaticDefaultValue
in interface GenFeature
isEnumType
public boolean isEnumType()
- Specified by:
isEnumType
in interface GenFeature
getGenEnumType
public GenEnum getGenEnumType()
- Specified by:
getGenEnumType
in interface GenFeature
getGenDataTypeType
public GenDataType getGenDataTypeType()
- Specified by:
getGenDataTypeType
in interface GenFeature
isBooleanType
public boolean isBooleanType()
- Specified by:
isBooleanType
in interface GenFeature
isStringType
public boolean isStringType()
- Specified by:
isStringType
in interface GenFeature
isListType
public boolean isListType()
- Specified by:
isListType
in interface GenFeature
isMapType
public boolean isMapType()
- Specified by:
isMapType
in interface GenFeature
isMapEntryFeature
protected boolean isMapEntryFeature()
isContainer
public boolean isContainer()
- Specified by:
isContainer
in interface GenFeature
isContains
public boolean isContains()
- Specified by:
isContains
in interface GenFeature
isBidirectional
public boolean isBidirectional()
- Specified by:
isBidirectional
in interface GenFeature
getReverse
public GenFeature getReverse()
- Specified by:
getReverse
in interface GenFeature
isPrimitiveType
public boolean isPrimitiveType()
- Specified by:
isPrimitiveType
in interface GenFeature
getPrimitiveValueFunction
public java.lang.String getPrimitiveValueFunction()
- Specified by:
getPrimitiveValueFunction
in interface GenFeature
getLowerBound
public java.lang.String getLowerBound()
- Specified by:
getLowerBound
in interface GenFeature
getUpperBound
public java.lang.String getUpperBound()
- Specified by:
getUpperBound
in interface GenFeature
getTransientFlag
public java.lang.String getTransientFlag()
- Specified by:
getTransientFlag
in interface GenFeature
getVolatileFlag
public java.lang.String getVolatileFlag()
- Specified by:
getVolatileFlag
in interface GenFeature
getChangeableFlag
public java.lang.String getChangeableFlag()
- Specified by:
getChangeableFlag
in interface GenFeature
getUnsettableFlag
public java.lang.String getUnsettableFlag()
- Specified by:
getUnsettableFlag
in interface GenFeature
getIDFlag
public java.lang.String getIDFlag()
- Specified by:
getIDFlag
in interface GenFeature
getContainmentFlag
public java.lang.String getContainmentFlag()
- Specified by:
getContainmentFlag
in interface GenFeature
getResolveProxiesFlag
public java.lang.String getResolveProxiesFlag()
- Specified by:
getResolveProxiesFlag
in interface GenFeature
isResolveProxies
public boolean isResolveProxies()
- Specified by:
isResolveProxies
in interface GenFeature
isVolatile
public boolean isVolatile()
- Specified by:
isVolatile
in interface GenFeature
isChangeable
public boolean isChangeable()
- Specified by:
isChangeable
in interface GenFeature
isUnsettable
public boolean isUnsettable()
- Specified by:
isUnsettable
in interface GenFeature
isID
public boolean isID()
- Specified by:
isID
in interface GenFeature
isUnique
public boolean isUnique()
- Specified by:
isUnique
in interface GenFeature
initialize
public void initialize(EStructuralFeature eFeature)
- Specified by:
initialize
in interface GenFeature
getModelInfo
public java.lang.String getModelInfo()
- Specified by:
getModelInfo
in interface GenFeature
- Overrides:
getModelInfo
in class GenBaseImpl
getQualifiedModelInfo
public java.lang.String getQualifiedModelInfo()
- Specified by:
getQualifiedModelInfo
in interface GenFeature
getModelInfo
public java.lang.String getModelInfo(boolean qualified)
appendModelSetting
protected void appendModelSetting(java.lang.StringBuffer result,
boolean qualified,
java.lang.String name,
java.lang.String value)
getPropertyImageName
public java.lang.String getPropertyImageName()
- Specified by:
getPropertyImageName
in interface GenFeature
reconcile
public boolean reconcile(GenFeature oldGenFeatureVersion)
- Specified by:
reconcile
in interface GenFeature
reconcileSettings
protected void reconcileSettings(GenFeature oldGenFeatureVersion)
reconcile
public boolean reconcile()
- Specified by:
reconcile
in interface GenBase