org.eclipse.emf.ecore.util
Class EcoreEMap

java.lang.Object
  |
  +--org.eclipse.emf.common.util.BasicEMap
        |
        +--org.eclipse.emf.ecore.util.EcoreEMap
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, EList, EMap, InternalEList, java.util.List, java.io.Serializable

public class EcoreEMap
extends BasicEMap
implements InternalEList

See Also:
Serialized Form

Inner Class Summary
protected  class EcoreEMap.DelegateEObjectContainmentEList
           
 
Inner classes inherited from class org.eclipse.emf.common.util.BasicEMap
BasicEMap.BasicEMapIterator, BasicEMap.BasicEMapKeyIterator, BasicEMap.BasicEMapValueIterator, BasicEMap.DelegatingMap, BasicEMap.Entry, BasicEMap.EntryImpl, BasicEMap.View
 
Inner classes inherited from class org.eclipse.emf.ecore.util.InternalEList
InternalEList.Unsettable
 
Field Summary
protected  java.lang.Class entryClass
           
protected  EClass entryEClass
           
 
Fields inherited from class org.eclipse.emf.common.util.BasicEMap
delegateEList, entryData, modCount, size, view
 
Constructor Summary
EcoreEMap(EClass entryEClass, java.lang.Class entryClass, InternalEObject owner, int featureID)
           
 
Method Summary
 void addUnique(int index, java.lang.Object object)
          Add the object without verifying uniqueness.
 void addUnique(java.lang.Object object)
          Add the object without verifying uniqueness.
 NotificationChain basicAdd(java.lang.Object object, NotificationChain notifications)
          Add the object without updating the inverse.
 java.util.Iterator basicIterator()
          Returns an iterator that yields unresolved values.
 java.util.List basicList()
          Returns an unmodifiable list that yields unresolved values.
 java.util.ListIterator basicListIterator()
          Returns a list iterator that yields unresolved values.
 java.util.ListIterator basicListIterator(int index)
          Returns a list iterator that yields unresolved values.
 NotificationChain basicRemove(java.lang.Object object, NotificationChain notifications)
          Remove the object with without updating the inverse.
protected  void initializeDelegateEList()
          Initializes the BasicEMap.delegateEList.
protected  BasicEMap.Entry newEntry(int hash, java.lang.Object key, java.lang.Object value)
          Returns a new entry.
protected  BasicEList newList()
          Returns a new allocated list of entries.
 java.lang.Object setUnique(int index, java.lang.Object object)
          Set the object without verifying uniqueness.
 
Methods inherited from class org.eclipse.emf.common.util.BasicEMap
add, add, addAll, addAll, clear, clone, contains, containsAll, containsKey, containsValue, didAdd, didClear, didModify, didRemove, doClear, doMove, doPut, doRemove, ensureEntryDataExists, entryForKey, entryIndexForKey, entrySet, equals, get, get, grow, hashCode, hashOf, indexOf, indexOf, indexOfKey, isEmpty, iterator, keySet, lastIndexOf, listIterator, listIterator, map, move, move, newEntryData, put, putAll, putEntry, remove, remove, removeAll, removeEntry, removeKey, resolve, retainAll, set, size, subList, toArray, toArray, toString, useEqualsForKey, useEqualsForValue, validateKey, validateValue, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.emf.common.util.EList
move, move
 
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
 

Field Detail

entryEClass

protected EClass entryEClass

entryClass

protected java.lang.Class entryClass
Constructor Detail

EcoreEMap

public EcoreEMap(EClass entryEClass,
                 java.lang.Class entryClass,
                 InternalEObject owner,
                 int featureID)
Method Detail

initializeDelegateEList

protected void initializeDelegateEList()
Description copied from class: BasicEMap
Initializes the BasicEMap.delegateEList. This implementation illustrates the precise pattern that is used to delegate a list implementation's callback methods to the map implementation.
Overrides:
initializeDelegateEList in class BasicEMap

newList

protected BasicEList newList()
Description copied from class: BasicEMap
Returns a new allocated list of entries. Clients may override this to create typed storage. The cost of type checking via a typed array is negligable. The type must be kept in synch with newEntry.
Overrides:
newList in class BasicEMap
Following copied from class: org.eclipse.emf.common.util.BasicEMap
Returns:
a new list of entries.
See Also:
BasicEMap.newEntry(int, Object, Object)

newEntry

protected BasicEMap.Entry newEntry(int hash,
                                   java.lang.Object key,
                                   java.lang.Object value)
Description copied from class: BasicEMap
Returns a new entry. The key is validated and the value is validated. Clients may override this to create typed storage. The type must be kept in synch with newEntry.
Overrides:
newEntry in class BasicEMap
Following copied from class: org.eclipse.emf.common.util.BasicEMap
Parameters:
hash - the cached hash code of the key.
key - the key.
value - the value.
Returns:
a new entry.
See Also:
BasicEMap.newList()

basicList

public java.util.List basicList()
Description copied from interface: InternalEList
Returns an unmodifiable list that yields unresolved values.
Specified by:
basicList in interface InternalEList

basicIterator

public java.util.Iterator basicIterator()
Returns an iterator that yields unresolved values.
Specified by:
basicIterator in interface InternalEList

basicListIterator

public java.util.ListIterator basicListIterator()
Returns a list iterator that yields unresolved values.
Specified by:
basicListIterator in interface InternalEList

basicListIterator

public java.util.ListIterator basicListIterator(int index)
Returns a list iterator that yields unresolved values.
Specified by:
basicListIterator in interface InternalEList

basicRemove

public NotificationChain basicRemove(java.lang.Object object,
                                     NotificationChain notifications)
Remove the object with without updating the inverse.
Specified by:
basicRemove in interface InternalEList

basicAdd

public NotificationChain basicAdd(java.lang.Object object,
                                  NotificationChain notifications)
Add the object without updating the inverse.
Specified by:
basicAdd in interface InternalEList

addUnique

public void addUnique(java.lang.Object object)
Add the object without verifying uniqueness.
Specified by:
addUnique in interface InternalEList

addUnique

public void addUnique(int index,
                      java.lang.Object object)
Add the object without verifying uniqueness.
Specified by:
addUnique in interface InternalEList

setUnique

public java.lang.Object setUnique(int index,
                                  java.lang.Object object)
Set the object without verifying uniqueness.
Specified by:
setUnique in interface InternalEList

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