public class MinimalEObjectImpl extends BasicEObjectImpl implements EStructuralFeature.Internal.DynamicValueHolder
Modifier and Type | Class and Description |
---|---|
static class |
MinimalEObjectImpl.Container |
BasicEObjectImpl.EPropertiesHolder, BasicEObjectImpl.EPropertiesHolderBaseImpl, BasicEObjectImpl.EPropertiesHolderImpl
BasicNotifierImpl.EAdapterList<E extends java.lang.Object & Adapter>, BasicNotifierImpl.EObservableAdapterList
InternalEObject.EStore
EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSET
NIL
EOPPOSITE_FEATURE_BASE
Modifier | Constructor and Description |
---|---|
protected |
MinimalEObjectImpl()
Creates a minimal EObject.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
dynamicGet(int dynamicFeatureID)
Returns the value of the feature.
|
void |
dynamicSet(int dynamicFeatureID,
java.lang.Object newValue)
Sets the value of the feature to the new value.
|
void |
dynamicUnset(int dynamicFeatureID)
Unsets the value of the feature.
|
EList<Adapter> |
eAdapters()
Returns list of the adapters associated with this notifier.
|
protected Adapter[] |
eBasicAdapterArray()
Returns the underlying array of adapters.
|
protected BasicNotifierImpl.EObservableAdapterList.Listener[] |
eBasicAdapterListeners() |
protected BasicEList<Adapter> |
eBasicAdapters()
Returns the adapter list, even if it is
null . |
protected boolean |
eBasicHasAdapters()
Returns whether there are any adapters.
|
protected BasicEObjectImpl.EPropertiesHolder |
eBasicProperties() |
protected void |
eBasicSetAdapterArray(Adapter[] eAdapters) |
protected void |
eBasicSetAdapterListeners(BasicNotifierImpl.EObservableAdapterList.Listener[] eAdapterListeners) |
protected void |
eBasicSetContainer(InternalEObject newContainer) |
protected void |
eBasicSetContainer(InternalEObject newContainer,
int newContainerFeatureID) |
protected void |
eBasicSetContainerFeatureID(int newContainerFeatureID) |
protected void |
eBasicSetSettings(java.lang.Object[] settings) |
protected java.lang.Object[] |
eBasicSettings() |
EClass |
eClass()
Returns the meta class.
|
int |
eContainerFeatureID()
Returns the container feature ID.
|
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.
|
boolean |
eDeliver()
Returns whether this notifier will deliver notifications to the adapters.
|
Resource.Internal |
eDirectResource()
Returns the directly containing internal resource, or
null . |
protected EClass |
eDynamicClass() |
protected boolean |
eHasSettings() |
InternalEObject |
eInternalContainer()
Returns the internal container, or
null . |
boolean |
eIsProxy()
Indicates whether this object is a proxy.
|
protected BasicEObjectImpl.EPropertiesHolder |
eProperties() |
URI |
eProxyURI()
Returns the proxy URI of this object.
|
void |
eSetClass(EClass eClass)
Sets the meta class.
|
void |
eSetDeliver(boolean deliver)
Sets whether this notifier will deliver notifications to the adapters.
|
protected void |
eSetDirectResource(Resource.Internal resource) |
void |
eSetProxyURI(URI uri)
Set the proxy URI of this object.
|
protected EStructuralFeature.Internal.DynamicValueHolder |
eSettings() |
eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainerAdapterArray, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDynamicBasicRemoveFromContainer, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicInvoke, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eGet, eInternalResource, eInverseAdd, eInverseAdd, eInverseRemove, eInverseRemove, eInvocationDelegate, eInvoke, eInvoke, eIsSet, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSet, eSetResource, eSetStore, eSetting, eSettingDelegate, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticClass, eStaticFeatureCount, eStaticOperationCount, eStore, eUnset, eUnset, eURIFragmentSegment, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues, toString
eNotificationRequired, eNotify
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
eNotificationRequired
protected BasicEObjectImpl.EPropertiesHolder eProperties()
eProperties
in class BasicEObjectImpl
protected BasicEObjectImpl.EPropertiesHolder eBasicProperties()
eBasicProperties
in class BasicEObjectImpl
protected BasicEList<Adapter> eBasicAdapters()
BasicNotifierImpl
null
.eBasicAdapters
in class BasicNotifierImpl
null
.public EList<Adapter> eAdapters()
Notifier
eAdapters
in interface Notifier
eAdapters
in class BasicNotifierImpl
protected Adapter[] eBasicAdapterArray()
BasicNotifierImpl
null
represents the lack of any adapters.
This array may not be modified by the caller
and must be guaranteed not to be modified even if the list of adapters
is modified.eBasicAdapterArray
in class BasicNotifierImpl
protected void eBasicSetAdapterArray(Adapter[] eAdapters)
protected boolean eBasicHasAdapters()
BasicNotifierImpl
eBasicHasAdapters
in class BasicNotifierImpl
protected BasicNotifierImpl.EObservableAdapterList.Listener[] eBasicAdapterListeners()
protected void eBasicSetAdapterListeners(BasicNotifierImpl.EObservableAdapterList.Listener[] eAdapterListeners)
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 URI eProxyURI()
InternalEObject
resolve
to the actual object.eProxyURI
in interface InternalEObject
eProxyURI
in class BasicEObjectImpl
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
eSetProxyURI
in class BasicEObjectImpl
uri
- the URI.EcoreUtil.resolve(EObject, org.eclipse.emf.ecore.resource.ResourceSet)
,
Resource.unload()
public InternalEObject eInternalContainer()
InternalEObject
null
.
It does not resolve a proxy.eInternalContainer
in interface InternalEObject
eInternalContainer
in class BasicEObjectImpl
EObject.eContainer()
,
InternalEObject.eDirectResource()
protected void eBasicSetContainer(InternalEObject newContainer)
public int eContainerFeatureID()
InternalEObject
eContainerFeatureID
in interface InternalEObject
eContainerFeatureID
in class BasicEObjectImpl
EObject.eContainmentFeature()
,
InternalEObject.EOPPOSITE_FEATURE_BASE
protected void eBasicSetContainerFeatureID(int newContainerFeatureID)
protected void eBasicSetContainer(InternalEObject newContainer, int newContainerFeatureID)
eBasicSetContainer
in class BasicEObjectImpl
protected EClass eDynamicClass()
eDynamicClass
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)
protected boolean eHasSettings()
eHasSettings
in class BasicEObjectImpl
protected java.lang.Object[] eBasicSettings()
protected void eBasicSetSettings(java.lang.Object[] settings)
protected EStructuralFeature.Internal.DynamicValueHolder eSettings()
eSettings
in class BasicEObjectImpl
public Resource.Internal eDirectResource()
InternalEObject
null
.eDirectResource
in interface InternalEObject
eDirectResource
in class BasicEObjectImpl
EObject.eResource()
,
InternalEObject.eInternalResource()
,
InternalEObject.eInternalContainer()
protected void eSetDirectResource(Resource.Internal resource)
eSetDirectResource
in class BasicEObjectImpl
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
eContents
in class BasicEObjectImpl
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
eCrossReferences
in class BasicEObjectImpl
EObject.eContents()
,
EClass.getEAllReferences()
,
EClass.getEAllContainments()
,
EObject.eGet(EStructuralFeature)
,
EcoreUtil.CrossReferencer
public java.lang.Object dynamicGet(int dynamicFeatureID)
EStructuralFeature.Internal.DynamicValueHolder
dynamicGet
in interface EStructuralFeature.Internal.DynamicValueHolder
dynamicFeatureID
- the feature's index in the cached dynamic values.public void dynamicSet(int dynamicFeatureID, java.lang.Object newValue)
EStructuralFeature.Internal.DynamicValueHolder
dynamicSet
in interface EStructuralFeature.Internal.DynamicValueHolder
dynamicFeatureID
- the feature's index in the cached dynamic values.newValue
- the new value for the feature.public void dynamicUnset(int dynamicFeatureID)
EStructuralFeature.Internal.DynamicValueHolder
dynamicUnset
in interface EStructuralFeature.Internal.DynamicValueHolder
dynamicFeatureID
- the feature's index in the cached dynamic values.