org.eclipse.emf.ecore.util
Class BasicFeatureMap

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byorg.eclipse.emf.common.util.BasicEList
              extended byorg.eclipse.emf.common.notify.impl.NotifyingListImpl
                  extended byorg.eclipse.emf.ecore.util.EcoreEList
                      extended byorg.eclipse.emf.ecore.util.EDataTypeEList
                          extended byorg.eclipse.emf.ecore.util.BasicFeatureMap
All Implemented Interfaces:
Cloneable, Collection, EList, EStructuralFeature.Setting, FeatureMap, FeatureMap.Internal, FeatureMap.Internal.Wrapper, InternalEList, InternalEList.Unsettable, List, NotifyingList, RandomAccess, Serializable

public class BasicFeatureMap
extends EDataTypeEList
implements FeatureMap.Internal, FeatureMap.Internal.Wrapper

See Also:
Serialized Form

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

wrapper

protected FeatureMap.Internal.Wrapper wrapper

featureMapValidator

protected final FeatureMapUtil.Validator featureMapValidator
Constructor Detail

BasicFeatureMap

public BasicFeatureMap(InternalEObject owner,
                       int featureID)

BasicFeatureMap

public BasicFeatureMap(InternalEObject owner,
                       int featureID,
                       EStructuralFeature eStructuralFeature)
Method Detail

getWrapper

public FeatureMap.Internal.Wrapper getWrapper()
Specified by:
getWrapper in interface FeatureMap.Internal

setWrapper

public void setWrapper(FeatureMap.Internal.Wrapper wrapper)
Specified by:
setWrapper in interface FeatureMap.Internal

featureMap

public FeatureMap featureMap()
Specified by:
featureMap in interface FeatureMap.Internal.Wrapper

newData

protected Object[] newData(int capacity)
Description copied from class: BasicEList
Returns new allocated data storage. Clients may override this to create typed storage. The cost of type checking via a typed array is negligable.

Overrides:
newData in class EcoreEList

validate

protected Object validate(int index,
                          Object object)
Description copied from class: BasicEList
Validates a new content object and returns the validated object. This implementation checks for null, if necessary and returns the argument object. Clients may throw additional types of runtime exceptions in order to handle constraint violations.

Overrides:
validate in class EcoreEList

createEntry

protected FeatureMap.Entry createEntry(EStructuralFeature eStructuralFeature,
                                       Object value)

createRawEntry

protected FeatureMap.Entry.Internal createRawEntry(EStructuralFeature eStructuralFeature,
                                                   Object value)

createNotification

protected NotificationImpl createNotification(int eventType,
                                              EStructuralFeature feature,
                                              Object oldObject,
                                              Object newObject,
                                              int index,
                                              boolean wasSet)

isMany

protected boolean isMany(EStructuralFeature feature)

hasInverse

protected boolean hasInverse()
Description copied from class: NotifyingListImpl
Returns false.

Overrides:
hasInverse in class NotifyingListImpl
Returns:
false.

hasShadow

protected boolean hasShadow()
Description copied from class: NotifyingListImpl
Returns false.

Overrides:
hasShadow in class NotifyingListImpl
Returns:
false.

entryIndex

protected int entryIndex(EStructuralFeature feature,
                         int index)

isResolveProxies

protected boolean isResolveProxies(EStructuralFeature feature)

resolveProxy

public Object resolveProxy(EStructuralFeature feature,
                           int entryIndex,
                           int index,
                           Object object)
Specified by:
resolveProxy in interface FeatureMap.Internal

resolveProxy

protected EObject resolveProxy(EObject eObject)
Overrides:
resolveProxy in class EcoreEList

getModCount

public int getModCount()
Specified by:
getModCount in interface FeatureMap.Internal

getEStructuralFeature

public EStructuralFeature getEStructuralFeature(int index)
Specified by:
getEStructuralFeature in interface FeatureMap

getValue

public Object getValue(int index)
Specified by:
getValue in interface FeatureMap

setValue

public Object setValue(int index,
                       Object value)
Specified by:
setValue in interface FeatureMap

shadowAdd

public NotificationChain shadowAdd(Object object,
                                   NotificationChain notifications)
Description copied from class: NotifyingListImpl
Does nothing and returns the notifications. Clients can override this to update the inverse of a bidirectional relation.

Overrides:
shadowAdd in class NotifyingListImpl
Parameters:
object - the object that's been added to the list.
notifications - the chain of accumulating notifications.
Returns:
the notifications.

shadowAdd

public NotificationChain shadowAdd(FeatureMap.Entry.Internal entry,
                                   NotificationChain notifications)

inverseAdd

public NotificationChain inverseAdd(Object object,
                                    NotificationChain notifications)
Description copied from class: NotifyingListImpl
Does nothing and returns the notifications. Clients can override this to update the inverse of a bidirectional relation.

Overrides:
inverseAdd in class EcoreEList

inverseAdd

public NotificationChain inverseAdd(FeatureMap.Entry.Internal entry,
                                    NotificationChain notifications)

shadowRemove

public NotificationChain shadowRemove(Object object,
                                      NotificationChain notifications)
Description copied from class: NotifyingListImpl
Does nothing and returns the notifications. Clients can override this to update the inverse of a bidirectional relation.

Overrides:
shadowRemove in class NotifyingListImpl
Parameters:
object - the object that's been remove from the list.
notifications - the chain of accumulating notifications.
Returns:
the notifications.

shadowRemove

public NotificationChain shadowRemove(FeatureMap.Entry.Internal entry,
                                      NotificationChain notifications)

inverseRemove

public NotificationChain inverseRemove(Object object,
                                       NotificationChain notifications)
Description copied from class: NotifyingListImpl
Does nothing and returns the notifications. Clients can override this to update the inverse of a bidirectional relation.

Overrides:
inverseRemove in class EcoreEList

inverseRemove

public NotificationChain inverseRemove(FeatureMap.Entry.Internal entry,
                                       NotificationChain notifications)

shadowSet

public NotificationChain shadowSet(Object oldObject,
                                   Object newObject,
                                   NotificationChain notifications)
Description copied from class: NotifyingListImpl
Does nothing and returns the notifications. Clients can override this to update the inverse of a bidirectional relation.

Overrides:
shadowSet in class NotifyingListImpl
Parameters:
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.
Returns:
the notifications.

inverseTouch

public NotificationChain inverseTouch(Object object,
                                      NotificationChain notifications)

move

public Object move(int targetIndex,
                   int sourceIndex)
Description copied from interface: EList
Moves the object from the old position to the new position.

Specified by:
move in interface EList
Overrides:
move in class NotifyingListImpl
Parameters:
targetIndex - the new position for the object in the list.
sourceIndex - the old position of the object in the list.
Returns:
the moved object.
See Also:
NotifyingListImpl.isNotificationRequired()

set

public Object set(int index,
                  Object object)
Description copied from class: BasicEList
Sets the object at the index and returns the old object at the index. This implementation delegates to setUnique after range checking and after uniqueness checking.

Specified by:
set in interface List
Overrides:
set in class BasicEList
Parameters:
index - the position in question.
object - the object to set.
Returns:
the old object at the index.
See Also:
BasicEList.setUnique(int, java.lang.Object)

doSet

public Object doSet(int index,
                    Object object)

add

public boolean add(Object object)
Description copied from class: BasicEList
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. This implementation delegates to addUnique(Object) after uniqueness checking.

Specified by:
add in interface List
Overrides:
add in class BasicEList
Parameters:
object - the object to be added.
Returns:
whether the object was added.
See Also:
BasicEList.addUnique(Object)

doAdd

protected boolean doAdd(Object object)

add

public void add(int index,
                Object object)
Description copied from class: BasicEList
Adds the object at the given index in the list. If uniqueness is required, duplicates will be ignored. This implementation delegates to addUnique(int, Object) after uniqueness checking.

Specified by:
add in interface List
Overrides:
add in class BasicEList
Parameters:
object - the object to be added.
See Also:
BasicEList.addUnique(int, Object)

doAdd

public void doAdd(int index,
                  Object object)

addAll

public boolean addAll(Collection collection)
Description copied from class: BasicEList
Adds each object of the collection to the end of the list. If 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.

Specified by:
addAll in interface List
Overrides:
addAll in class BasicEList
Parameters:
collection - the collection of objects to be added.
See Also:
BasicEList.addAllUnique(Collection)

doAddAll

public boolean doAddAll(Collection collection)

addAll

public boolean addAll(int index,
                      Collection collection)
Description copied from class: BasicEList
Adds each object of the collection at each successive index in the list and returns whether any objects were added. If 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.

Specified by:
addAll in interface List
Overrides:
addAll in class BasicEList
Parameters:
index - the index at which to add.
collection - the collection of objects to be added.
Returns:
whether any objects were added.
See Also:
BasicEList.addAllUnique(int, Collection)

doAddAll

public boolean doAddAll(int index,
                        Collection collection)

size

public int size(EStructuralFeature feature)
Specified by:
size in interface FeatureMap.Internal

isEmpty

public boolean isEmpty(EStructuralFeature feature)
Specified by:
isEmpty in interface FeatureMap.Internal

contains

public boolean contains(EStructuralFeature feature,
                        Object object)
Specified by:
contains in interface FeatureMap.Internal

containsAll

public boolean containsAll(EStructuralFeature feature,
                           Collection collection)
Specified by:
containsAll in interface FeatureMap.Internal

indexOf

public int indexOf(EStructuralFeature feature,
                   Object object)
Specified by:
indexOf in interface FeatureMap.Internal

lastIndexOf

public int lastIndexOf(EStructuralFeature feature,
                       Object object)
Specified by:
lastIndexOf in interface FeatureMap.Internal

iterator

public Iterator iterator(EStructuralFeature feature)
Specified by:
iterator in interface FeatureMap.Internal

listIterator

public ListIterator listIterator(EStructuralFeature feature)
Specified by:
listIterator in interface FeatureMap.Internal

listIterator

public ListIterator listIterator(EStructuralFeature feature,
                                 int index)
Specified by:
listIterator in interface FeatureMap.Internal

valueListIterator

public FeatureMap.ValueListIterator valueListIterator()
Specified by:
valueListIterator in interface FeatureMap

valueListIterator

public FeatureMap.ValueListIterator valueListIterator(int index)
Specified by:
valueListIterator in interface FeatureMap

list

public EList list(EStructuralFeature feature)
Specified by:
list in interface FeatureMap

setting

public EStructuralFeature.Setting setting(EStructuralFeature feature)
Specified by:
setting in interface FeatureMap.Internal

basicList

public List basicList(EStructuralFeature feature)
Specified by:
basicList in interface FeatureMap.Internal

basicIterator

public Iterator basicIterator(EStructuralFeature feature)
Specified by:
basicIterator in interface FeatureMap.Internal

basicListIterator

public ListIterator basicListIterator(EStructuralFeature feature)
Specified by:
basicListIterator in interface FeatureMap.Internal

basicListIterator

public ListIterator basicListIterator(EStructuralFeature feature,
                                      int index)
Specified by:
basicListIterator in interface FeatureMap.Internal

toArray

public Object[] toArray(EStructuralFeature feature)
Specified by:
toArray in interface FeatureMap.Internal

toArray

public Object[] toArray(EStructuralFeature feature,
                        Object[] array)
Specified by:
toArray in interface FeatureMap.Internal

set

public void set(EStructuralFeature feature,
                Object object)
Specified by:
set in interface FeatureMap

shouldUnset

protected boolean shouldUnset(EStructuralFeature feature,
                              Object value)

add

public void add(int index,
                EStructuralFeature feature,
                Object object)
Specified by:
add in interface FeatureMap

add

public boolean add(EStructuralFeature feature,
                   Object object)
Specified by:
add in interface FeatureMap

add

public void add(EStructuralFeature feature,
                int index,
                Object object)
Specified by:
add in interface FeatureMap.Internal

addAll

public boolean addAll(int index,
                      EStructuralFeature feature,
                      Collection collection)
Specified by:
addAll in interface FeatureMap

addAll

public boolean addAll(EStructuralFeature feature,
                      Collection collection)
Specified by:
addAll in interface FeatureMap

addAll

public boolean addAll(EStructuralFeature feature,
                      int index,
                      Collection collection)
Specified by:
addAll in interface FeatureMap.Internal

addUnique

public void addUnique(EStructuralFeature feature,
                      Object object)
Specified by:
addUnique in interface FeatureMap.Internal

addUnique

public void addUnique(EStructuralFeature feature,
                      int index,
                      Object object)
Specified by:
addUnique in interface FeatureMap.Internal

addUnique

public void addUnique(Object object)
Description copied from interface: InternalEList
Adds the object without verifying uniqueness.

Specified by:
addUnique in interface FeatureMap.Internal
Overrides:
addUnique in class NotifyingListImpl
Parameters:
object - the object to be added.
See Also:
NotifyingListImpl.isNotificationRequired(), NotifyingListImpl.hasInverse(), NotifyingListImpl.inverseAdd(java.lang.Object, org.eclipse.emf.common.notify.NotificationChain)

addUnique

public void addUnique(FeatureMap.Entry.Internal entry)
Specified by:
addUnique in interface FeatureMap.Internal

addAllUnique

public boolean addAllUnique(Collection collection)
Description copied from class: NotifyingListImpl
Adds each object of the collection to the end of the list; it does no uniqueness checking. This implementation delegates to addAllUnique(int, Collection).

Specified by:
addAllUnique in interface FeatureMap.Internal
Overrides:
addAllUnique in class NotifyingListImpl
Parameters:
collection - the collection of objects to be added.
See Also:
NotifyingListImpl.inverseAdd(java.lang.Object, org.eclipse.emf.common.notify.NotificationChain)

addAllUnique

public boolean addAllUnique(FeatureMap.Entry.Internal[] entries,
                            int start,
                            int end)
Specified by:
addAllUnique in interface FeatureMap.Internal

addAllUnique

public boolean addAllUnique(int index,
                            FeatureMap.Entry.Internal[] entries,
                            int start,
                            int end)

basicAdd

public NotificationChain basicAdd(EStructuralFeature feature,
                                  Object object,
                                  NotificationChain notifications)
Specified by:
basicAdd in interface FeatureMap.Internal

remove

public boolean remove(EStructuralFeature feature,
                      Object object)
Specified by:
remove in interface FeatureMap.Internal

remove

public Object remove(EStructuralFeature feature,
                     int index)
Specified by:
remove in interface FeatureMap.Internal

removeAll

public boolean removeAll(EStructuralFeature feature,
                         Collection collection)
Specified by:
removeAll in interface FeatureMap.Internal

basicRemove

public NotificationChain basicRemove(EStructuralFeature feature,
                                     Object object,
                                     NotificationChain notifications)
Specified by:
basicRemove in interface FeatureMap.Internal

retainAll

public boolean retainAll(EStructuralFeature feature,
                         Collection collection)
Specified by:
retainAll in interface FeatureMap.Internal

clear

public void clear(EStructuralFeature feature)
Specified by:
clear in interface FeatureMap.Internal

move

public void move(EStructuralFeature feature,
                 int index,
                 Object object)
Specified by:
move in interface FeatureMap.Internal

move

public Object move(EStructuralFeature feature,
                   int targetIndex,
                   int sourceIndex)
Specified by:
move in interface FeatureMap.Internal

get

public Object get(EStructuralFeature feature,
                  boolean resolve)
Specified by:
get in interface FeatureMap

get

public Object get(EStructuralFeature feature,
                  int index,
                  boolean resolve)
Specified by:
get in interface FeatureMap.Internal

set

public Object set(EStructuralFeature feature,
                  int index,
                  Object object)
Specified by:
set in interface FeatureMap.Internal

setUnique

public Object setUnique(EStructuralFeature feature,
                        int index,
                        Object object)
Specified by:
setUnique in interface FeatureMap.Internal

isSet

public boolean isSet(EStructuralFeature feature)
Specified by:
isSet in interface FeatureMap

unset

public void unset(EStructuralFeature feature)
Specified by:
unset in interface FeatureMap

basicRemove

public NotificationChain basicRemove(Object object,
                                     NotificationChain notifications)
Description copied from interface: InternalEList
Removes the object with without updating the inverse.

Specified by:
basicRemove in interface InternalEList
Overrides:
basicRemove in class NotifyingListImpl
Parameters:
object - the object to be removed.
Returns:
the notification chain.
See Also:
NotifyingListImpl.isNotificationRequired(), NotifyingListImpl.hasInverse(), NotifyingListImpl.inverseRemove(java.lang.Object, org.eclipse.emf.common.notify.NotificationChain)

set

public void set(Object newValue)
Description copied from interface: EStructuralFeature.Setting
Set the value held by the feature of the object. If the new value is this setting itself, or is modified as a side effect of modifying this setting (i.e., if it is a view on the setting), the behavior is undefined and will likely result in simply clearing the list.

Specified by:
set in interface EStructuralFeature.Setting
Overrides:
set in class EcoreEList

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