|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection
java.util.AbstractList
org.eclipse.emf.common.util.DelegatingEList
org.eclipse.emf.common.notify.impl.DelegatingNotifyingListImpl
org.eclipse.emf.ecore.util.DelegatingEcoreEList
org.eclipse.emf.ecore.util.DelegatingFeatureMap
Nested Class Summary | |
static class |
DelegatingFeatureMap.FeatureEIterator
------------------------------------------- |
static class |
DelegatingFeatureMap.FeatureMapEObjectImpl
Temporary for testing purposes only. |
static class |
DelegatingFeatureMap.ResolvingFeatureEIterator
------------------------------------------- |
protected class |
DelegatingFeatureMap.ValueListIteratorImpl
|
Nested classes inherited from class org.eclipse.emf.ecore.util.DelegatingEcoreEList |
DelegatingEcoreEList.Dynamic, DelegatingEcoreEList.Generic, DelegatingEcoreEList.UnmodifiableEList, DelegatingEcoreEList.Unsettable |
Nested classes inherited from class org.eclipse.emf.common.util.DelegatingEList |
DelegatingEList.EIterator, DelegatingEList.EListIterator, DelegatingEList.NonResolvingEIterator, DelegatingEList.NonResolvingEListIterator |
Nested classes inherited from class org.eclipse.emf.ecore.util.FeatureMap.Internal |
FeatureMap.Internal.Wrapper |
Nested classes inherited from class org.eclipse.emf.ecore.util.FeatureMap |
FeatureMap.Entry, FeatureMap.Internal, FeatureMap.ValueListIterator |
Nested classes inherited from class org.eclipse.emf.ecore.util.InternalEList |
InternalEList.Unsettable |
Field Summary | |
protected EStructuralFeature |
eStructuralFeature
|
protected FeatureMapUtil.Validator |
featureMapValidator
|
protected FeatureMap.Internal.Wrapper |
wrapper
|
Fields inherited from class org.eclipse.emf.ecore.util.DelegatingEcoreEList |
owner |
Fields inherited from class java.util.AbstractList |
modCount |
Constructor Summary | |
DelegatingFeatureMap(InternalEObject owner,
EStructuralFeature eStructuralFeature)
|
|
DelegatingFeatureMap(InternalEObject owner,
int featureID)
|
Method Summary | |
void |
add(EStructuralFeature feature,
int index,
Object object)
|
boolean |
add(EStructuralFeature feature,
Object object)
|
void |
add(int index,
EStructuralFeature feature,
Object object)
|
void |
add(int index,
Object object)
Adds the object at the given index in the list. |
boolean |
add(Object object)
Adds the object at the end of the list and returns whether the object was added; if uniqueness is required,
duplicates will be ignored and false will be returned.
|
boolean |
addAll(Collection collection)
Adds each object of the collection to the end of the list. |
boolean |
addAll(EStructuralFeature feature,
Collection collection)
|
boolean |
addAll(EStructuralFeature feature,
int index,
Collection collection)
|
boolean |
addAll(int index,
Collection collection)
Adds each object of the collection at each successive index in the list and returns whether any objects were added. |
boolean |
addAll(int index,
EStructuralFeature feature,
Collection collection)
|
boolean |
addAllUnique(Collection collection)
Adds each object of the collection to the end of the list; it does no uniqueness checking. |
boolean |
addAllUnique(FeatureMap.Entry.Internal[] entries,
int start,
int end)
|
void |
addUnique(EStructuralFeature feature,
int index,
Object object)
|
void |
addUnique(EStructuralFeature feature,
Object object)
|
void |
addUnique(FeatureMap.Entry.Internal entry)
|
void |
addUnique(Object object)
Adds the object without verifying uniqueness. |
NotificationChain |
basicAdd(EStructuralFeature feature,
Object object,
NotificationChain notifications)
|
Iterator |
basicIterator(EStructuralFeature feature)
|
List |
basicList(EStructuralFeature feature)
|
ListIterator |
basicListIterator(EStructuralFeature feature)
|
ListIterator |
basicListIterator(EStructuralFeature feature,
int index)
|
NotificationChain |
basicRemove(EStructuralFeature feature,
Object object,
NotificationChain notifications)
|
NotificationChain |
basicRemove(Object object,
NotificationChain notifications)
Removes the object with without updating the inverse. |
protected boolean |
canContainNull()
Returns ! |
void |
clear(EStructuralFeature feature)
|
boolean |
contains(EStructuralFeature feature,
Object object)
|
boolean |
containsAll(EStructuralFeature feature,
Collection collection)
|
protected FeatureMap.Entry |
createEntry(EStructuralFeature eStructuralFeature,
Object value)
|
protected NotificationImpl |
createNotification(int eventType,
EStructuralFeature feature,
Object oldObject,
Object newObject,
int index,
boolean wasSet)
|
protected FeatureMap.Entry.Internal |
createRawEntry(EStructuralFeature eStructuralFeature,
Object value)
|
void |
doAdd(int index,
Object object)
|
protected boolean |
doAdd(Object object)
|
boolean |
doAddAll(Collection collection)
|
boolean |
doAddAll(int index,
Collection collection)
|
Object |
doSet(int index,
Object object)
|
protected int |
entryIndex(EStructuralFeature feature,
int index)
|
FeatureMap |
featureMap()
|
Object |
get(EStructuralFeature feature,
boolean resolve)
|
Object |
get(EStructuralFeature feature,
int index,
boolean resolve)
|
EStructuralFeature |
getEStructuralFeature()
Returns the specific feature holding a value for the object. |
EStructuralFeature |
getEStructuralFeature(int index)
|
protected EClassifier |
getFeatureType()
|
int |
getModCount()
|
Object |
getValue(int index)
|
FeatureMap.Internal.Wrapper |
getWrapper()
|
protected boolean |
hasInverse()
Returns false . |
protected boolean |
hasShadow()
Returns false . |
int |
indexOf(EStructuralFeature feature,
Object object)
|
NotificationChain |
inverseAdd(Object object,
NotificationChain notifications)
Does nothing and returns the notifications .
|
NotificationChain |
inverseRemove(Object object,
NotificationChain notifications)
Does nothing and returns the notifications .
|
NotificationChain |
inverseTouch(Object object,
NotificationChain notifications)
|
boolean |
isEmpty(EStructuralFeature feature)
|
protected boolean |
isEObject()
|
protected boolean |
isMany(EStructuralFeature feature)
|
protected boolean |
isResolveProxies(EStructuralFeature feature)
|
boolean |
isSet(EStructuralFeature feature)
|
protected boolean |
isUnique()
Returns whether objects are constrained to appear at most once in the list. |
Iterator |
iterator(EStructuralFeature feature)
|
int |
lastIndexOf(EStructuralFeature feature,
Object object)
|
EList |
list(EStructuralFeature feature)
|
ListIterator |
listIterator(EStructuralFeature feature)
|
ListIterator |
listIterator(EStructuralFeature feature,
int index)
|
Object |
move(EStructuralFeature feature,
int targetIndex,
int sourceIndex)
|
void |
move(EStructuralFeature feature,
int index,
Object object)
|
Object |
move(int targetIndex,
int sourceIndex)
Moves the object from the old position to the new position. |
Object |
remove(EStructuralFeature feature,
int index)
|
boolean |
remove(EStructuralFeature feature,
Object object)
|
boolean |
removeAll(EStructuralFeature feature,
Collection collection)
|
protected EObject |
resolveProxy(EObject eObject)
|
Object |
resolveProxy(EStructuralFeature feature,
int entryIndex,
int index,
Object object)
|
boolean |
retainAll(EStructuralFeature feature,
Collection collection)
|
Object |
set(EStructuralFeature feature,
int index,
Object object)
|
void |
set(EStructuralFeature feature,
Object object)
|
Object |
set(int index,
Object object)
Sets the object at the index and returns the old object at the index. |
void |
set(Object newValue)
Set the value held by the feature of the object. |
EStructuralFeature.Setting |
setting(EStructuralFeature feature)
|
Object |
setUnique(EStructuralFeature feature,
int index,
Object object)
|
Object |
setValue(int index,
Object value)
|
void |
setWrapper(FeatureMap.Internal.Wrapper wrapper)
|
NotificationChain |
shadowAdd(Object object,
NotificationChain notifications)
Does nothing and returns the notifications .
|
NotificationChain |
shadowRemove(Object object,
NotificationChain notifications)
Does nothing and returns the notifications .
|
NotificationChain |
shadowSet(Object oldObject,
Object newObject,
NotificationChain notifications)
Does nothing and returns the notifications .
|
protected boolean |
shouldUnset(EStructuralFeature feature,
Object value)
|
int |
size(EStructuralFeature feature)
|
Object[] |
toArray(EStructuralFeature feature)
|
Object[] |
toArray(EStructuralFeature feature,
Object[] array)
|
void |
unset(EStructuralFeature feature)
|
protected Object |
validate(int index,
Object object)
Validates a new content object and returns the validated object. |
FeatureMap.ValueListIterator |
valueListIterator()
|
FeatureMap.ValueListIterator |
valueListIterator(int index)
|
Methods inherited from class org.eclipse.emf.ecore.util.DelegatingEcoreEList |
basicGet, basicIterator, basicList, basicListIterator, basicListIterator, contains, createNotification, createNotification, dispatchNotification, get, getEObject, getFeature, getFeatureID, getInverseEReference, getInverseFeatureClass, getInverseFeatureID, getNotifier, hasInstanceClass, hasManyInverse, hasNavigableInverse, hasProxies, indexOf, isContainment, isInstance, isNotificationRequired, isSet, lastIndexOf, resolve, resolve, toArray, toArray, unset |
Methods inherited from class org.eclipse.emf.common.notify.impl.DelegatingNotifyingListImpl |
addAllUnique, addAllUnique, addAllUnique, addUnique, basicAdd, basicSet, clear, createNotification, createNotificationChain, doAddAllUnique, doAddAllUnique, doAddAllUnique, doAddAllUnique, doAddUnique, doAddUnique, doClear, doMove, doRemove, doRemoveAll, doSetUnique, getFeatureID, remove, removeAll, setUnique |
Methods inherited from class org.eclipse.emf.common.util.DelegatingEList |
containsAll, delegateAdd, delegateAdd, delegateBasicList, delegateClear, delegateContains, delegateContainsAll, delegateEquals, delegateGet, delegateHashCode, delegateIndexOf, delegateIsEmpty, delegateIterator, delegateLastIndexOf, delegateList, delegateListIterator, delegateRemove, delegateSet, delegateSize, delegateToArray, delegateToArray, delegateToString, didAdd, didChange, didClear, didMove, didRemove, didSet, doClear, equalObjects, equals, get, getDuplicates, getNonDuplicates, hashCode, isEmpty, iterator, listIterator, listIterator, move, remove, retainAll, size, toString, useEquals |
Methods inherited from class java.util.AbstractList |
removeRange, subList |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.emf.ecore.util.FeatureMap.Internal |
getEObject |
Methods inherited from interface org.eclipse.emf.common.util.EList |
move |
Methods inherited from interface java.util.List |
clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, size, subList, toArray, toArray |
Methods inherited from interface org.eclipse.emf.ecore.util.InternalEList |
addUnique, basicAdd, basicGet, basicIterator, basicList, basicListIterator, basicListIterator, setUnique |
Methods inherited from interface org.eclipse.emf.ecore.EStructuralFeature.Setting |
get, isSet, unset |
Field Detail |
protected FeatureMap.Internal.Wrapper wrapper
protected final FeatureMapUtil.Validator featureMapValidator
protected final EStructuralFeature eStructuralFeature
Constructor Detail |
public DelegatingFeatureMap(InternalEObject owner, int featureID)
public DelegatingFeatureMap(InternalEObject owner, EStructuralFeature eStructuralFeature)
Method Detail |
public FeatureMap.Internal.Wrapper getWrapper()
getWrapper
in interface FeatureMap.Internal
public void setWrapper(FeatureMap.Internal.Wrapper wrapper)
setWrapper
in interface FeatureMap.Internal
public FeatureMap featureMap()
featureMap
in interface FeatureMap.Internal.Wrapper
protected Object validate(int index, Object object)
DelegatingEList
necessary
and returns the argument object.
Clients may throw additional types of runtime exceptions
in order to handle constraint violations.
validate
in class DelegatingEcoreEList
protected boolean isEObject()
isEObject
in class DelegatingEcoreEList
protected boolean isUnique()
DelegatingEList
false
, but clients can override this to ensure uniqueness of contents.
The performance impact is signifcant: operations such as add
are O(n) as a result requiring uniqueness.
isUnique
in class DelegatingEcoreEList
protected boolean canContainNull()
DelegatingNotifyingListImpl
!DelegatingNotifyingListImpl.hasInverse()
.
canContainNull
in class DelegatingEcoreEList
protected EClassifier getFeatureType()
getFeatureType
in class DelegatingEcoreEList
public EStructuralFeature getEStructuralFeature()
EStructuralFeature.Setting
getEStructuralFeature
in interface EStructuralFeature.Setting
getEStructuralFeature
in class DelegatingEcoreEList
protected FeatureMap.Entry createEntry(EStructuralFeature eStructuralFeature, Object value)
protected FeatureMap.Entry.Internal createRawEntry(EStructuralFeature eStructuralFeature, Object value)
protected NotificationImpl createNotification(int eventType, EStructuralFeature feature, Object oldObject, Object newObject, int index, boolean wasSet)
protected boolean isMany(EStructuralFeature feature)
protected boolean hasInverse()
DelegatingNotifyingListImpl
false
.
hasInverse
in class DelegatingEcoreEList
protected boolean hasShadow()
DelegatingNotifyingListImpl
false
.
hasShadow
in class DelegatingNotifyingListImpl
false
.protected int entryIndex(EStructuralFeature feature, int index)
protected boolean isResolveProxies(EStructuralFeature feature)
public Object resolveProxy(EStructuralFeature feature, int entryIndex, int index, Object object)
resolveProxy
in interface FeatureMap.Internal
protected EObject resolveProxy(EObject eObject)
resolveProxy
in class DelegatingEcoreEList
public int getModCount()
getModCount
in interface FeatureMap.Internal
public EStructuralFeature getEStructuralFeature(int index)
getEStructuralFeature
in interface FeatureMap
public Object getValue(int index)
getValue
in interface FeatureMap
public Object setValue(int index, Object value)
setValue
in interface FeatureMap
public NotificationChain shadowAdd(Object object, NotificationChain notifications)
DelegatingNotifyingListImpl
notifications
.
Clients can override this to update the inverse of a bidirectional relation.
shadowAdd
in class DelegatingNotifyingListImpl
object
- the object that's been added to the list.notifications
- the chain of accumulating notifications.
notifications
.public NotificationChain inverseAdd(Object object, NotificationChain notifications)
DelegatingNotifyingListImpl
notifications
.
Clients can override this to update the inverse of a bidirectional relation.
inverseAdd
in class DelegatingEcoreEList
public NotificationChain shadowRemove(Object object, NotificationChain notifications)
DelegatingNotifyingListImpl
notifications
.
Clients can override this to update the inverse of a bidirectional relation.
shadowRemove
in class DelegatingNotifyingListImpl
object
- the object that's been remove from the list.notifications
- the chain of accumulating notifications.
notifications
.public NotificationChain inverseRemove(Object object, NotificationChain notifications)
DelegatingNotifyingListImpl
notifications
.
Clients can override this to update the inverse of a bidirectional relation.
inverseRemove
in class DelegatingEcoreEList
public NotificationChain shadowSet(Object oldObject, Object newObject, NotificationChain notifications)
DelegatingNotifyingListImpl
notifications
.
Clients can override this to update the inverse of a bidirectional relation.
shadowSet
in class DelegatingNotifyingListImpl
oldObject
- the object that's been removed from the list.newObject
- the object that's been added to the list.notifications
- the chain of accumulating notifications.
notifications
.public NotificationChain inverseTouch(Object object, NotificationChain notifications)
public Object move(int targetIndex, int sourceIndex)
EList
move
in interface EList
move
in class DelegatingNotifyingListImpl
targetIndex
- the new position for the object in the list.sourceIndex
- the old position of the object in the list.
DelegatingNotifyingListImpl.isNotificationRequired()
public Object set(int index, Object object)
DelegatingEList
setUnique
after range checking and after uniqueness
checking.
set
in interface List
set
in class DelegatingEList
index
- the position in question.object
- the object to set.
DelegatingEList.setUnique(int, java.lang.Object)
public Object doSet(int index, Object object)
public boolean add(Object object)
DelegatingEList
uniqueness
is required,
duplicates will be ignored and false
will be returned.
This implementation delegates to addUnique(Object)
after uniqueness checking.
add
in interface List
add
in class DelegatingEList
object
- the object to be added.
DelegatingEList.addUnique(Object)
protected boolean doAdd(Object object)
public void add(int index, Object object)
DelegatingEList
uniqueness
is required,
duplicates will be ignored.
This implementation delegates to addUnique(int, Object)
after uniqueness checking.
add
in interface List
add
in class DelegatingEList
object
- the object to be added.DelegatingEList.addUnique(int, Object)
public void doAdd(int index, Object object)
public boolean addAll(Collection collection)
DelegatingEList
uniqueness
is required,
duplicates will be removed
from the collection,
which could even result in an empty collection.
This implementation delegates to addAllUnique(Collection)
after uniqueness checking.
addAll
in interface List
addAll
in class DelegatingEList
collection
- the collection of objects to be added.DelegatingEList.addAllUnique(Collection)
public boolean doAddAll(Collection collection)
public boolean addAll(int index, Collection collection)
DelegatingEList
uniqueness
is required,
duplicates will be removed
from the collection,
which could even result in an empty collection.
This implementation delegates to addAllUnique(int, Collection)
after uniqueness checking.
addAll
in interface List
addAll
in class DelegatingEList
index
- the index at which to add.collection
- the collection of objects to be added.
DelegatingEList.addAllUnique(int, Collection)
public boolean doAddAll(int index, Collection collection)
public int size(EStructuralFeature feature)
size
in interface FeatureMap.Internal
public boolean isEmpty(EStructuralFeature feature)
isEmpty
in interface FeatureMap.Internal
public boolean contains(EStructuralFeature feature, Object object)
contains
in interface FeatureMap.Internal
public boolean containsAll(EStructuralFeature feature, Collection collection)
containsAll
in interface FeatureMap.Internal
public int indexOf(EStructuralFeature feature, Object object)
indexOf
in interface FeatureMap.Internal
public int lastIndexOf(EStructuralFeature feature, Object object)
lastIndexOf
in interface FeatureMap.Internal
public Iterator iterator(EStructuralFeature feature)
iterator
in interface FeatureMap.Internal
public ListIterator listIterator(EStructuralFeature feature)
listIterator
in interface FeatureMap.Internal
public ListIterator listIterator(EStructuralFeature feature, int index)
listIterator
in interface FeatureMap.Internal
public FeatureMap.ValueListIterator valueListIterator()
valueListIterator
in interface FeatureMap
public FeatureMap.ValueListIterator valueListIterator(int index)
valueListIterator
in interface FeatureMap
public EList list(EStructuralFeature feature)
list
in interface FeatureMap
public EStructuralFeature.Setting setting(EStructuralFeature feature)
setting
in interface FeatureMap.Internal
public List basicList(EStructuralFeature feature)
basicList
in interface FeatureMap.Internal
public Iterator basicIterator(EStructuralFeature feature)
basicIterator
in interface FeatureMap.Internal
public ListIterator basicListIterator(EStructuralFeature feature)
basicListIterator
in interface FeatureMap.Internal
public ListIterator basicListIterator(EStructuralFeature feature, int index)
basicListIterator
in interface FeatureMap.Internal
public Object[] toArray(EStructuralFeature feature)
toArray
in interface FeatureMap.Internal
public Object[] toArray(EStructuralFeature feature, Object[] array)
toArray
in interface FeatureMap.Internal
public void set(EStructuralFeature feature, Object object)
set
in interface FeatureMap
protected boolean shouldUnset(EStructuralFeature feature, Object value)
public void add(int index, EStructuralFeature feature, Object object)
add
in interface FeatureMap
public boolean add(EStructuralFeature feature, Object object)
add
in interface FeatureMap
public void add(EStructuralFeature feature, int index, Object object)
add
in interface FeatureMap.Internal
public boolean addAll(int index, EStructuralFeature feature, Collection collection)
addAll
in interface FeatureMap
public boolean addAll(EStructuralFeature feature, Collection collection)
addAll
in interface FeatureMap
public boolean addAll(EStructuralFeature feature, int index, Collection collection)
addAll
in interface FeatureMap.Internal
public void addUnique(EStructuralFeature feature, Object object)
addUnique
in interface FeatureMap.Internal
public void addUnique(EStructuralFeature feature, int index, Object object)
addUnique
in interface FeatureMap.Internal
public void addUnique(Object object)
InternalEList
addUnique
in interface FeatureMap.Internal
addUnique
in class DelegatingNotifyingListImpl
object
- the object to be added.DelegatingNotifyingListImpl.isNotificationRequired()
,
DelegatingNotifyingListImpl.hasInverse()
,
DelegatingNotifyingListImpl.inverseAdd(java.lang.Object, org.eclipse.emf.common.notify.NotificationChain)
public void addUnique(FeatureMap.Entry.Internal entry)
addUnique
in interface FeatureMap.Internal
public boolean addAllUnique(Collection collection)
DelegatingNotifyingListImpl
addAllUnique(int, Collection)
.
addAllUnique
in interface FeatureMap.Internal
addAllUnique
in class DelegatingNotifyingListImpl
collection
- the collection of objects to be added.DelegatingNotifyingListImpl.inverseAdd(java.lang.Object, org.eclipse.emf.common.notify.NotificationChain)
public boolean addAllUnique(FeatureMap.Entry.Internal[] entries, int start, int end)
addAllUnique
in interface FeatureMap.Internal
public NotificationChain basicAdd(EStructuralFeature feature, Object object, NotificationChain notifications)
basicAdd
in interface FeatureMap.Internal
public boolean remove(EStructuralFeature feature, Object object)
remove
in interface FeatureMap.Internal
public Object remove(EStructuralFeature feature, int index)
remove
in interface FeatureMap.Internal
public boolean removeAll(EStructuralFeature feature, Collection collection)
removeAll
in interface FeatureMap.Internal
public NotificationChain basicRemove(EStructuralFeature feature, Object object, NotificationChain notifications)
basicRemove
in interface FeatureMap.Internal
public boolean retainAll(EStructuralFeature feature, Collection collection)
retainAll
in interface FeatureMap.Internal
public void clear(EStructuralFeature feature)
clear
in interface FeatureMap.Internal
public void move(EStructuralFeature feature, int index, Object object)
move
in interface FeatureMap.Internal
public Object move(EStructuralFeature feature, int targetIndex, int sourceIndex)
move
in interface FeatureMap.Internal
public Object get(EStructuralFeature feature, boolean resolve)
get
in interface FeatureMap
public Object get(EStructuralFeature feature, int index, boolean resolve)
get
in interface FeatureMap.Internal
public Object set(EStructuralFeature feature, int index, Object object)
set
in interface FeatureMap.Internal
public Object setUnique(EStructuralFeature feature, int index, Object object)
setUnique
in interface FeatureMap.Internal
public boolean isSet(EStructuralFeature feature)
isSet
in interface FeatureMap
public void unset(EStructuralFeature feature)
unset
in interface FeatureMap
public NotificationChain basicRemove(Object object, NotificationChain notifications)
InternalEList
basicRemove
in interface InternalEList
basicRemove
in class DelegatingNotifyingListImpl
object
- the object to be removed.
DelegatingNotifyingListImpl.isNotificationRequired()
,
DelegatingNotifyingListImpl.hasInverse()
,
DelegatingNotifyingListImpl.inverseRemove(java.lang.Object, org.eclipse.emf.common.notify.NotificationChain)
public void set(Object newValue)
EStructuralFeature.Setting
set
in interface EStructuralFeature.Setting
set
in class DelegatingEcoreEList
|
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 |