|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.ecore.impl.BasicEObjectImpl
An implementation of the model object 'EObject'.
| Nested Class Summary | |
protected static interface |
BasicEObjectImpl.EPropertiesHolder
An internal interface for holding less frequently members variables. |
protected static class |
BasicEObjectImpl.EPropertiesHolderImpl
An internal class for holding less frequently members variables. |
| Nested classes inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl |
BasicNotifierImpl.EAdapterList |
| Nested classes inherited from class org.eclipse.emf.ecore.InternalEObject |
InternalEObject.EStore |
| Field Summary |
| Fields inherited from interface org.eclipse.emf.ecore.InternalEObject |
EOPPOSITE_FEATURE_BASE |
| Constructor Summary | |
protected |
BasicEObjectImpl()
Creates a basic EObject. |
| Method Summary | |
TreeIterator |
eAllContents()
Returns a tree iterator that iterates over all the direct contents and indirect contents of this object. |
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. |
protected BasicEObjectImpl.EPropertiesHolder |
eBasicProperties()
|
NotificationChain |
eBasicRemoveFromContainer(NotificationChain msgs)
Removes this object from whatever container holds it, and returns accumulated notifications. |
protected void |
eBasicSetContainer(InternalEObject newContainer,
int newContainerFeatureID)
|
NotificationChain |
eBasicSetContainer(InternalEObject newContainer,
int newContainerFeatureID,
NotificationChain msgs)
Sets the container to be new container and appropriate feature. |
EClass |
eClass()
Returns the meta class. |
EObject |
eContainer()
Returns the containing object, or null.
|
int |
eContainerFeatureID()
Returns the container feature ID. |
EStructuralFeature |
eContainingFeature()
Returns the particular feature
of the container that actually holds the object,
or null, if there is no container.
|
EReference |
eContainmentFeature()
Returns the containment feature that properly contains the object,
or null, if there is no container.
|
boolean |
eContains(EObject eObject)
|
EList |
eContents()
Returns a list view of the content objects; it is unmodifiable. |
EList |
eCrossReferences()
Returns a list view of the cross referenced objects; it is unmodifiable. |
int |
eDerivedStructuralFeatureID(EStructuralFeature eStructuralFeature)
|
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. |
protected Resource.Internal |
eDirectResource()
|
NotificationChain |
eDynamicBasicRemoveFromContainer(NotificationChain msgs)
|
protected EClass |
eDynamicClass()
|
protected EStructuralFeature |
eDynamicFeature(int dynamicFeatureID)
|
protected int |
eDynamicFeatureID(EStructuralFeature eStructuralFeature)
|
Object |
eDynamicGet(EStructuralFeature eFeature,
boolean resolve)
|
NotificationChain |
eDynamicInverseAdd(InternalEObject otherEnd,
int featureID,
Class inverseClass,
NotificationChain msgs)
|
NotificationChain |
eDynamicInverseRemove(InternalEObject otherEnd,
int featureID,
Class inverseClass,
NotificationChain msgs)
|
boolean |
eDynamicIsSet(EStructuralFeature eFeature)
|
void |
eDynamicSet(EStructuralFeature eFeature,
Object newValue)
|
void |
eDynamicUnset(EStructuralFeature eFeature)
|
Object |
eGet(EStructuralFeature eFeature)
Returns the value of the given feature of this object. |
Object |
eGet(EStructuralFeature eFeature,
boolean resolve)
Returns the value of the given feature of the object; the value is optionally resolved before it is returned.
|
protected boolean |
eHasSettings()
|
protected InternalEObject |
eInternalContainer()
|
Resource.Internal |
eInternalResource()
Returns the containing internal resource, or null. |
NotificationChain |
eInverseAdd(InternalEObject otherEnd,
int featureID,
Class baseClass,
NotificationChain msgs)
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 msgs)
Removes the object at the other end of a bidirectional reference from the appropriate feature and returns accumulated notifications. |
boolean |
eIsProxy()
Indicates whether this object is a proxy. |
boolean |
eIsSet(EStructuralFeature eFeature)
Returns whether the feature of the object is considered to be set. |
EObject |
eObjectForURIFragmentSegment(String uriFragmentSegment)
Returns the object resolved by the fragment segment. |
Object |
eOpenGet(EStructuralFeature eFeature,
boolean resolve)
|
boolean |
eOpenIsSet(EStructuralFeature eFeature)
|
void |
eOpenSet(EStructuralFeature eFeature,
Object newValue)
|
void |
eOpenUnset(EStructuralFeature eFeature)
|
protected BasicEObjectImpl.EPropertiesHolder |
eProperties()
|
URI |
eProxyURI()
Returns the proxy URI of this object. |
EObject |
eResolveProxy(InternalEObject proxy)
Resolves the proxy object relative to this object. |
Resource |
eResource()
Returns the containing resource, or null.
|
void |
eSet(EStructuralFeature eFeature,
Object newValue)
Sets the value of the given feature of the object to the new value. |
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 eFeature)
Returns a setting that can be used to access this object's feature. |
protected EStructuralFeature.Internal.SettingDelegate |
eSettingDelegate(EStructuralFeature eFeature)
|
protected EStructuralFeature.Internal.DynamicValueHolder |
eSettings()
|
protected EClass |
eStaticClass()
|
protected int |
eStaticFeatureCount()
|
InternalEObject.EStore |
eStore()
Returns the store associated with this object. |
void |
eUnset(EStructuralFeature eFeature)
Unsets the feature of the object. |
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.
|
String |
toString()
|
| Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl |
eAdapters, eBasicAdapters, eDeliver, eNotificationRequired, eNotify, eSetDeliver |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
eAdapters, eDeliver, eNotify, eSetDeliver |
| Methods inherited from interface org.eclipse.emf.ecore.InternalEObject |
eNotificationRequired |
| Constructor Detail |
protected BasicEObjectImpl()
| Method Detail |
protected int eStaticFeatureCount()
protected BasicEObjectImpl.EPropertiesHolder eProperties()
protected BasicEObjectImpl.EPropertiesHolder eBasicProperties()
protected boolean eHasSettings()
protected EStructuralFeature.Internal.DynamicValueHolder eSettings()
protected int eDynamicFeatureID(EStructuralFeature eStructuralFeature)
protected EStructuralFeature eDynamicFeature(int dynamicFeatureID)
public String eURIFragmentSegment(EStructuralFeature eStructuralFeature,
EObject eObject)
InternalEObjecteObjectForURIFragmentSegment,
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.
eURIFragmentSegment in interface InternalEObjecteStructuralFeature - the feature relating the given object to this object, or null.eObject - the object to be identified.
public EObject eObjectForURIFragmentSegment(String uriFragmentSegment)
InternalEObject
The fragment segment encoding will typically be of the form returned by eURIFragmentSegment.
eObjectForURIFragmentSegment in interface InternalEObjecturiFragmentSegment - a fragment segment.
public boolean eContains(EObject eObject)
public EObject eContainer()
EObjectnull.
An object is contained by another object
if it appears in the contents of that object.
The object will be contained by a containment feature of the containing object.
eContainer in interface EObjectEObject.eResource(),
EcoreUtil.remove(EObject),
EObject.eContainmentFeature(),
EObject.eContainingFeature(),
EcoreUtil.getRootContainer(org.eclipse.emf.ecore.EObject),
EObject.eContents()protected InternalEObject eInternalContainer()
public int eContainerFeatureID()
InternalEObject
eContainerFeatureID in interface InternalEObjectEObject.eContainmentFeature(),
InternalEObject.EOPPOSITE_FEATURE_BASE
protected void eBasicSetContainer(InternalEObject newContainer,
int newContainerFeatureID)
public EList eContents()
EObject
This will be the list of EObjects determined by the
contents
of the containment features
of this object's meta class.
Objects can, indirectly, be removed
and will change to reflect container changes.
The implicit tree of contents is also directly available.
eContents in interface EObjectEObject.eContainer(),
EClass.getEAllContainments(),
EObject.eGet(EStructuralFeature),
EcoreUtil.remove(EObject),
EObject.eAllContents()public EList eCrossReferences()
EObject
This will be the list of EObjects determined by the
contents
of the reference features
of this object's meta class,
excluding containment features
and their opposites.
The cross reference list's iterator will be of type EContentsEList.FeatureIterator,
for efficient determination of the feature
of each cross reference in the list, e.g.,
for (EContentEList.FeatureIterator featureIterator =
(EContentEList.FeatureIterator)eObject.eCrossReferences().iterator();
featureIterator.hasNext(); )
{
EObject eObject = (EObject)featureIterator.next();
EReference eReference = (EReference)featureIterator.feature();
...
}
eCrossReferences in interface EObjectEObject.eContents(),
EClass.getEAllReferences(),
EClass.getEAllContainments(),
EObject.eGet(EStructuralFeature),
EcoreUtil.CrossReferencerpublic TreeIterator eAllContents()
EObjectdirect contents and indirect contents of this object.
eAllContents in interface EObjectResource.getAllContents(),
EcoreUtil.getAllContents(java.util.Collection)public EReference eContainmentFeature()
EObjectcontainment feature that properly contains the object,
or null, if there is no container.
Because of support for wildcard content,
this feature may not be a direct feature of the container's class,
but rather a feature
of an entry in a feature map feature of the container's class.
eContainmentFeature in interface EObjectEObject.eContainer(),
EObject.eContainingFeature(),
EReference.isContainment(),
EClass.getEAllContainments(),
FeatureMap.Entry.getEStructuralFeature()public EStructuralFeature eContainingFeature()
EObjectfeature
of the container that actually holds the object,
or null, if there is no container.
Because of support for wildcard content,
this feature may be an attribute representing a feature map;
in this case the object is referenced by the containment feature
of an entry in the map,
i.e., the eContainmentFeature.
eContainingFeature in interface EObjectEObject.eContainer(),
EObject.eContainmentFeature(),
EClass.getEAllContainments(),
EReference.isContainment(),
FeatureMap.Entry.getEStructuralFeature()protected Resource.Internal eDirectResource()
public Resource eResource()
EObjectnull.
An object is contained in a resource
if it, or one of it's containers,
appears in the contents of that resource.
An object must be contained by a resource in order to be serialized.
eResource in interface EObjectEcoreUtil.remove(EObject),
EObject.eContainer()public Resource.Internal eInternalResource()
InternalEObjectnull.
eInternalResource in interface InternalEObjectEObject.eResource()
public NotificationChain eSetResource(Resource.Internal resource,
NotificationChain notifications)
InternalEObjectResource.getContents().add(this).
eSetResource in interface InternalEObjectpublic Object eGet(EStructuralFeature eFeature)
EObjectIt returns the resolved value, i.e., it returns
eObject.eGet(feature, true)
eGet in interface EObjecteFeature - the feature of the value to fetch.
EObject.eGet(EStructuralFeature, boolean)
public Object eGet(EStructuralFeature eFeature,
boolean resolve)
EObjectresolved 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.
eGet in interface EObjecteFeature - the feature of the value to fetch.resolve - whether to resolve.
InternalEList.basicIterator(),
InternalEList.basicList(),
EcoreUtil.resolve(EObject, org.eclipse.emf.ecore.resource.ResourceSet),
EObject.eSet(EStructuralFeature, Object),
EObject.eUnset(EStructuralFeature),
EObject.eIsSet(EStructuralFeature),
EObject.eGet(EStructuralFeature)
public Object eDynamicGet(EStructuralFeature eFeature,
boolean resolve)
public Object eOpenGet(EStructuralFeature eFeature,
boolean resolve)
public void eSet(EStructuralFeature eFeature,
Object newValue)
EObject
If the feature is many-valued,
the new value must be an EList
and each object in that list must be an instance of
the feature's type;
the existing contents are cleared and the contents of the new value are added.
Otherwise the new value directly must be an instance of the feature's type
and it becomes the new value of the feature of the object.
If the feature is unsettable,
the modeled state becomes set;
otherwise, the feature may still not considered set if the new value is the same as the default.
eSet in interface EObjecteFeature - the feature of the value to set.EObject.eUnset(EStructuralFeature),
EObject.eIsSet(EStructuralFeature),
EObject.eGet(EStructuralFeature, boolean)
public void eDynamicSet(EStructuralFeature eFeature,
Object newValue)
public void eOpenSet(EStructuralFeature eFeature,
Object newValue)
public void eUnset(EStructuralFeature eFeature)
EObject
If the feature is many-valued,
the value must be an EList
and that list is cleared.
Otherwise,
the value of the feature of the object
is set to the feature's default value
or the meta class's default value,
as appropriate.
If the feature is unsettable,
the modeled state becomes unset.
In any case, the feature will no longer be considered set.
eUnset in interface EObjecteFeature - the feature in question.EObject.eIsSet(EStructuralFeature),
EObject.eSet(EStructuralFeature, Object),
EObject.eGet(EStructuralFeature, boolean)public void eDynamicUnset(EStructuralFeature eFeature)
public void eOpenUnset(EStructuralFeature eFeature)
public boolean eIsSet(EStructuralFeature eFeature)
EObject
If the feature is many-valued,
the value must be an EList
and the feature is considered set if the list is not empty.
If the feature is unsettable,
the modeled state is directly available and is used.
Otherwise,
the unresolved value of the feature of the object
is compared against the feature's default value
or the meta class's default value,
as appropriate;
the feature is considered set if it's not the same as the default.
This property can affect serialization, since defaults are typically omitted in a compact serialization.
eIsSet in interface EObjecteFeature - the feature in question.
EObject.eSet(EStructuralFeature, Object),
EObject.eUnset(EStructuralFeature),
EObject.eGet(EStructuralFeature, boolean)public boolean eDynamicIsSet(EStructuralFeature eFeature)
public boolean eOpenIsSet(EStructuralFeature eFeature)
public NotificationChain eBasicSetContainer(InternalEObject newContainer,
int newContainerFeatureID,
NotificationChain msgs)
InternalEObject
eBasicSetContainer in interface InternalEObjectpublic NotificationChain eBasicRemoveFromContainer(NotificationChain msgs)
InternalEObject
eBasicRemoveFromContainer in interface InternalEObjectpublic NotificationChain eDynamicBasicRemoveFromContainer(NotificationChain msgs)
public NotificationChain eInverseAdd(InternalEObject otherEnd,
int featureID,
Class baseClass,
NotificationChain msgs)
InternalEObject
eInverseAdd in interface InternalEObject
public NotificationChain eDynamicInverseAdd(InternalEObject otherEnd,
int featureID,
Class inverseClass,
NotificationChain msgs)
public NotificationChain eInverseRemove(InternalEObject otherEnd,
int featureID,
Class baseClass,
NotificationChain msgs)
InternalEObject
eInverseRemove in interface InternalEObject
public NotificationChain eDynamicInverseRemove(InternalEObject otherEnd,
int featureID,
Class inverseClass,
NotificationChain msgs)
public URI eProxyURI()
InternalEObjectresolve to the actual object.
eProxyURI in interface InternalEObjectEcoreUtil.resolve(EObject, org.eclipse.emf.ecore.resource.ResourceSet),
Resource.unload()public void eSetProxyURI(URI uri)
InternalEObjectresolve to the actual object.
eSetProxyURI in interface InternalEObjecturi - the URI.EcoreUtil.resolve(EObject, org.eclipse.emf.ecore.resource.ResourceSet),
Resource.unload()public EObject eResolveProxy(InternalEObject proxy)
InternalEObjectproxy object relative to this object.
eResolveProxy in interface InternalEObjectEcoreUtil.resolve(EObject,EObject)public boolean eIsProxy()
EObject
A proxy is an object that is defined in a Resource that has not been loaded.
An object may be a proxy either because proxy resolution was disabled
when the object was accessed (see EObject.eGet(EStructuralFeature,boolean))
or because proxy resolution failed.
eIsProxy in interface EObjecttrue if this object is a proxy or false, otherwise.Resource.unload(),
EcoreUtil.resolve(EObject, org.eclipse.emf.ecore.resource.ResourceSet)
public int eBaseStructuralFeatureID(int derivedFeatureID,
Class baseClass)
InternalEObject
eBaseStructuralFeatureID in interface InternalEObjectderivedFeatureID - the ID in the actual derived classbaseClass - the base class for which a relative ID is desired.
public int eDerivedStructuralFeatureID(int baseFeatureID,
Class baseClass)
InternalEObject
eDerivedStructuralFeatureID in interface InternalEObjectbaseFeatureID - the ID relative to a base class.baseClass - the base class to which the ID is relative.
public int eDerivedStructuralFeatureID(EStructuralFeature eStructuralFeature)
public EClass eClass()
EObject
The meta class defines the features
available for reflective access.
eClass in interface EObjectEClass.getEAllStructuralFeatures()protected EClass eStaticClass()
protected EClass eDynamicClass()
public void eSetClass(EClass eClass)
InternalEObjectsettings.
an.
eSetClass in interface InternalEObjecteClass - the dynamic meta class.InternalEObject.eSetting(EStructuralFeature)protected EStructuralFeature.Internal.SettingDelegate eSettingDelegate(EStructuralFeature eFeature)
public EStructuralFeature.Setting eSetting(EStructuralFeature eFeature)
InternalEObject
eSetting in interface InternalEObjecteFeature - the feature of the desired setting.
public InternalEObject.EStore eStore()
InternalEObject
eStore in interface InternalEObjectpublic void eSetStore(InternalEObject.EStore store)
InternalEObject
eSetStore in interface InternalEObjectstore - the store to associate with this object.public String toString()
|
Copyright 2001-2004 IBM Corporation and others. All Rights Reserved. |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||