org.eclipse.emf.ecore.impl
Class DynamicEObjectImpl.BasicEMapEntry

java.lang.Object
  extended byorg.eclipse.emf.common.notify.impl.BasicNotifierImpl
      extended byorg.eclipse.emf.ecore.impl.BasicEObjectImpl
          extended byorg.eclipse.emf.ecore.impl.EObjectImpl
              extended byorg.eclipse.emf.ecore.impl.DynamicEObjectImpl
                  extended byorg.eclipse.emf.ecore.impl.DynamicEObjectImpl.BasicEMapEntry
All Implemented Interfaces:
BasicEMap.Entry, EObject, EStructuralFeature.Internal.DynamicValueHolder, InternalEObject, Map.Entry, Notifier
Enclosing class:
DynamicEObjectImpl

public static final class DynamicEObjectImpl.BasicEMapEntry
extends DynamicEObjectImpl
implements BasicEMap.Entry


Nested Class Summary
 
Nested classes inherited from class org.eclipse.emf.ecore.impl.DynamicEObjectImpl
DynamicEObjectImpl.BasicEMapEntry, DynamicEObjectImpl.DynamicEPropertiesHolderImpl
 
Nested classes inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
BasicEObjectImpl.EPropertiesHolder, BasicEObjectImpl.EPropertiesHolderBaseImpl, BasicEObjectImpl.EPropertiesHolderImpl
 
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
protected  int hash
           
protected  EStructuralFeature keyFeature
           
protected  EStructuralFeature valueFeature
           
 
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
DynamicEObjectImpl.BasicEMapEntry()
          Creates a dynamic EObject.
DynamicEObjectImpl.BasicEMapEntry(EClass eClass)
          Creates a dynamic EObject.
 
Method Summary
 void eSetClass(EClass eClass)
          Sets the meta class.
 int getHash()
          Returns the hash code of the key.
 Object getKey()
           
 Object getValue()
           
 void setHash(int hash)
          Sets the hash code of the key.
 void setKey(Object key)
          Sets the key.
 Object setValue(Object value)
           
 
Methods inherited from class org.eclipse.emf.ecore.impl.DynamicEObjectImpl
dynamicGet, dynamicSet, dynamicUnset, eClass, eDerivedStructuralFeatureID, eDynamicClass, eHasSettings, eProperties, eSettings, eStaticFeatureCount
 
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eContainerFeatureID, eDeliver, eInternalContainer, 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, 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, eSetStore, eSetting, eSettingDelegate, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStore, 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 java.util.Map.Entry
equals, hashCode
 
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

hash

protected int hash

keyFeature

protected EStructuralFeature keyFeature

valueFeature

protected EStructuralFeature valueFeature
Constructor Detail

DynamicEObjectImpl.BasicEMapEntry

public DynamicEObjectImpl.BasicEMapEntry()
Creates a dynamic EObject.


DynamicEObjectImpl.BasicEMapEntry

public DynamicEObjectImpl.BasicEMapEntry(EClass eClass)
Creates a dynamic EObject.

Method Detail

getKey

public Object getKey()
Specified by:
getKey in interface Map.Entry

setKey

public void setKey(Object key)
Description copied from interface: BasicEMap.Entry
Sets the key. This should only be called by the map implementation, since the key of an entry already in the map must be immutable.

Specified by:
setKey in interface BasicEMap.Entry
Parameters:
key - the key.

getHash

public int getHash()
Description copied from interface: BasicEMap.Entry
Returns the hash code of the key. Only the map implementation would really care.

Specified by:
getHash in interface BasicEMap.Entry

setHash

public void setHash(int hash)
Description copied from interface: BasicEMap.Entry
Sets the hash code of the key. This should only be called by the map implementation, since the hash code of the key of an entry already in the map must be immutable.

Specified by:
setHash in interface BasicEMap.Entry
Parameters:
hash - the hash.

getValue

public Object getValue()
Specified by:
getValue in interface Map.Entry

setValue

public Object setValue(Object value)
Specified by:
setValue in interface Map.Entry

eSetClass

public void eSetClass(EClass eClass)
Description copied from interface: InternalEObject
Sets the meta class. An object with a set meta class is, by definition, a dynamic instance; it will support dynamic settings. an.

Specified by:
eSetClass in interface InternalEObject
Overrides:
eSetClass in class DynamicEObjectImpl

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