|
|||||||||||
| 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.BasicEList
org.eclipse.emf.common.notify.impl.NotifyingListImpl
org.eclipse.emf.ecore.util.EcoreEList
org.eclipse.emf.ecore.util.EDataTypeEList
org.eclipse.emf.ecore.util.BasicFeatureMap
| Nested Class Summary | |
static class |
BasicFeatureMap.FeatureEIterator
------------------------------------------- |
static class |
BasicFeatureMap.FeatureMapEObjectImpl
Temporary for testing purposes only. |
static class |
BasicFeatureMap.ResolvingFeatureEIterator
------------------------------------------- |
protected class |
BasicFeatureMap.ValueListIteratorImpl
|
| Nested classes inherited from class org.eclipse.emf.ecore.util.EDataTypeEList |
EDataTypeEList.Unsettable |
| Nested classes inherited from class org.eclipse.emf.ecore.util.EcoreEList |
EcoreEList.Dynamic, EcoreEList.Generic, EcoreEList.UnmodifiableEList |
| Nested classes inherited from class org.eclipse.emf.common.util.BasicEList |
BasicEList.BasicIndexOutOfBoundsException, BasicEList.EIterator, BasicEList.EListIterator, BasicEList.FastCompare, BasicEList.NonResolvingEIterator, BasicEList.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 FeatureMapUtil.Validator |
featureMapValidator
|
protected FeatureMap.Internal.Wrapper |
wrapper
|
| Fields inherited from class org.eclipse.emf.ecore.util.EDataTypeEList |
featureID |
| Fields inherited from class org.eclipse.emf.ecore.util.EcoreEList |
dataClass, owner |
| Fields inherited from class org.eclipse.emf.common.util.BasicEList |
data, size |
| Fields inherited from class java.util.AbstractList |
modCount |
| Constructor Summary | |
BasicFeatureMap(InternalEObject owner,
int featureID)
|
|
BasicFeatureMap(InternalEObject owner,
int featureID,
EStructuralFeature eStructuralFeature)
|
|
| 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)
|
boolean |
addAllUnique(int index,
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. |
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(int index)
|
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(FeatureMap.Entry.Internal entry,
NotificationChain notifications)
|
NotificationChain |
inverseAdd(Object object,
NotificationChain notifications)
Does nothing and returns the notifications.
|
NotificationChain |
inverseRemove(FeatureMap.Entry.Internal entry,
NotificationChain 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 |
isMany(EStructuralFeature feature)
|
protected boolean |
isResolveProxies(EStructuralFeature feature)
|
boolean |
isSet(EStructuralFeature feature)
|
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. |
protected Object[] |
newData(int capacity)
Returns new allocated data storage. |
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(FeatureMap.Entry.Internal entry,
NotificationChain notifications)
|
NotificationChain |
shadowAdd(Object object,
NotificationChain notifications)
Does nothing and returns the notifications.
|
NotificationChain |
shadowRemove(FeatureMap.Entry.Internal entry,
NotificationChain 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.EDataTypeEList |
getFeatureID, isEObject, resolve |
| Methods inherited from class org.eclipse.emf.ecore.util.EcoreEList |
basicIterator, basicList, basicListIterator, basicListIterator, contains, createNotification, createNotification, dispatchNotification, get, getEObject, getEStructuralFeature, getFeature, getFeatureType, 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.NotifyingListImpl |
addAllUnique, addAllUnique, addAllUnique, addUnique, basicAdd, basicSet, canContainNull, 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.BasicEList |
assign, basicGet, clone, containsAll, data, didAdd, didChange, didClear, didMove, didRemove, didSet, equalObjects, equals, get, getDuplicates, getNonDuplicates, grow, hashCode, isEmpty, isUnique, iterator, listIterator, listIterator, move, remove, retainAll, setData, shrink, size, toString, useEquals |
| Methods inherited from class java.util.AbstractList |
removeRange, subList |
| Methods inherited from class java.lang.Object |
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, getEStructuralFeature, isSet, unset |
| Field Detail |
protected FeatureMap.Internal.Wrapper wrapper
protected final FeatureMapUtil.Validator featureMapValidator
| Constructor Detail |
public BasicFeatureMap(InternalEObject owner,
int featureID)
public BasicFeatureMap(InternalEObject owner,
int featureID,
EStructuralFeature eStructuralFeature)
| Method Detail |
public FeatureMap.Internal.Wrapper getWrapper()
getWrapper in interface FeatureMap.Internalpublic void setWrapper(FeatureMap.Internal.Wrapper wrapper)
setWrapper in interface FeatureMap.Internalpublic FeatureMap featureMap()
featureMap in interface FeatureMap.Internal.Wrapperprotected Object[] newData(int capacity)
BasicEList
newData in class EcoreEList
protected Object validate(int index,
Object object)
BasicEListnecessary and returns the argument object.
Clients may throw additional types of runtime exceptions
in order to handle constraint violations.
validate in class EcoreEList
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()
NotifyingListImplfalse.
hasInverse in class NotifyingListImplfalse.protected boolean hasShadow()
NotifyingListImplfalse.
hasShadow in class NotifyingListImplfalse.
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.Internalprotected EObject resolveProxy(EObject eObject)
resolveProxy in class EcoreEListpublic int getModCount()
getModCount in interface FeatureMap.Internalpublic EStructuralFeature getEStructuralFeature(int index)
getEStructuralFeature in interface FeatureMappublic 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)
NotifyingListImplnotifications.
Clients can override this to update the inverse of a bidirectional relation.
shadowAdd in class NotifyingListImplobject - the object that's been added to the list.notifications - the chain of accumulating notifications.
notifications.
public NotificationChain shadowAdd(FeatureMap.Entry.Internal entry,
NotificationChain notifications)
public NotificationChain inverseAdd(Object object,
NotificationChain notifications)
NotifyingListImplnotifications.
Clients can override this to update the inverse of a bidirectional relation.
inverseAdd in class EcoreEList
public NotificationChain inverseAdd(FeatureMap.Entry.Internal entry,
NotificationChain notifications)
public NotificationChain shadowRemove(Object object,
NotificationChain notifications)
NotifyingListImplnotifications.
Clients can override this to update the inverse of a bidirectional relation.
shadowRemove in class NotifyingListImplobject - the object that's been remove from the list.notifications - the chain of accumulating notifications.
notifications.
public NotificationChain shadowRemove(FeatureMap.Entry.Internal entry,
NotificationChain notifications)
public NotificationChain inverseRemove(Object object,
NotificationChain notifications)
NotifyingListImplnotifications.
Clients can override this to update the inverse of a bidirectional relation.
inverseRemove in class EcoreEList
public NotificationChain inverseRemove(FeatureMap.Entry.Internal entry,
NotificationChain notifications)
public NotificationChain shadowSet(Object oldObject,
Object newObject,
NotificationChain notifications)
NotifyingListImplnotifications.
Clients can override this to update the inverse of a bidirectional relation.
shadowSet in class NotifyingListImploldObject - 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 EListmove in class NotifyingListImpltargetIndex - the new position for the object in the list.sourceIndex - the old position of the object in the list.
NotifyingListImpl.isNotificationRequired()
public Object set(int index,
Object object)
BasicEListsetUnique
after range checking and after uniqueness checking.
set in interface Listset in class BasicEListindex - the position in question.object - the object to set.
BasicEList.setUnique(int, java.lang.Object)
public Object doSet(int index,
Object object)
public boolean add(Object object)
BasicEListuniqueness is required,
duplicates will be ignored and false will be returned.
This implementation delegates to addUnique(Object)
after uniqueness checking.
add in interface Listadd in class BasicEListobject - the object to be added.
BasicEList.addUnique(Object)protected boolean doAdd(Object object)
public void add(int index,
Object object)
BasicEListuniqueness is required,
duplicates will be ignored.
This implementation delegates to addUnique(int, Object)
after uniqueness checking.
add in interface Listadd in class BasicEListobject - the object to be added.BasicEList.addUnique(int, Object)
public void doAdd(int index,
Object object)
public boolean addAll(Collection collection)
BasicEListuniqueness 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 ListaddAll in class BasicEListcollection - the collection of objects to be added.BasicEList.addAllUnique(Collection)public boolean doAddAll(Collection collection)
public boolean addAll(int index,
Collection collection)
BasicEListuniqueness 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 ListaddAll in class BasicEListindex - the index at which to add.collection - the collection of objects to be added.
BasicEList.addAllUnique(int, Collection)
public boolean doAddAll(int index,
Collection collection)
public int size(EStructuralFeature feature)
size in interface FeatureMap.Internalpublic 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.Internalpublic Iterator iterator(EStructuralFeature feature)
iterator in interface FeatureMap.Internalpublic ListIterator listIterator(EStructuralFeature feature)
listIterator in interface FeatureMap.Internal
public ListIterator listIterator(EStructuralFeature feature,
int index)
listIterator in interface FeatureMap.Internalpublic FeatureMap.ValueListIterator valueListIterator()
valueListIterator in interface FeatureMappublic FeatureMap.ValueListIterator valueListIterator(int index)
valueListIterator in interface FeatureMappublic EList list(EStructuralFeature feature)
list in interface FeatureMappublic EStructuralFeature.Setting setting(EStructuralFeature feature)
setting in interface FeatureMap.Internalpublic List basicList(EStructuralFeature feature)
basicList in interface FeatureMap.Internalpublic Iterator basicIterator(EStructuralFeature feature)
basicIterator in interface FeatureMap.Internalpublic ListIterator basicListIterator(EStructuralFeature feature)
basicListIterator in interface FeatureMap.Internal
public ListIterator basicListIterator(EStructuralFeature feature,
int index)
basicListIterator in interface FeatureMap.Internalpublic 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.Internalpublic void addUnique(Object object)
InternalEList
addUnique in interface FeatureMap.InternaladdUnique in class NotifyingListImplobject - the object to be added.NotifyingListImpl.isNotificationRequired(),
NotifyingListImpl.hasInverse(),
NotifyingListImpl.inverseAdd(java.lang.Object, org.eclipse.emf.common.notify.NotificationChain)public void addUnique(FeatureMap.Entry.Internal entry)
addUnique in interface FeatureMap.Internalpublic boolean addAllUnique(Collection collection)
NotifyingListImpladdAllUnique(int, Collection).
addAllUnique in interface FeatureMap.InternaladdAllUnique in class NotifyingListImplcollection - the collection of objects to be added.NotifyingListImpl.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 boolean addAllUnique(int index,
FeatureMap.Entry.Internal[] entries,
int start,
int end)
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.Internalpublic 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.Internalpublic boolean isSet(EStructuralFeature feature)
isSet in interface FeatureMappublic void unset(EStructuralFeature feature)
unset in interface FeatureMap
public NotificationChain basicRemove(Object object,
NotificationChain notifications)
InternalEList
basicRemove in interface InternalEListbasicRemove in class NotifyingListImplobject - the object to be removed.
NotifyingListImpl.isNotificationRequired(),
NotifyingListImpl.hasInverse(),
NotifyingListImpl.inverseRemove(java.lang.Object, org.eclipse.emf.common.notify.NotificationChain)public void set(Object newValue)
EStructuralFeature.Setting
set in interface EStructuralFeature.Settingset in class EcoreEList
|
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 | ||||||||||