public interface InternalEObject extends EObject
EObject
s.Modifier and Type | Interface and Description |
---|---|
static interface |
InternalEObject.EStore
An external backing store to which an
object may delegate all access. |
Modifier and Type | Field and Description |
---|---|
static int |
EOPPOSITE_FEATURE_BASE
The base value for negative, i.e., opposite-end, eContainerFeatureID values.
|
Modifier and Type | Method and Description |
---|---|
int |
eBaseStructuralFeatureID(int derivedFeatureID,
java.lang.Class<?> baseClass)
Returns the feature ID relative to the base class, given a feature ID relative to this derived object's actual class.
|
NotificationChain |
eBasicRemoveFromContainer(NotificationChain notifications)
Removes this object from whatever container holds it,
and returns accumulated notifications.
|
NotificationChain |
eBasicSetContainer(InternalEObject newContainer,
int newContainerFeatureID,
NotificationChain notifications)
Sets the container to be new container and appropriate feature.
|
int |
eContainerFeatureID()
Returns the container feature ID.
|
int |
eDerivedOperationID(int baseOperationID,
java.lang.Class<?> baseClass)
Returns the operation ID relative to this derived object's actual class, given an operation ID relative to the given base class.
|
int |
eDerivedStructuralFeatureID(int baseFeatureID,
java.lang.Class<?> baseClass)
Returns the feature ID relative to this derived object's actual class, given a feature ID relative to the given base class.
|
Resource.Internal |
eDirectResource()
Returns the directly containing internal resource, or
null . |
java.lang.Object |
eGet(EStructuralFeature eFeature,
boolean resolve,
boolean coreType)
Returns the value of the given feature of the object;
the value is optionally
resolved before it is returned. |
java.lang.Object |
eGet(int featureID,
boolean resolve,
boolean coreType)
Does the equivalent of
eObject.eGet(eObject.eClass().getEStructuralFeature(featureID), resolve, coreType) . |
InternalEObject |
eInternalContainer()
Returns the internal container, or
null . |
Resource.Internal |
eInternalResource()
Returns the containing internal resource, or
null . |
NotificationChain |
eInverseAdd(InternalEObject otherEnd,
int featureID,
java.lang.Class<?> baseClass,
NotificationChain notifications)
Adds the object at the other end of a bidirectional reference to the appropriate feature
and returns accumulated notifications.
|
NotificationChain |
eInverseRemove(InternalEObject otherEnd,
int featureID,
java.lang.Class<?> baseClass,
NotificationChain notifications)
Removes the object at the other end of a bidirectional reference from the appropriate feature
and returns accumulated notifications.
|
java.lang.Object |
eInvoke(int operationID,
EList<?> arguments)
Does the equivalent of
eObject.eInvoke(eObject.eClass().getEOperation(featureID), arguments) . |
boolean |
eIsSet(int featureID)
Does the equivalent of
eObject.eIsSet(eObject.eClass().getEStructuralFeature(featureID)) . |
boolean |
eNotificationRequired()
Returns whether
eNotify needs to be called. |
EObject |
eObjectForURIFragmentSegment(java.lang.String uriFragmentSegment)
Returns the object resolved by the fragment segment.
|
URI |
eProxyURI()
Returns the proxy URI of this object.
|
EObject |
eResolveProxy(InternalEObject proxy)
Resolves the
proxy object relative to this object. |
void |
eSet(int featureID,
java.lang.Object newValue)
Does the equivalent of
eObject.eSet(eObject.eClass().getEStructuralFeature(featureID), newValue) . |
void |
eSetClass(EClass eClass)
Sets the meta class.
|
void |
eSetProxyURI(URI uri)
Set the proxy URI of this object.
|
NotificationChain |
eSetResource(Resource.Internal resource,
NotificationChain notifications)
Sets this object to be directly contained by the resource
and returns accumulated notifications.
|
void |
eSetStore(InternalEObject.EStore store)
Set the store associated with this object.
|
EStructuralFeature.Setting |
eSetting(EStructuralFeature feature)
Returns a setting that can be used to access this object's feature.
|
InternalEObject.EStore |
eStore()
Returns the store associated with this object.
|
void |
eUnset(int featureID)
Does the equivalent of
eObject.eUnset(eObject.eClass().getEStructuralFeature(featureID)) . |
java.lang.String |
eURIFragmentSegment(EStructuralFeature eFeature,
EObject eObject)
Returns the fragment segment that,
when passed to
eObjectForURIFragmentSegment ,
will resolve to the given object in this object's given feature. |
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
eAdapters, eDeliver, eNotify, eSetDeliver
static final int EOPPOSITE_FEATURE_BASE
boolean eNotificationRequired()
eNotify
needs to be called.
This may return true
even when eDeliver
is false
or when eAdapters
is empty.
true
if eNotify needs to be called.java.lang.String eURIFragmentSegment(EStructuralFeature eFeature, EObject eObject)
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.
Given given an eObject
present in the eFeature
of some other InternalEObject
x
, the following condition must hold:
x.eObjectForURIFragmentSegment(x.eURIFragmentSegment(eFeature, eObject)) == eObject
eFeature
- the feature relating the given object to this object, or null
.eObject
- the object to be identified.EObject eObjectForURIFragmentSegment(java.lang.String uriFragmentSegment)
The fragment segment encoding will typically be of the form returned by eURIFragmentSegment
.
uriFragmentSegment
- a fragment segment.void eSetClass(EClass eClass)
settings
.
an.eClass
- the dynamic meta class.eSetting(EStructuralFeature)
EStructuralFeature.Setting eSetting(EStructuralFeature feature)
feature
- the feature of the desired setting.int eBaseStructuralFeatureID(int derivedFeatureID, java.lang.Class<?> baseClass)
derivedFeatureID
- the ID in the actual derived classbaseClass
- the base class for which a relative ID is desired.int eContainerFeatureID()
EObject.eContainmentFeature()
,
EOPPOSITE_FEATURE_BASE
int eDerivedStructuralFeatureID(int baseFeatureID, java.lang.Class<?> baseClass)
baseFeatureID
- the ID relative to a base class.baseClass
- the base class to which the ID is relative.int eDerivedOperationID(int baseOperationID, java.lang.Class<?> baseClass)
baseOperationID
- the ID relative to a base class.baseClass
- the base class to which the ID is relative.NotificationChain eSetResource(Resource.Internal resource, NotificationChain notifications)
Resource.getContents()
.add(this)
.NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, java.lang.Class<?> baseClass, NotificationChain notifications)
NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, java.lang.Class<?> baseClass, NotificationChain notifications)
NotificationChain eBasicSetContainer(InternalEObject newContainer, int newContainerFeatureID, NotificationChain notifications)
NotificationChain eBasicRemoveFromContainer(NotificationChain notifications)
URI eProxyURI()
resolve
to the actual object.EcoreUtil.resolve(EObject, org.eclipse.emf.ecore.resource.ResourceSet)
,
Resource.unload()
void eSetProxyURI(URI uri)
resolve
to the actual object.uri
- the URI.EcoreUtil.resolve(EObject, org.eclipse.emf.ecore.resource.ResourceSet)
,
Resource.unload()
EObject eResolveProxy(InternalEObject proxy)
proxy
object relative to this object.EcoreUtil.resolve(EObject,EObject)
InternalEObject eInternalContainer()
null
.
It does not resolve a proxy.EObject.eContainer()
,
eDirectResource()
Resource.Internal eInternalResource()
null
.EObject.eResource()
Resource.Internal eDirectResource()
null
.EObject.eResource()
,
eInternalResource()
,
eInternalContainer()
InternalEObject.EStore eStore()
void eSetStore(InternalEObject.EStore store)
store
- the store to associate with this object.java.lang.UnsupportedOperationException
java.lang.Object eGet(EStructuralFeature eFeature, boolean resolve, boolean coreType)
resolved
before it is returned.
If the feature is many-valued
,
the result will be an EList
and each object in the list will be an instance of
the feature's type
;
the list's contents are not affected by resolve
argument.
Otherwise the result directly will be an instance of the feature's type;
if it is a proxy
,
it is resolved.
The core type specifies whether to return the core reflective value,
e.g., EMap
,
or the public API value,
e.g., Map
.
eFeature
- the feature of the value to fetch.resolve
- whether to resolve.coreType
- whether to return the core type value or the API type value.java.lang.IllegalArgumentException
- if the feature is not one the meta class
's
features
and is also not affiliated
with one of the meta class's features.
Note that for high-performance generated model implementation classes,
full checking whether the feature is among of the meta class's features
is performed only if assertions are enabled for the JVM.
As such,
the return value for an invalid feature,
in the absence of enabled assertions,
is undefined,
though typically it will be the value of the meta class's feature
with the same ID
as the given feature.
EObject.eGet(EStructuralFeature, boolean)
java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
eObject.eGet(eObject.eClass().getEStructuralFeature(featureID), resolve, coreType)
.void eSet(int featureID, java.lang.Object newValue)
eObject.eSet(eObject.eClass().getEStructuralFeature(featureID), newValue)
.void eUnset(int featureID)
eObject.eUnset(eObject.eClass().getEStructuralFeature(featureID))
.EObject.eUnset(EStructuralFeature)
boolean eIsSet(int featureID)
eObject.eIsSet(eObject.eClass().getEStructuralFeature(featureID))
.EObject.eIsSet(EStructuralFeature)
java.lang.Object eInvoke(int operationID, EList<?> arguments) throws java.lang.reflect.InvocationTargetException
eObject.eInvoke(eObject.eClass().getEOperation(featureID), arguments)
.java.lang.reflect.InvocationTargetException
EObject.eInvoke(EOperation, EList<?>)