org.eclipse.emf.ecore.impl
Class EStructuralFeatureImpl
java.lang.Object
|
+--org.eclipse.emf.common.notify.impl.NotifierImpl
|
+--org.eclipse.emf.ecore.impl.EObjectImpl
|
+--org.eclipse.emf.ecore.impl.EModelElementImpl
|
+--org.eclipse.emf.ecore.impl.ENamedElementImpl
|
+--org.eclipse.emf.ecore.impl.ETypedElementImpl
|
+--org.eclipse.emf.ecore.impl.EStructuralFeatureImpl
- All Implemented Interfaces:
- EModelElement, ENamedElement, EObject, EStructuralFeature, EStructuralFeature.Internal, ETypedElement, InternalEObject, Notifier
- Direct Known Subclasses:
- EAttributeImpl, EReferenceImpl
- public abstract class EStructuralFeatureImpl
- extends ETypedElementImpl
- implements EStructuralFeature, EStructuralFeature.Internal
An implementation of the model object 'EStructural Feature'.
| Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl |
eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicSetContainer, eBasicSetContainer, eClass, eContainer, eContainerFeatureID, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicFeatureID, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicIsSet, eDynamicSet, eDynamicUnset, eGet, eHasSettings, eInternalContainer, eInternalResource, eIsProxy, eProperties, eProxyURI, eResource, eSetClass, eSetProxyURI, eSetResource, eSetting, eSettingDelegate, eSettings, eStaticFeatureCount |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.emf.ecore.InternalEObject |
eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicSetContainer, eContainerFeatureID, eDerivedStructuralFeatureID, eInternalResource, eNotificationRequired, eObjectForURIFragmentSegment, eProxyURI, eSetClass, eSetProxyURI, eSetResource, eSetting, eURIFragmentSegment |
featureID
protected int featureID
containerClass
protected java.lang.Class containerClass
defaultValue
protected java.lang.Object defaultValue
defaultValueFactory
protected EFactory defaultValueFactory
CHANGEABLE_EDEFAULT
protected static final boolean CHANGEABLE_EDEFAULT
- The default value of the '
Changeable' attribute.
- See Also:
isChangeable()
changeable
protected boolean changeable
- The cached value of the '
Changeable' attribute.
- See Also:
isChangeable()
VOLATILE_EDEFAULT
protected static final boolean VOLATILE_EDEFAULT
- The default value of the '
Volatile' attribute.
- See Also:
isVolatile()
volatile_
protected boolean volatile_
- The cached value of the '
Volatile' attribute.
- See Also:
isVolatile()
TRANSIENT_EDEFAULT
protected static final boolean TRANSIENT_EDEFAULT
- The default value of the '
Transient' attribute.
- See Also:
isTransient()
transient_
protected boolean transient_
- The cached value of the '
Transient' attribute.
- See Also:
isTransient()
UNIQUE_EDEFAULT
protected static final boolean UNIQUE_EDEFAULT
- The default value of the '
Unique' attribute.
- See Also:
isUnique()
unique
protected boolean unique
- The cached value of the '
Unique' attribute.
- See Also:
isUnique()
DEFAULT_VALUE_LITERAL_EDEFAULT
protected static final java.lang.String DEFAULT_VALUE_LITERAL_EDEFAULT
- The default value of the '
Default Value Literal' attribute.
- See Also:
getDefaultValueLiteral()
defaultValueLiteral
protected java.lang.String defaultValueLiteral
- The cached value of the '
Default Value Literal' attribute.
- See Also:
getDefaultValueLiteral()
LOWER_BOUND_EDEFAULT
protected static final int LOWER_BOUND_EDEFAULT
- The default value of the '
Lower Bound' attribute.
- See Also:
getLowerBound()
lowerBound
protected int lowerBound
- The cached value of the '
Lower Bound' attribute.
- See Also:
getLowerBound()
UPPER_BOUND_EDEFAULT
protected static final int UPPER_BOUND_EDEFAULT
- The default value of the '
Upper Bound' attribute.
- See Also:
getUpperBound()
upperBound
protected int upperBound
- The cached value of the '
Upper Bound' attribute.
- See Also:
getUpperBound()
UNSETTABLE_EDEFAULT
protected static final boolean UNSETTABLE_EDEFAULT
- The default value of the '
Unsettable' attribute.
- See Also:
isUnsettable()
unsettable
protected boolean unsettable
- The cached value of the '
Unsettable' attribute.
- See Also:
isUnsettable()
settingDelegate
protected EStructuralFeature.Internal.SettingDelegate settingDelegate
EStructuralFeatureImpl
protected EStructuralFeatureImpl()
eStaticClass
protected EClass eStaticClass()
-
- Overrides:
eStaticClass in class ETypedElementImpl
getDefaultValue
public java.lang.Object getDefaultValue()
-
- Specified by:
getDefaultValue in interface EStructuralFeature
- Following copied from interface:
org.eclipse.emf.ecore.EStructuralFeature
- Returns:
- the value of the 'Default Value' attribute.
- See Also:
EcorePackage.getEStructuralFeature_DefaultValue()
setDefaultValue
public void setDefaultValue(java.lang.Object newDefaultValue)
- Description copied from interface:
EStructuralFeature
- A convenience method for setting the 'Default Value Literal' attribute.
If the feature has an eType that is an
EDataType, the specified value is converted to
a string using the factory's EFactory.convertToString(org.eclipse.emf.ecore.EDataType, java.lang.Object)
method, and the defaultValueLiteral is
set to the result.
- Specified by:
setDefaultValue in interface EStructuralFeature
- Following copied from interface:
org.eclipse.emf.ecore.EStructuralFeature
- See Also:
EStructuralFeature.setDefaultValueLiteral(java.lang.String)
setDefaultValueLiteral
public void setDefaultValueLiteral(java.lang.String newDefaultValueLiteral)
- Description copied from interface:
EStructuralFeature
- Sets the value of the '
Default Value Literal' attribute.
- Specified by:
setDefaultValueLiteral in interface EStructuralFeature
- Following copied from interface:
org.eclipse.emf.ecore.EStructuralFeature
- Parameters:
value - the new value of the 'Default Value Literal' attribute.- See Also:
EStructuralFeature.getDefaultValueLiteral()
setDefaultValueLiteralGen
public void setDefaultValueLiteralGen(java.lang.String newDefaultValueLiteral)
-
isMany
public boolean isMany()
- Description copied from interface:
EStructuralFeature
- Returns the value of the 'Many' attribute.
- Specified by:
isMany in interface EStructuralFeature
- Following copied from interface:
org.eclipse.emf.ecore.EStructuralFeature
- Returns:
- the value of the 'Many' attribute.
- See Also:
EcorePackage.getEStructuralFeature_Many()
isRequired
public boolean isRequired()
- Description copied from interface:
EStructuralFeature
- Returns the value of the 'Required' attribute.
- Specified by:
isRequired in interface EStructuralFeature
- Following copied from interface:
org.eclipse.emf.ecore.EStructuralFeature
- Returns:
- the value of the 'Required' attribute.
- See Also:
EcorePackage.getEStructuralFeature_Required()
isUnsettable
public boolean isUnsettable()
-
- Specified by:
isUnsettable in interface EStructuralFeature
- Following copied from interface:
org.eclipse.emf.ecore.EStructuralFeature
- Returns:
- the value of the 'Unsettable' attribute.
- See Also:
EStructuralFeature.setUnsettable(boolean),
EcorePackage.getEStructuralFeature_Unsettable()
setUnsettable
public void setUnsettable(boolean newUnsettable)
-
- Specified by:
setUnsettable in interface EStructuralFeature
- Following copied from interface:
org.eclipse.emf.ecore.EStructuralFeature
- Parameters:
value - the new value of the 'Unsettable' attribute.- See Also:
EStructuralFeature.isUnsettable()
eGet
public java.lang.Object eGet(EStructuralFeature eFeature,
boolean resolve)
-
- Specified by:
eGet in interface EObject- Overrides:
eGet in class ETypedElementImpl
- 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 ETypedElementImpl
- 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 ETypedElementImpl
- 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.java.lang.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 ETypedElementImpl
- 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)
isTransient
public boolean isTransient()
-
- Specified by:
isTransient in interface EStructuralFeature
- Following copied from interface:
org.eclipse.emf.ecore.EStructuralFeature
- Returns:
- the value of the 'Transient' attribute.
- See Also:
EStructuralFeature.setTransient(boolean),
EcorePackage.getEStructuralFeature_Transient()
setTransient
public void setTransient(boolean newTransient)
-
- Specified by:
setTransient in interface EStructuralFeature
- Following copied from interface:
org.eclipse.emf.ecore.EStructuralFeature
- Parameters:
value - the new value of the 'Transient' attribute.- See Also:
EStructuralFeature.isTransient()
isVolatile
public boolean isVolatile()
-
- Specified by:
isVolatile in interface EStructuralFeature
- Following copied from interface:
org.eclipse.emf.ecore.EStructuralFeature
- Returns:
- the value of the 'Volatile' attribute.
- See Also:
EStructuralFeature.setVolatile(boolean),
EcorePackage.getEStructuralFeature_Volatile()
setVolatile
public void setVolatile(boolean newVolatile)
-
- Specified by:
setVolatile in interface EStructuralFeature
- Following copied from interface:
org.eclipse.emf.ecore.EStructuralFeature
- Parameters:
value - the new value of the 'Volatile' attribute.- See Also:
EStructuralFeature.isVolatile()
isChangeable
public boolean isChangeable()
-
- Specified by:
isChangeable in interface EStructuralFeature
- Following copied from interface:
org.eclipse.emf.ecore.EStructuralFeature
- Returns:
- the value of the 'Changeable' attribute.
- See Also:
EStructuralFeature.setChangeable(boolean),
EcorePackage.getEStructuralFeature_Changeable()
setChangeable
public void setChangeable(boolean newChangeable)
-
- Specified by:
setChangeable in interface EStructuralFeature
- Following copied from interface:
org.eclipse.emf.ecore.EStructuralFeature
- Parameters:
value - the new value of the 'Changeable' attribute.- See Also:
EStructuralFeature.isChangeable()
isUnique
public boolean isUnique()
-
- Specified by:
isUnique in interface EStructuralFeature
- Following copied from interface:
org.eclipse.emf.ecore.EStructuralFeature
- Returns:
- the value of the 'Unique' attribute.
- See Also:
EStructuralFeature.setUnique(boolean),
EcorePackage.getEStructuralFeature_Unique()
setUnique
public void setUnique(boolean newUnique)
-
- Specified by:
setUnique in interface EStructuralFeature
- Following copied from interface:
org.eclipse.emf.ecore.EStructuralFeature
- Parameters:
value - the new value of the 'Unique' attribute.- See Also:
EStructuralFeature.isUnique()
getDefaultValueLiteral
public java.lang.String getDefaultValueLiteral()
-
- Specified by:
getDefaultValueLiteral in interface EStructuralFeature
- Following copied from interface:
org.eclipse.emf.ecore.EStructuralFeature
- Returns:
- the value of the 'Default Value Literal' attribute.
- See Also:
EStructuralFeature.setDefaultValueLiteral(String),
EcorePackage.getEStructuralFeature_DefaultValueLiteral()
getLowerBound
public int getLowerBound()
-
- Specified by:
getLowerBound in interface EStructuralFeature
- Following copied from interface:
org.eclipse.emf.ecore.EStructuralFeature
- Returns:
- the value of the 'Lower Bound' attribute.
- See Also:
EStructuralFeature.setLowerBound(int),
EcorePackage.getEStructuralFeature_LowerBound()
setLowerBound
public void setLowerBound(int newLowerBound)
-
- Specified by:
setLowerBound in interface EStructuralFeature
- Following copied from interface:
org.eclipse.emf.ecore.EStructuralFeature
- Parameters:
value - the new value of the 'Lower Bound' attribute.- See Also:
EStructuralFeature.getLowerBound()
getUpperBound
public int getUpperBound()
-
- Specified by:
getUpperBound in interface EStructuralFeature
- Following copied from interface:
org.eclipse.emf.ecore.EStructuralFeature
- Returns:
- the value of the 'Upper Bound' attribute.
- See Also:
EStructuralFeature.setUpperBound(int),
EcorePackage.getEStructuralFeature_UpperBound()
setUpperBound
public void setUpperBound(int newUpperBound)
-
- Specified by:
setUpperBound in interface EStructuralFeature
- Following copied from interface:
org.eclipse.emf.ecore.EStructuralFeature
- Parameters:
value - the new value of the 'Upper Bound' attribute.- See Also:
EStructuralFeature.getUpperBound()
toString
public java.lang.String toString()
-
- Overrides:
toString in class ENamedElementImpl
getFeatureID
public int getFeatureID()
- Description copied from interface:
EStructuralFeature
-
Returns the ID relative to the
containing class.
- Specified by:
getFeatureID in interface EStructuralFeature
- Following copied from interface:
org.eclipse.emf.ecore.EStructuralFeature
- Returns:
- the relative ID.
setFeatureID
public void setFeatureID(int featureID)
getContainerClass
public java.lang.Class getContainerClass()
- Description copied from interface:
EStructuralFeature
-
Returns the
instance class of the containing class.
- Specified by:
getContainerClass in interface EStructuralFeature
- Following copied from interface:
org.eclipse.emf.ecore.EStructuralFeature
- Returns:
- the instance class of the containing class.
eInverseAdd
public NotificationChain eInverseAdd(InternalEObject otherEnd,
int featureID,
java.lang.Class baseClass,
NotificationChain msgs)
-
- Specified by:
eInverseAdd in interface InternalEObject- Overrides:
eInverseAdd in class ETypedElementImpl
- 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)
-
- Specified by:
eInverseRemove in interface InternalEObject- Overrides:
eInverseRemove in class ETypedElementImpl
- Following copied from interface:
org.eclipse.emf.ecore.InternalEObject
- Returns:
- accumulated notifications.
setContainerClass
public void setContainerClass(java.lang.Class containerClass)
getEContainingClass
public EClass getEContainingClass()
-
- Specified by:
getEContainingClass in interface EStructuralFeature
- Following copied from interface:
org.eclipse.emf.ecore.EStructuralFeature
- Returns:
- the value of the 'EContaining Class' reference.
- See Also:
EcorePackage.getEStructuralFeature_EContainingClass()
isResolveProxies
protected boolean isResolveProxies()
isContainer
protected boolean isContainer()
isContainment
protected boolean isContainment()
getEOpposite
protected EReference getEOpposite()
getSettingDelegate
public EStructuralFeature.Internal.SettingDelegate getSettingDelegate()
- Description copied from interface:
EStructuralFeature.Internal
- Returns the delegate for this feature.
A default delegate implementation should always be available,
so this should never return
null.
- Specified by:
getSettingDelegate in interface EStructuralFeature.Internal
- Following copied from interface:
org.eclipse.emf.ecore.EStructuralFeature.Internal
- Returns:
- the delegate for this feature.
setSettingDelegate
public void setSettingDelegate(EStructuralFeature.Internal.SettingDelegate settingDelegate)
- Description copied from interface:
EStructuralFeature.Internal
- Sets the specialized delegate for this feature.
- Specified by:
setSettingDelegate in interface EStructuralFeature.Internal
- Following copied from interface:
org.eclipse.emf.ecore.EStructuralFeature.Internal
- Parameters:
settingDelegate - the specialized delegate.