|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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,
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,
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 . |
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.
|
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,
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,
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(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,
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)) . |
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 |
public static final int EOPPOSITE_FEATURE_BASE
Method Detail |
public 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.public 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.
public EObject eObjectForURIFragmentSegment(String uriFragmentSegment)
The fragment segment encoding will typically be of the form returned by eURIFragmentSegment
.
uriFragmentSegment
- a fragment segment.
public void eSetClass(EClass eClass)
settings
.
an.
eClass
- the dynamic meta class.eSetting(EStructuralFeature)
public EStructuralFeature.Setting eSetting(EStructuralFeature feature)
feature
- the feature of the desired setting.
public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass)
derivedFeatureID
- the ID in the actual derived classbaseClass
- the base class for which a relative ID is desired.
public int eContainerFeatureID()
EObject.eContainmentFeature()
,
EOPPOSITE_FEATURE_BASE
public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass)
baseFeatureID
- the ID relative to a base class.baseClass
- the base class to which the ID is relative.
public NotificationChain eSetResource(Resource.Internal resource, NotificationChain notifications)
Resource.getContents()
.add(this)
.
public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain notifications)
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain notifications)
public NotificationChain eBasicSetContainer(InternalEObject newContainer, int newContainerFeatureID, NotificationChain notifications)
public NotificationChain eBasicRemoveFromContainer(NotificationChain notifications)
public URI eProxyURI()
resolve
to the actual object.
EcoreUtil.resolve(EObject, org.eclipse.emf.ecore.resource.ResourceSet)
,
Resource.unload()
public void eSetProxyURI(URI uri)
resolve
to the actual object.
uri
- the URI.EcoreUtil.resolve(EObject, org.eclipse.emf.ecore.resource.ResourceSet)
,
Resource.unload()
public EObject eResolveProxy(InternalEObject proxy)
proxy
object relative to this object.
EcoreUtil.resolve(EObject,EObject)
public InternalEObject eInternalContainer()
null
.
It does not resolve a proxy.
EObject.eContainer()
,
eDirectResource()
public Resource.Internal eInternalResource()
null
.
EObject.eResource()
public Resource.Internal eDirectResource()
null
.
EObject.eResource()
,
eInternalResource()
,
eInternalContainer()
public InternalEObject.EStore eStore()
public void eSetStore(InternalEObject.EStore store)
store
- the store to associate with this object.
UnsupportedOperationException
public 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
.
resolve
- whether to resolve.coreType
- whether to return the core type value or the API type value.
#eGet(EStructuralFeature, boolean);
public Object eGet(int featureID, boolean resolve, boolean coreType)
eObject.eGet(eObjecte.eClass().getEStructuralFeature(featureID), resolve, coreType)
.
eGet(EStructuralFeature, boolean, boolean)
public void eSet(int featureID, Object newValue)
eObject.eSet(eObjecte.eClass().getEStructuralFeature(featureID), newValue)
.
EObject.eSet(EStructuralFeature, Object)
public void eUnset(int featureID)
eObject.eUnset(eObjecte.eClass().getEStructuralFeature(featureID))
.
EObject.eUnset(EStructuralFeature)
public 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 |