public class BasicEObjectImpl extends BasicNotifierImpl implements EObject, InternalEObject
Modifier and Type | Class and Description |
---|---|
protected static interface |
BasicEObjectImpl.EPropertiesHolder
An internal interface for holding less frequently members variables.
|
protected static class |
BasicEObjectImpl.EPropertiesHolderBaseImpl
An internal class for holding the least frequently members variables.
|
protected static class |
BasicEObjectImpl.EPropertiesHolderImpl
An internal class for holding less frequently members variables.
|
BasicNotifierImpl.EAdapterList<E extends java.lang.Object & Adapter>, BasicNotifierImpl.EObservableAdapterList
InternalEObject.EStore
Modifier and Type | Field and Description |
---|---|
protected static int |
EVIRTUAL_GET
|
protected static int |
EVIRTUAL_IS_SET
|
protected static java.lang.Object |
EVIRTUAL_NO_VALUE |
protected static int |
EVIRTUAL_SET
An action code indicating that an
index
needs to be computed to perform a eVirtualSet(int, Object) set. |
protected static int |
EVIRTUAL_UNSET
An action code indicating that an
eVirtualIndex(int, int) index
needs to be computed to perform an unset . |
EOPPOSITE_FEATURE_BASE
Modifier | Constructor and Description |
---|---|
protected |
BasicEObjectImpl()
Creates a basic EObject.
|
Modifier and Type | Method and Description |
---|---|
protected void |
eAddVirtualValue(int index,
java.lang.Object value)
Adds the value at the index.
|
TreeIterator<EObject> |
eAllContents()
Returns a tree iterator that iterates over all the
direct contents and indirect contents of this object. |
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.
|
protected BasicEObjectImpl.EPropertiesHolder |
eBasicProperties() |
NotificationChain |
eBasicRemoveFromContainer(NotificationChain msgs)
Removes this object from whatever container holds it,
and returns accumulated notifications.
|
NotificationChain |
eBasicRemoveFromContainerFeature(NotificationChain msgs) |
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.
|
protected int |
eComputeVirtualValuesCapacity(int minimumCapacity)
This method controls the growth of the
virtual values by returning the new capacity
that should be allocated for the given minimum required capacity. |
EObject |
eContainer()
Returns the containing object, or
null . |
protected Adapter[] |
eContainerAdapterArray()
Returns the
adapter array of the container . |
int |
eContainerFeatureID()
Returns the container feature ID.
|
EStructuralFeature |
eContainingFeature()
|
EReference |
eContainmentFeature()
Returns the
containment feature that properly contains the object,
or null , if there is no container. |
protected static EReference |
eContainmentFeature(EObject eObject,
EObject eContainer,
int eContainerFeatureID) |
boolean |
eContains(EObject eObject) |
EList<EObject> |
eContents()
Returns a list view of the content objects; it is unmodifiable.
|
EList<EObject> |
eCrossReferences()
Returns a list view of the cross referenced objects; it is unmodifiable.
|
int |
eDerivedOperationID(EOperation eOperation) |
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(EStructuralFeature eStructuralFeature) |
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 . |
NotificationChain |
eDynamicBasicRemoveFromContainer(NotificationChain msgs) |
protected EClass |
eDynamicClass() |
protected EStructuralFeature |
eDynamicFeature(int dynamicFeatureID) |
protected int |
eDynamicFeatureID(EStructuralFeature eStructuralFeature) |
java.lang.Object |
eDynamicGet(EStructuralFeature eFeature,
boolean resolve) |
java.lang.Object |
eDynamicGet(int featureID,
boolean resolve,
boolean coreType) |
protected java.lang.Object |
eDynamicGet(int dynamicFeatureID,
EStructuralFeature eFeature,
boolean resolve,
boolean coreType) |
NotificationChain |
eDynamicInverseAdd(InternalEObject otherEnd,
int featureID,
java.lang.Class<?> inverseClass,
NotificationChain msgs) |
protected NotificationChain |
eDynamicInverseAdd(InternalEObject otherEnd,
int featureID,
NotificationChain msgs) |
NotificationChain |
eDynamicInverseRemove(InternalEObject otherEnd,
int featureID,
java.lang.Class<?> inverseClass,
NotificationChain msgs) |
protected NotificationChain |
eDynamicInverseRemove(InternalEObject otherEnd,
int featureID,
NotificationChain msgs) |
protected java.lang.Object |
eDynamicInvoke(EOperation eOperation,
EList<?> arguments) |
java.lang.Object |
eDynamicInvoke(int operationID,
EList<?> arguments) |
boolean |
eDynamicIsSet(EStructuralFeature eFeature) |
boolean |
eDynamicIsSet(int featureID) |
protected boolean |
eDynamicIsSet(int dynamicFeatureID,
EStructuralFeature eFeature) |
void |
eDynamicSet(EStructuralFeature eFeature,
java.lang.Object newValue) |
protected void |
eDynamicSet(int dynamicFeatureID,
EStructuralFeature eFeature,
java.lang.Object newValue) |
void |
eDynamicSet(int featureID,
java.lang.Object newValue) |
void |
eDynamicUnset(EStructuralFeature eFeature) |
void |
eDynamicUnset(int featureID) |
protected void |
eDynamicUnset(int dynamicFeatureID,
EStructuralFeature eFeature) |
java.lang.Object |
eGet(EStructuralFeature eFeature)
Returns the value of the given feature of this object.
|
java.lang.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. |
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) . |
protected boolean |
eHasSettings() |
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 msgs)
Adds the object at the other end of a bidirectional reference to the appropriate feature
and returns accumulated notifications.
|
NotificationChain |
eInverseAdd(InternalEObject otherEnd,
int featureID,
NotificationChain msgs) |
NotificationChain |
eInverseRemove(InternalEObject otherEnd,
int featureID,
java.lang.Class<?> baseClass,
NotificationChain msgs)
Removes the object at the other end of a bidirectional reference from the appropriate feature
and returns accumulated notifications.
|
NotificationChain |
eInverseRemove(InternalEObject otherEnd,
int featureID,
NotificationChain msgs) |
protected EOperation.Internal.InvocationDelegate |
eInvocationDelegate(EOperation eOperation) |
java.lang.Object |
eInvoke(EOperation eOperation,
EList<?> arguments)
Invokes the specified operation of the object.
|
java.lang.Object |
eInvoke(int operationID,
EList<?> arguments)
Does the equivalent of
eObject.eInvoke(eObject.eClass().getEOperation(featureID), arguments) . |
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.
|
boolean |
eIsSet(int featureID)
Does the equivalent of
eObject.eIsSet(eObject.eClass().getEStructuralFeature(featureID)) . |
EObject |
eObjectForURIFragmentSegment(java.lang.String uriFragmentSegment)
Returns the object resolved by the fragment segment.
|
java.lang.Object |
eOpenGet(EStructuralFeature eFeature,
boolean resolve) |
boolean |
eOpenIsSet(EStructuralFeature eFeature) |
void |
eOpenSet(EStructuralFeature eFeature,
java.lang.Object newValue) |
void |
eOpenUnset(EStructuralFeature eFeature) |
protected BasicEObjectImpl.EPropertiesHolder |
eProperties() |
URI |
eProxyURI()
Returns the proxy URI of this object.
|
protected java.lang.Object |
eRemoveVirtualValue(int index)
Removes the value at the index.
|
EObject |
eResolveProxy(InternalEObject proxy)
Resolves the
proxy object relative to this object. |
Resource |
eResource()
Returns the containing resource, or
null . |
void |
eSet(EStructuralFeature eFeature,
java.lang.Object newValue)
Sets the value of the given feature of the object to the new value.
|
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.
|
protected void |
eSetDirectResource(Resource.Internal resource) |
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 void |
eSetVirtualIndexBits(int offset,
int newIndexBits)
Sets the bit pattern at the given offset within the sequence of bit patterns
representing which features are assigned an index in the
virtual values . |
protected java.lang.Object |
eSetVirtualValue(int index,
java.lang.Object value)
Sets the value at the index.
|
protected void |
eSetVirtualValues(java.lang.Object[] newValues)
Sets the array of virtual values of the features that are current set.
|
protected EClass |
eStaticClass() |
protected int |
eStaticFeatureCount() |
protected int |
eStaticOperationCount() |
InternalEObject.EStore |
eStore()
Returns the store associated with this object.
|
void |
eUnset(EStructuralFeature eFeature)
Unsets the feature of the object.
|
void |
eUnset(int featureID)
Does the equivalent of
eObject.eUnset(eObject.eClass().getEStructuralFeature(featureID)) . |
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. |
protected static int |
eVirtualBitCount(int value)
Returns the number of bits that are on in the two's complement bit pattern.
|
java.lang.Object |
eVirtualGet(int eDerivedStructuralFeatureID)
Returns the value for the feature ID, or
null , if there isn't one. |
java.lang.Object |
eVirtualGet(int eDerivedStructuralFeatureID,
java.lang.Object defaultValue)
Returns the value for the feature ID, or the default value, if there isn't one.
|
protected int |
eVirtualIndex(int eDerivedStructuralFeatureID,
int action)
Returns the index in the
virtual values for the feature ID,
with the side effect of toggling the necessary bits to suit the action code. |
protected int |
eVirtualIndexBits(int offset)
Returns the bit pattern at the given offset within the sequence of bit patterns
representing which features are assigned an index in the
virtual values . |
boolean |
eVirtualIsSet(int eDerivedStructuralFeatureID)
Returns whether there is a value set for the feature ID.
|
java.lang.Object |
eVirtualSet(int eDerivedStructuralFeatureID,
java.lang.Object value)
Sets the value for the feature ID.
|
java.lang.Object |
eVirtualUnset(int eDerivedStructuralFeatureID)
Unsets the value for the feature ID.
|
protected java.lang.Object |
eVirtualValue(int index)
Returns the value at the index.
|
protected java.lang.Object[] |
eVirtualValues()
Returns the array of virtual values of the features that are current set.
|
java.lang.String |
toString() |
eAdapters, eBasicAdapterArray, eBasicAdapters, eBasicHasAdapters, eDeliver, eNotificationRequired, eNotify, eSetDeliver
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
eNotificationRequired
eAdapters, eDeliver, eNotify, eSetDeliver
protected static final int EVIRTUAL_SET
index
needs to be computed to perform a eVirtualSet(int, Object)
set.protected static final int EVIRTUAL_UNSET
eVirtualIndex(int, int)
index
needs to be computed to perform an unset
.protected static final int EVIRTUAL_GET
protected static final int EVIRTUAL_IS_SET
protected static final java.lang.Object EVIRTUAL_NO_VALUE
protected int eStaticFeatureCount()
protected int eStaticOperationCount()
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 java.lang.String eURIFragmentSegment(EStructuralFeature eStructuralFeature, EObject eObject)
InternalEObject
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
eURIFragmentSegment
in interface InternalEObject
eStructuralFeature
- the feature relating the given object to this object, or null
.eObject
- the object to be identified.public EObject eObjectForURIFragmentSegment(java.lang.String uriFragmentSegment)
InternalEObject
The fragment segment encoding will typically be of the form returned by eURIFragmentSegment
.
eObjectForURIFragmentSegment
in interface InternalEObject
uriFragmentSegment
- a fragment segment.public boolean eContains(EObject eObject)
public EObject eContainer()
EObject
null
.
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 EObject
EObject.eResource()
,
EcoreUtil.remove(EObject)
,
EObject.eContainmentFeature()
,
EObject.eContainingFeature()
,
EcoreUtil.getRootContainer(EObject)
,
EObject.eContents()
public InternalEObject eInternalContainer()
InternalEObject
null
.
It does not resolve a proxy.eInternalContainer
in interface InternalEObject
EObject.eContainer()
,
InternalEObject.eDirectResource()
public int eContainerFeatureID()
InternalEObject
eContainerFeatureID
in interface InternalEObject
EObject.eContainmentFeature()
,
InternalEObject.EOPPOSITE_FEATURE_BASE
protected void eBasicSetContainer(InternalEObject newContainer, int newContainerFeatureID)
public EList<EObject> eContents()
EObject
This will be the list of EObject
s 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 EObject
EObject.eContainer()
,
EClass.getEAllContainments()
,
EObject.eGet(EStructuralFeature)
,
EcoreUtil.remove(EObject)
,
EObject.eAllContents()
public EList<EObject> eCrossReferences()
EObject
This will be the list of EObject
s 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 (EContentsEList.FeatureIterator featureIterator = (EContentsEList.FeatureIterator)eObject.eCrossReferences().iterator(); featureIterator.hasNext(); ) { EObject eObject = (EObject)featureIterator.next(); EReference eReference = (EReference)featureIterator.feature(); ... }
eCrossReferences
in interface EObject
EObject.eContents()
,
EClass.getEAllReferences()
,
EClass.getEAllContainments()
,
EObject.eGet(EStructuralFeature)
,
EcoreUtil.CrossReferencer
public TreeIterator<EObject> eAllContents()
EObject
direct contents
and indirect contents of this object.eAllContents
in interface EObject
Resource.getAllContents()
,
EcoreUtil.getAllContents(EObject, boolean)
public EReference eContainmentFeature()
EObject
containment
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 EObject
EObject.eContainer()
,
EObject.eContainingFeature()
,
EReference.isContainment()
,
EClass.getEAllContainments()
,
FeatureMap.Entry.getEStructuralFeature()
protected static EReference eContainmentFeature(EObject eObject, EObject eContainer, int eContainerFeatureID)
public EStructuralFeature eContainingFeature()
EObject
feature
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 EObject
EObject.eContainer()
,
EObject.eContainmentFeature()
,
EClass.getEAllContainments()
,
EReference.isContainment()
,
FeatureMap.Entry.getEStructuralFeature()
public Resource.Internal eDirectResource()
InternalEObject
null
.eDirectResource
in interface InternalEObject
EObject.eResource()
,
InternalEObject.eInternalResource()
,
InternalEObject.eInternalContainer()
public Resource eResource()
EObject
null
.
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 EObject
EcoreUtil.remove(EObject)
,
EObject.eContainer()
public Resource.Internal eInternalResource()
InternalEObject
null
.eInternalResource
in interface InternalEObject
EObject.eResource()
public NotificationChain eSetResource(Resource.Internal resource, NotificationChain notifications)
InternalEObject
Resource.getContents()
.add(this)
.eSetResource
in interface InternalEObject
protected void eSetDirectResource(Resource.Internal resource)
public java.lang.Object eGet(EStructuralFeature eFeature)
EObject
It returns the resolved value, i.e., it returns
eObject.eGet
(feature, true)
eGet
in interface EObject
eFeature
- the feature of the value to fetch.EObject.eGet(EStructuralFeature, boolean)
public java.lang.Object eGet(EStructuralFeature eFeature, boolean resolve)
EObject
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.
eGet
in interface EObject
eFeature
- 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 java.lang.Object eGet(EStructuralFeature eFeature, boolean resolve, boolean coreType)
InternalEObject
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
.
eGet
in interface InternalEObject
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)
public java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
InternalEObject
eObject.eGet(eObject.eClass().getEStructuralFeature(featureID), resolve, coreType)
.eGet
in interface InternalEObject
InternalEObject.eGet(EStructuralFeature, boolean, boolean)
public java.lang.Object eDynamicGet(EStructuralFeature eFeature, boolean resolve)
public java.lang.Object eDynamicGet(int featureID, boolean resolve, boolean coreType)
protected java.lang.Object eDynamicGet(int dynamicFeatureID, EStructuralFeature eFeature, boolean resolve, boolean coreType)
public java.lang.Object eOpenGet(EStructuralFeature eFeature, boolean resolve)
public void eSet(EStructuralFeature eFeature, java.lang.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.
However, if the new value is the content list itself, or is modified as a side effect of modifying the content list
(i.e., if it is a view on the content list),
the behavior is undefined and will likely result in simply clearing the list.
If the feature is single-valued, 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 EObject
eFeature
- the feature of the value to set.EObject.eUnset(EStructuralFeature)
,
EObject.eIsSet(EStructuralFeature)
,
EObject.eGet(EStructuralFeature, boolean)
public void eSet(int featureID, java.lang.Object newValue)
InternalEObject
eObject.eSet(eObject.eClass().getEStructuralFeature(featureID), newValue)
.eSet
in interface InternalEObject
EObject.eSet(EStructuralFeature, Object)
public void eDynamicSet(EStructuralFeature eFeature, java.lang.Object newValue)
public void eDynamicSet(int featureID, java.lang.Object newValue)
protected void eDynamicSet(int dynamicFeatureID, EStructuralFeature eFeature, java.lang.Object newValue)
public void eOpenSet(EStructuralFeature eFeature, java.lang.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 EObject
eFeature
- the feature in question.EObject.eIsSet(EStructuralFeature)
,
EObject.eSet(EStructuralFeature, Object)
,
EObject.eGet(EStructuralFeature, boolean)
public void eUnset(int featureID)
InternalEObject
eObject.eUnset(eObject.eClass().getEStructuralFeature(featureID))
.eUnset
in interface InternalEObject
EObject.eUnset(EStructuralFeature)
public void eDynamicUnset(EStructuralFeature eFeature)
public void eDynamicUnset(int featureID)
protected void eDynamicUnset(int dynamicFeatureID, 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 EObject
eFeature
- the feature in question.EObject.eSet(EStructuralFeature, Object)
,
EObject.eUnset(EStructuralFeature)
,
EObject.eGet(EStructuralFeature, boolean)
public boolean eIsSet(int featureID)
InternalEObject
eObject.eIsSet(eObject.eClass().getEStructuralFeature(featureID))
.eIsSet
in interface InternalEObject
EObject.eIsSet(EStructuralFeature)
public boolean eDynamicIsSet(EStructuralFeature eFeature)
public boolean eDynamicIsSet(int featureID)
protected boolean eDynamicIsSet(int dynamicFeatureID, EStructuralFeature eFeature)
public boolean eOpenIsSet(EStructuralFeature eFeature)
public NotificationChain eBasicSetContainer(InternalEObject newContainer, int newContainerFeatureID, NotificationChain msgs)
InternalEObject
eBasicSetContainer
in interface InternalEObject
public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs)
InternalEObject
eBasicRemoveFromContainer
in interface InternalEObject
public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs)
public NotificationChain eDynamicBasicRemoveFromContainer(NotificationChain msgs)
public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, java.lang.Class<?> baseClass, NotificationChain msgs)
InternalEObject
eInverseAdd
in interface InternalEObject
public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs)
public NotificationChain eDynamicInverseAdd(InternalEObject otherEnd, int featureID, java.lang.Class<?> inverseClass, NotificationChain msgs)
protected NotificationChain eDynamicInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs)
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, java.lang.Class<?> baseClass, NotificationChain msgs)
InternalEObject
eInverseRemove
in interface InternalEObject
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
public NotificationChain eDynamicInverseRemove(InternalEObject otherEnd, int featureID, java.lang.Class<?> inverseClass, NotificationChain msgs)
protected NotificationChain eDynamicInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
public URI eProxyURI()
InternalEObject
resolve
to the actual object.eProxyURI
in interface InternalEObject
EcoreUtil.resolve(EObject, org.eclipse.emf.ecore.resource.ResourceSet)
,
Resource.unload()
public void eSetProxyURI(URI uri)
InternalEObject
resolve
to the actual object.eSetProxyURI
in interface InternalEObject
uri
- the URI.EcoreUtil.resolve(EObject, org.eclipse.emf.ecore.resource.ResourceSet)
,
Resource.unload()
public EObject eResolveProxy(InternalEObject proxy)
InternalEObject
proxy
object relative to this object.eResolveProxy
in interface InternalEObject
EcoreUtil.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 EObject
true
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, java.lang.Class<?> baseClass)
InternalEObject
eBaseStructuralFeatureID
in interface InternalEObject
derivedFeatureID
- the ID in the actual derived classbaseClass
- the base class for which a relative ID is desired.public int eDerivedStructuralFeatureID(int baseFeatureID, java.lang.Class<?> baseClass)
InternalEObject
eDerivedStructuralFeatureID
in interface InternalEObject
baseFeatureID
- the ID relative to a base class.baseClass
- the base class to which the ID is relative.public int eDerivedStructuralFeatureID(EStructuralFeature eStructuralFeature)
public int eDerivedOperationID(int baseOperationID, java.lang.Class<?> baseClass)
InternalEObject
eDerivedOperationID
in interface InternalEObject
baseOperationID
- the ID relative to a base class.baseClass
- the base class to which the ID is relative.public int eDerivedOperationID(EOperation eOperation)
public EClass eClass()
EObject
The meta class defines the features
available for reflective access.
eClass
in interface EObject
EClass.getEAllStructuralFeatures()
protected EClass eStaticClass()
protected EClass eDynamicClass()
public void eSetClass(EClass eClass)
InternalEObject
settings
.
an.eSetClass
in interface InternalEObject
eClass
- the dynamic meta class.InternalEObject.eSetting(EStructuralFeature)
protected EStructuralFeature.Internal.SettingDelegate eSettingDelegate(EStructuralFeature eFeature)
public EStructuralFeature.Setting eSetting(EStructuralFeature eFeature)
InternalEObject
eSetting
in interface InternalEObject
eFeature
- the feature of the desired setting.protected EOperation.Internal.InvocationDelegate eInvocationDelegate(EOperation eOperation)
public InternalEObject.EStore eStore()
InternalEObject
eStore
in interface InternalEObject
public void eSetStore(InternalEObject.EStore store)
InternalEObject
eSetStore
in interface InternalEObject
store
- the store to associate with this object.protected Adapter[] eContainerAdapterArray()
adapter array
of the container
.protected static int eVirtualBitCount(int value)
virtual values
.value
- a two's complement bit pattern.protected int eVirtualIndexBits(int offset)
virtual values
.offset
- the offset within the bit sequence of bit patterns.protected void eSetVirtualIndexBits(int offset, int newIndexBits)
virtual values
.offset
- the offset within the bit sequence of bit patterns.newIndexBits
- the new bit pattern at the offset.protected int eVirtualIndex(int eDerivedStructuralFeatureID, int action)
virtual values
for the feature ID,
with the side effect of toggling the necessary bits to suit the action code.
A result of less than zero indicates that the feature ID is not assigned an index.
In the case of a set action, when the value was not previously set,
the result will be the complement of the assigned index,
which can be corrected by ~index
.eDerivedStructuralFeatureID
- the ID of a feature of the class.action
- the reason for computing the ID.protected java.lang.Object[] eVirtualValues()
protected void eSetVirtualValues(java.lang.Object[] newValues)
newValues
- the new array of virtual values.protected java.lang.Object eVirtualValue(int index)
index
- the index
in the virtual values
.protected java.lang.Object eSetVirtualValue(int index, java.lang.Object value)
index
- the index
in the virtual values
.protected int eComputeVirtualValuesCapacity(int minimumCapacity)
virtual values
by returning the new capacity
that should be allocated for the given minimum required capacity. Subclasses can override this to be more or
less liberal in growth.minimumCapacity
- the minimum number of virtual value entries required.protected void eAddVirtualValue(int index, java.lang.Object value)
index
- the index
in the virtual values
.protected java.lang.Object eRemoveVirtualValue(int index)
index
- the index
in the virtual values
.public java.lang.Object eVirtualGet(int eDerivedStructuralFeatureID)
null
, if there isn't one.eDerivedStructuralFeatureID
- the feature ID to fetch.public java.lang.Object eVirtualGet(int eDerivedStructuralFeatureID, java.lang.Object defaultValue)
eDerivedStructuralFeatureID
- the feature ID to fetch.defaultValue
- the default value.public boolean eVirtualIsSet(int eDerivedStructuralFeatureID)
eDerivedStructuralFeatureID
- the feature ID to test.public java.lang.Object eVirtualSet(int eDerivedStructuralFeatureID, java.lang.Object value)
eDerivedStructuralFeatureID
- the feature ID to set.EVIRTUAL_NO_VALUE
.public java.lang.Object eVirtualUnset(int eDerivedStructuralFeatureID)
eDerivedStructuralFeatureID
- the feature ID to unset.EVIRTUAL_NO_VALUE
.public java.lang.Object eInvoke(EOperation eOperation, EList<?> arguments) throws java.lang.reflect.InvocationTargetException
EObject
Invokes the specified operation of the object. If the operation has parameters, then corresponding arguments must be supplied. There are no optional parameters in Ecore operations.
If the operation is a void operation, then on successful execution, the
result of this invocation is null
. Otherwise, if the
operation is multi-valued
, then an
EList
is returned (possibly empty). If single-valued, then an
instance of the operation's type
is
returned, or possibly null
.
If the invoked operation fails with an
exception
, then it is re-thrown,
wrapped in an InvocationTargetException
.
public java.lang.Object eInvoke(int operationID, EList<?> arguments) throws java.lang.reflect.InvocationTargetException
InternalEObject
eObject.eInvoke(eObject.eClass().getEOperation(featureID), arguments)
.eInvoke
in interface InternalEObject
java.lang.reflect.InvocationTargetException
EObject.eInvoke(EOperation, EList<?>)
public java.lang.Object eDynamicInvoke(int operationID, EList<?> arguments) throws java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException
protected java.lang.Object eDynamicInvoke(EOperation eOperation, EList<?> arguments) throws java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException
public java.lang.String toString()
toString
in class java.lang.Object