|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.common.util.BasicEMap
org.eclipse.emf.ecore.util.EcoreEMap
Nested Class Summary | |
protected class |
EcoreEMap.DelegateEObjectContainmentEList
|
static class |
EcoreEMap.Unsettable
|
Nested classes inherited from class org.eclipse.emf.common.util.BasicEMap |
BasicEMap.BasicEMapIterator, BasicEMap.BasicEMapKeyIterator, BasicEMap.BasicEMapValueIterator, BasicEMap.DelegatingMap, BasicEMap.Entry, BasicEMap.EntryImpl, BasicEMap.View |
Nested classes inherited from class org.eclipse.emf.common.util.EMap |
EMap.InternalMapView |
Field Summary | |
protected 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,
Class entryClass,
EList delegateEList)
|
|
EcoreEMap(EClass entryEClass,
Class entryClass,
InternalEObject owner,
int featureID)
|
Method Summary | |
void |
addUnique(int index,
Object object)
Add the object without verifying uniqueness. |
void |
addUnique(Object object)
Add the object without verifying uniqueness. |
NotificationChain |
basicAdd(Object object,
NotificationChain notifications)
Add the object without updating the inverse. |
Object |
basicGet(int index)
Returns the unresolved value. |
Iterator |
basicIterator()
Returns an iterator that yields unresolved values. |
List |
basicList()
Returns an unmodifiable list that yields unresolved values. |
ListIterator |
basicListIterator()
Returns a list iterator that yields unresolved values. |
ListIterator |
basicListIterator(int index)
Returns a list iterator that yields unresolved values. |
NotificationChain |
basicRemove(Object object,
NotificationChain notifications)
Remove the object with without updating the inverse. |
Object |
get(boolean resolve)
Returns the value held by the feature of the object; it optionally resolves the value. |
EObject |
getEObject()
Returns the object holding a value. |
EStructuralFeature |
getEStructuralFeature()
Returns the specific feature holding a value for the object. |
protected void |
initializeDelegateEList()
Initializes the BasicEMap.delegateEList .
|
boolean |
isSet()
Returns whether a value is held by the feature of the object. |
protected BasicEMap.Entry |
newEntry(int hash,
Object key,
Object value)
Returns a new entry. |
protected BasicEList |
newList()
Returns a new allocated list of entries. |
void |
set(Object value)
Set the value held by the feature of the object. |
Object |
setUnique(int index,
Object object)
Set the object without verifying uniqueness. |
void |
unset()
Unsets the value held by the feature of the object. |
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, 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 |
protected EClass entryEClass
protected Class entryClass
Constructor Detail |
public EcoreEMap(EClass entryEClass, Class entryClass, InternalEObject owner, int featureID)
public EcoreEMap(EClass entryEClass, Class entryClass, EList delegateEList)
Method Detail |
protected void initializeDelegateEList()
BasicEMap
BasicEMap.delegateEList
.
This implementation illustrates the precise pattern that is used to
delegate a list implementation's callback methods to the map implementation.
initializeDelegateEList
in class BasicEMap
protected BasicEList newList()
BasicEMap
newEntry
.
newList
in class BasicEMap
BasicEMap.newEntry(int, Object, Object)
protected BasicEMap.Entry newEntry(int hash, Object key, Object value)
BasicEMap
validated
and the value is validated
.
Clients may override this to create typed storage.
The type must be kept in synch with newEntry
.
newEntry
in class BasicEMap
hash
- the cached hash code of the key.key
- the key.value
- the value.
BasicEMap.newList()
public Object basicGet(int index)
InternalEList
basicGet
in interface InternalEList
public List basicList()
InternalEList
basicList
in interface InternalEList
public Iterator basicIterator()
basicIterator
in interface InternalEList
public ListIterator basicListIterator()
basicListIterator
in interface InternalEList
public ListIterator basicListIterator(int index)
basicListIterator
in interface InternalEList
public NotificationChain basicRemove(Object object, NotificationChain notifications)
basicRemove
in interface InternalEList
public NotificationChain basicAdd(Object object, NotificationChain notifications)
basicAdd
in interface InternalEList
public void addUnique(Object object)
addUnique
in interface InternalEList
public void addUnique(int index, Object object)
addUnique
in interface InternalEList
public Object setUnique(int index, Object object)
setUnique
in interface InternalEList
public EObject getEObject()
EStructuralFeature.Setting
getEObject
in interface EStructuralFeature.Setting
public EStructuralFeature getEStructuralFeature()
EStructuralFeature.Setting
getEStructuralFeature
in interface EStructuralFeature.Setting
public Object get(boolean resolve)
EStructuralFeature.Setting
resolves
the value.
get
in interface EStructuralFeature.Setting
resolve
- whether to resolve.
EObject.eGet(EStructuralFeature, boolean)
public void set(Object value)
EStructuralFeature.Setting
set
in interface EStructuralFeature.Setting
value
- the newValue.EObject.eSet(EStructuralFeature, Object)
public boolean isSet()
InternalEList.Unsettable
isSet
in interface InternalEList.Unsettable
EObject.eIsSet(org.eclipse.emf.ecore.EStructuralFeature)
public void unset()
InternalEList.Unsettable
unset
in interface InternalEList.Unsettable
EObject.eUnset(org.eclipse.emf.ecore.EStructuralFeature)
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |