|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface InternalEObject
An internal interface implemented by all EObject
s.
Nested Class Summary | |
---|---|
static interface |
InternalEObject.EStore
An external backing store to which an object may delegate all access. |
Field Summary | |
---|---|
static int |
EOPPOSITE_FEATURE_BASE
The base value for negative, i.e., opposite-end, eContainerFeatureID values. |
Method Summary | |
---|---|
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 |
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(eObjecte.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. |
boolean |
eIsSet(int featureID)
Does the equivalent of eObject.eIsSet(eObjecte.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(eObjecte.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(eObjecte.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. |
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 |
Field Detail |
---|
static final int EOPPOSITE_FEATURE_BASE
Method Detail |
---|
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.
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.
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.
EObject.eGet(EStructuralFeature, boolean)
java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
eObject.eGet(eObjecte.eClass().getEStructuralFeature(featureID), resolve, coreType)
.
eGet(EStructuralFeature, boolean, boolean)
void eSet(int featureID, java.lang.Object newValue)
eObject.eSet(eObjecte.eClass().getEStructuralFeature(featureID), newValue)
.
EObject.eSet(EStructuralFeature, Object)
void eUnset(int featureID)
eObject.eUnset(eObjecte.eClass().getEStructuralFeature(featureID))
.
EObject.eUnset(EStructuralFeature)
boolean eIsSet(int featureID)
eObject.eIsSet(eObjecte.eClass().getEStructuralFeature(featureID))
.
EObject.eIsSet(EStructuralFeature)
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |