org.eclipse.emf.ecore.impl
Class EModelElementImpl
java.lang.Object
|
+--org.eclipse.emf.common.notify.impl.NotifierImpl
|
+--org.eclipse.emf.ecore.impl.EObjectImpl
|
+--org.eclipse.emf.ecore.impl.EModelElementImpl
- All Implemented Interfaces:
- EModelElement, EObject, InternalEObject, Notifier
- Direct Known Subclasses:
- EAnnotationImpl, EFactoryImpl, ENamedElementImpl
- public abstract class EModelElementImpl
- extends EObjectImpl
- implements EModelElement
An implementation of the model object 'EModel Element'.
The following features are implemented:
Method Summary |
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)
|
EObject |
eObjectForURIFragmentSegment(java.lang.String uriFragmentSegment)
Returns the object resolved by the fragment segment. |
void |
eSet(EStructuralFeature eFeature,
java.lang.Object newValue)
|
protected EClass |
eStaticClass()
|
void |
eUnset(EStructuralFeature eFeature)
|
java.lang.String |
eURIFragmentSegment(EStructuralFeature eStructuralFeature,
EObject eObject)
Returns the fragment segment that,
when passed to eObjectForURIFragmentSegment ,
will resolve to the given object in this object's given feature. |
EAnnotation |
getEAnnotation(java.lang.String source)
|
EList |
getEAnnotations()
|
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl |
eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, 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, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
eAnnotations
protected EList eAnnotations
- The cached value of the '
EAnnotations
' containment reference list.
- See Also:
getEAnnotations()
EModelElementImpl
protected EModelElementImpl()
eStaticClass
protected EClass eStaticClass()
-
- Overrides:
eStaticClass
in class EObjectImpl
getEAnnotations
public EList getEAnnotations()
-
- Specified by:
getEAnnotations
in interface EModelElement
- Following copied from interface:
org.eclipse.emf.ecore.EModelElement
- Returns:
- the value of the 'EAnnotations' containment reference list.
- See Also:
EModelElement.getEAnnotation(String)
,
EcorePackage.getEModelElement_EAnnotations()
,
EAnnotation.getEModelElement()
getEAnnotation
public EAnnotation getEAnnotation(java.lang.String source)
-
- Specified by:
getEAnnotation
in interface EModelElement
- Following copied from interface:
org.eclipse.emf.ecore.EModelElement
- Returns:
- The annotation with a matching source attribute.
- See Also:
EModelElement.getEAnnotations()
,
EAnnotation.getSource()
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.
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)
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)
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)
eURIFragmentSegment
public java.lang.String eURIFragmentSegment(EStructuralFeature eStructuralFeature,
EObject eObject)
- Description copied from interface:
InternalEObject
- Returns the fragment segment that,
when passed to
eObjectForURIFragmentSegment
,
will resolve to the given object in this object's given feature.
The feature argument may be null
in which case it will be deduced, if possible.
The default result will be of the form:
"@<feature-name>[.<index>]"
The index is used only for many-valued
features;
it represents the position within the list.
- Overrides:
eURIFragmentSegment
in class EObjectImpl
- Following copied from interface:
org.eclipse.emf.ecore.InternalEObject
- Parameters:
eFeature
- the feature relating the given object to this object, or null
.eObject
- the object to be identified.- Returns:
- the fragment segment that resolves to the given object in this object's given feature.
eObjectForURIFragmentSegment
public EObject eObjectForURIFragmentSegment(java.lang.String uriFragmentSegment)
- Description copied from interface:
InternalEObject
- Returns the object resolved by the fragment segment.
The fragment segment encoding will typically be of the form returned by eURIFragmentSegment
.
- Overrides:
eObjectForURIFragmentSegment
in class EObjectImpl
- Following copied from interface:
org.eclipse.emf.ecore.InternalEObject
- Parameters:
uriFragment
- a fragment segment.- Returns:
- the fragment segment that resolves to the given object in this object's given feature.