public class EObjectImpl extends BasicEObjectImpl implements EObject
BasicEObjectImpl.EPropertiesHolder, BasicEObjectImpl.EPropertiesHolderBaseImpl, BasicEObjectImpl.EPropertiesHolderImpl
BasicNotifierImpl.EAdapterList<E extends java.lang.Object & Adapter>, BasicNotifierImpl.EObservableAdapterList
InternalEObject.EStore
Modifier and Type | Field and Description |
---|---|
protected BasicEList<Adapter> |
eAdapters
The list of
Adapter s associated with the notifier. |
protected InternalEObject |
eContainer
The container of this object.
|
protected int |
eContainerFeatureID
The feature ID of this object's container holding feature, if there is one,
or
EOPPOSITE_FEATURE_BASE minus the feature ID of the container's feature that contains this object. |
protected static int |
EDELIVER
The bit of
eFlags that is used to represent eDeliver() . |
protected static int |
EDYNAMIC_CLASS
The bit of
eFlags that is used to represent whether there is a dynamic EClass. |
protected int |
eFlags
An extensible set of bit flags;
the first bit is used for
EDELIVER to implement eDeliver()
and the second bit is used for EPROXY to implement eIsProxy() . |
static int |
ELAST_EOBJECT_FLAG
The last bit used by this class; derived classes may use bit values higher than this.
|
protected static int |
ELAST_NOTIFIER_FLAG
The last bit used by this class; derived classes may use bit values higher than this.
|
protected BasicEObjectImpl.EPropertiesHolder |
eProperties
Additional less frequently used fields.
|
protected static int |
EPROXY
The bit of
eFlags that is used to represent eIsProxy() . |
EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSET
EOPPOSITE_FEATURE_BASE
Modifier | Constructor and Description |
---|---|
protected |
EObjectImpl()
Creates an EObject
|
Modifier and Type | Method and Description |
---|---|
EList<Adapter> |
eAdapters()
Returns list of the adapters associated with this notifier.
|
protected BasicEList<Adapter> |
eBasicAdapters()
Returns the adapter list, even if it is
null . |
protected BasicEObjectImpl.EPropertiesHolder |
eBasicProperties() |
protected void |
eBasicSetContainer(InternalEObject newContainer,
int newContainerFeatureID) |
EClass |
eClass()
Returns the meta class.
|
int |
eContainerFeatureID()
Returns the container feature ID.
|
boolean |
eDeliver()
Returns whether this notifier will deliver notifications to the adapters.
|
InternalEObject |
eInternalContainer()
Returns the internal container, or
null . |
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.
|
protected BasicEObjectImpl.EPropertiesHolder |
eProperties() |
void |
eSetClass(EClass eClass)
Sets the meta class.
|
void |
eSetDeliver(boolean deliver)
Sets whether this notifier will deliver notifications to the adapters.
|
void |
eSetProxyURI(URI uri)
Set the proxy URI of this object.
|
protected EClass |
eStaticClass() |
eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainerAdapterArray, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicInvoke, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eGet, eHasSettings, eInternalResource, eInverseAdd, eInverseAdd, eInverseRemove, eInverseRemove, eInvocationDelegate, eInvoke, eIsSet, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSet, eSetDirectResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStaticOperationCount, eStore, eUnset, eUnset, eURIFragmentSegment, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues, toString
eBasicAdapterArray, eBasicHasAdapters, eNotificationRequired, eNotify
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
eAllContents, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsSet, eResource, eSet, eUnset
eNotificationRequired
protected static final int EDELIVER
eFlags
that is used to represent eDeliver()
.protected static final int EDYNAMIC_CLASS
eFlags
that is used to represent whether there is a dynamic EClass.protected static final int EPROXY
eFlags
that is used to represent eIsProxy()
.protected static final int ELAST_NOTIFIER_FLAG
public static final int ELAST_EOBJECT_FLAG
protected int eFlags
EDELIVER
to implement eDeliver()
and the second bit is used for EPROXY
to implement eIsProxy()
.protected BasicEList<Adapter> eAdapters
Adapter
s associated with the notifier.protected InternalEObject eContainer
protected int eContainerFeatureID
EOPPOSITE_FEATURE_BASE
minus the feature ID of the container's feature that contains this object.protected BasicEObjectImpl.EPropertiesHolder eProperties
protected EClass eStaticClass()
eStaticClass
in class BasicEObjectImpl
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
eInvoke
in class BasicEObjectImpl
java.lang.reflect.InvocationTargetException
EObject.eInvoke(EOperation, EList<?>)
public EList<Adapter> eAdapters()
Notifier
eAdapters
in interface Notifier
eAdapters
in class BasicNotifierImpl
protected BasicEList<Adapter> eBasicAdapters()
BasicNotifierImpl
null
.eBasicAdapters
in class BasicNotifierImpl
null
.public boolean eDeliver()
Notifier
eDeliver
in interface Notifier
eDeliver
in class BasicNotifierImpl
Notifier.eSetDeliver(boolean)
public void eSetDeliver(boolean deliver)
Notifier
eSetDeliver
in interface Notifier
eSetDeliver
in class BasicNotifierImpl
deliver
- whether or not to deliver.Notifier.eDeliver()
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
eIsProxy
in class BasicEObjectImpl
true
if this object is a proxy or false
, otherwise.Resource.unload()
,
EcoreUtil.resolve(EObject, org.eclipse.emf.ecore.resource.ResourceSet)
public void eSetProxyURI(URI uri)
InternalEObject
resolve
to the actual object.eSetProxyURI
in interface InternalEObject
eSetProxyURI
in class BasicEObjectImpl
uri
- the URI.EcoreUtil.resolve(EObject, org.eclipse.emf.ecore.resource.ResourceSet)
,
Resource.unload()
protected BasicEObjectImpl.EPropertiesHolder eProperties()
eProperties
in class BasicEObjectImpl
protected BasicEObjectImpl.EPropertiesHolder eBasicProperties()
eBasicProperties
in class BasicEObjectImpl
public InternalEObject eInternalContainer()
InternalEObject
null
.
It does not resolve a proxy.eInternalContainer
in interface InternalEObject
eInternalContainer
in class BasicEObjectImpl
EObject.eContainer()
,
InternalEObject.eDirectResource()
public int eContainerFeatureID()
InternalEObject
eContainerFeatureID
in interface InternalEObject
eContainerFeatureID
in class BasicEObjectImpl
EObject.eContainmentFeature()
,
InternalEObject.EOPPOSITE_FEATURE_BASE
protected void eBasicSetContainer(InternalEObject newContainer, int newContainerFeatureID)
eBasicSetContainer
in class BasicEObjectImpl
public EClass eClass()
EObject
The meta class defines the features
available for reflective access.
eClass
in interface EObject
eClass
in class BasicEObjectImpl
EClass.getEAllStructuralFeatures()
public void eSetClass(EClass eClass)
InternalEObject
settings
.
an.eSetClass
in interface InternalEObject
eSetClass
in class BasicEObjectImpl
eClass
- the dynamic meta class.InternalEObject.eSetting(EStructuralFeature)