org.eclipse.emf.ecore.impl
Class DynamicEStoreEObjectImpl

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.BasicNotifierImpl
      extended by org.eclipse.emf.ecore.impl.BasicEObjectImpl
          extended by org.eclipse.emf.ecore.impl.EObjectImpl
              extended by org.eclipse.emf.ecore.impl.DynamicEObjectImpl
                  extended by org.eclipse.emf.ecore.impl.DynamicEStoreEObjectImpl
All Implemented Interfaces:
Notifier, EObject, EStructuralFeature.Internal.DynamicValueHolder, InternalEObject

public class DynamicEStoreEObjectImpl
extends DynamicEObjectImpl

An implementation of 'EObject' that delegates to a store.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.DynamicEObjectImpl
DynamicEObjectImpl.BasicEMapEntry<K,V>, DynamicEObjectImpl.DynamicEPropertiesHolderImpl
 
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
BasicEObjectImpl.EPropertiesHolder, BasicEObjectImpl.EPropertiesHolderBaseImpl, BasicEObjectImpl.EPropertiesHolderImpl
 
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
BasicNotifierImpl.EAdapterList<E extends java.lang.Object & Adapter>
 
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject
InternalEObject.EStore
 
Field Summary
protected  InternalEObject.EStore eStore
           
protected static InternalEObject EUNINITIALIZED_CONTAINER
           
 
Fields inherited from class org.eclipse.emf.ecore.impl.DynamicEObjectImpl
eClass, ENO_SETTINGS, eSettings
 
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXY
 
Fields inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSET
 
Fields inherited from interface org.eclipse.emf.ecore.EStructuralFeature.Internal.DynamicValueHolder
NIL
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
DynamicEStoreEObjectImpl()
          Creates a store-based EObject.
DynamicEStoreEObjectImpl(EClass eClass)
          Creates a store-based EObject.
DynamicEStoreEObjectImpl(EClass eClass, InternalEObject.EStore eStore)
          Creates a store-based EObject.
DynamicEStoreEObjectImpl(InternalEObject.EStore eStore)
          Creates a store-based EObject.
 
Method Summary
protected  FeatureMap createFeatureMap(EStructuralFeature eStructuralFeature)
           
protected
<T> EList<T>
createList(EStructuralFeature eStructuralFeature)
           
 java.lang.Object dynamicGet(int dynamicFeatureID)
          Returns the value of the feature.
 void dynamicSet(int dynamicFeatureID, java.lang.Object value)
          Sets the value of the feature to the new value.
 void dynamicUnset(int dynamicFeatureID)
          Unsets the value of the feature.
 int eContainerFeatureID()
          Returns the container feature ID.
 boolean eDynamicIsSet(EStructuralFeature eStructuralFeature)
           
protected  void eInitializeContainer()
           
 InternalEObject eInternalContainer()
          Returns the internal container, or null.
protected  boolean eIsCaching()
           
 void eSetStore(InternalEObject.EStore store)
          Set the store associated with this object.
 InternalEObject.EStore eStore()
          Returns the store associated with this object.
 
Methods inherited from class org.eclipse.emf.ecore.impl.DynamicEObjectImpl
eClass, eDerivedStructuralFeatureID, eDynamicClass, eHasSettings, eProperties, eSetClass, eSettings, eStaticFeatureCount
 
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eDeliver, eIsProxy, eSetDeliver, eSetProxyURI, eStaticClass
 
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eGet, eInternalResource, eInverseAdd, eInverseAdd, eInverseRemove, eInverseRemove, eIsSet, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSet, eSetDirectResource, eSetResource, eSetting, eSettingDelegate, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eUnset, eUnset, eURIFragmentSegment, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues, toString
 
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eNotificationRequired, eNotify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eNotify
 
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject
eNotificationRequired
 

Field Detail

EUNINITIALIZED_CONTAINER

protected static final InternalEObject EUNINITIALIZED_CONTAINER

eStore

protected InternalEObject.EStore eStore
Constructor Detail

DynamicEStoreEObjectImpl

public DynamicEStoreEObjectImpl()
Creates a store-based EObject.


DynamicEStoreEObjectImpl

public DynamicEStoreEObjectImpl(InternalEObject.EStore eStore)
Creates a store-based EObject.


DynamicEStoreEObjectImpl

public DynamicEStoreEObjectImpl(EClass eClass)
Creates a store-based EObject.


DynamicEStoreEObjectImpl

public DynamicEStoreEObjectImpl(EClass eClass,
                                InternalEObject.EStore eStore)
Creates a store-based EObject.

Method Detail

eIsCaching

protected boolean eIsCaching()

dynamicGet

public java.lang.Object dynamicGet(int dynamicFeatureID)
Description copied from interface: EStructuralFeature.Internal.DynamicValueHolder
Returns the value of the feature.

Specified by:
dynamicGet in interface EStructuralFeature.Internal.DynamicValueHolder
Overrides:
dynamicGet in class DynamicEObjectImpl
Parameters:
dynamicFeatureID - the feature's index in the cached dynamic values.
Returns:
the value of the feature.

dynamicSet

public void dynamicSet(int dynamicFeatureID,
                       java.lang.Object value)
Description copied from interface: EStructuralFeature.Internal.DynamicValueHolder
Sets the value of the feature to the new value.

Specified by:
dynamicSet in interface EStructuralFeature.Internal.DynamicValueHolder
Overrides:
dynamicSet in class DynamicEObjectImpl
Parameters:
dynamicFeatureID - the feature's index in the cached dynamic values.
value - the new value for the feature.

dynamicUnset

public void dynamicUnset(int dynamicFeatureID)
Description copied from interface: EStructuralFeature.Internal.DynamicValueHolder
Unsets the value of the feature.

Specified by:
dynamicUnset in interface EStructuralFeature.Internal.DynamicValueHolder
Overrides:
dynamicUnset in class DynamicEObjectImpl
Parameters:
dynamicFeatureID - the feature's index in the cached dynamic values.

eDynamicIsSet

public boolean eDynamicIsSet(EStructuralFeature eStructuralFeature)
Overrides:
eDynamicIsSet in class BasicEObjectImpl

createList

protected <T> EList<T> createList(EStructuralFeature eStructuralFeature)

createFeatureMap

protected FeatureMap createFeatureMap(EStructuralFeature eStructuralFeature)

eInternalContainer

public InternalEObject eInternalContainer()
Description copied from interface: InternalEObject
Returns the internal container, or null. It does not resolve a proxy.

Specified by:
eInternalContainer in interface InternalEObject
Overrides:
eInternalContainer in class EObjectImpl
Returns:
the internal container.
See Also:
EObject.eContainer(), InternalEObject.eDirectResource()

eContainerFeatureID

public int eContainerFeatureID()
Description copied from interface: InternalEObject
Returns the container feature ID. If the container isn't a navigable feature, this will be a negative ID indicating the inverse of the containment feature's ID.

Specified by:
eContainerFeatureID in interface InternalEObject
Overrides:
eContainerFeatureID in class EObjectImpl
Returns:
the container feature ID.
See Also:
EObject.eContainmentFeature(), InternalEObject.EOPPOSITE_FEATURE_BASE

eInitializeContainer

protected void eInitializeContainer()

eStore

public InternalEObject.EStore eStore()
Description copied from interface: InternalEObject
Returns the store associated with this object.

Specified by:
eStore in interface InternalEObject
Overrides:
eStore in class BasicEObjectImpl
Returns:
the store associated with this object.

eSetStore

public void eSetStore(InternalEObject.EStore store)
Description copied from interface: InternalEObject
Set the store associated with this object. Most objects will not support this.

Specified by:
eSetStore in interface InternalEObject
Overrides:
eSetStore in class BasicEObjectImpl
Parameters:
store - the store to associate with this object.

Copyright 2001-2006 IBM Corporation and others.
All Rights Reserved.