org.eclipse.emf.ecore.util
Class FeatureMapUtil.FeatureEList

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byorg.eclipse.emf.ecore.util.FeatureMapUtil.FeatureEList
All Implemented Interfaces:
Collection, EList, EStructuralFeature.Setting, InternalEList, InternalEList.Unsettable, List
Direct Known Subclasses:
FeatureMapUtil.FeatureEList.Basic, FeatureMapUtil.FeatureFeatureMap
Enclosing class:
FeatureMapUtil

public static class FeatureMapUtil.FeatureEList
extends AbstractList
implements InternalEList.Unsettable, EStructuralFeature.Setting


Nested Class Summary
static class FeatureMapUtil.FeatureEList.Basic
           
 
Nested classes inherited from class org.eclipse.emf.ecore.util.InternalEList
InternalEList.Unsettable
 
Field Summary
protected  EStructuralFeature feature
           
protected  FeatureMap.Internal featureMap
           
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
FeatureMapUtil.FeatureEList(EStructuralFeature feature, FeatureMap.Internal featureMap)
           
 
Method Summary
 void add(int index, Object object)
           
 boolean add(Object object)
           
 boolean addAll(Collection collection)
           
 boolean addAll(int index, Collection collection)
           
 boolean addAllUnique(Collection collection)
           
 boolean addAllUnique(FeatureMap.Entry.Internal[] entries, int start, int end)
           
 void addUnique(FeatureMap.Entry.Internal entry)
           
 void addUnique(int index, Object object)
          Adds the object without verifying uniqueness.
 void addUnique(Object object)
          Adds the object without verifying uniqueness.
 NotificationChain basicAdd(Object object, NotificationChain notifications)
          Adds 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)
          Removes the object with without updating the inverse.
 void clear()
           
 boolean contains(Object object)
           
 boolean containsAll(Collection collection)
           
 Object get(boolean resolve)
          Returns the value held by the feature of the object; it optionally resolves the value.
 Object get(int index)
           
 EObject getEObject()
          Returns the object holding a value.
 EStructuralFeature getEStructuralFeature()
          Returns the specific feature holding a value for the object.
 Object getFeature()
           
 int getFeatureID()
           
 int indexOf(Object object)
           
 boolean isEmpty()
           
 boolean isSet()
          Returns whether a value is held by the feature of the object.
 Iterator iterator()
           
 int lastIndexOf(Object object)
           
 ListIterator listIterator()
           
 ListIterator listIterator(int index)
           
 Object move(int targetIndex, int sourceIndex)
          Moves the object from the old position to the new position.
 void move(int index, Object object)
          Moves the object to the new position, if is in the list.
 Object remove(int index)
           
 boolean remove(Object object)
           
 boolean removeAll(Collection collection)
           
 boolean retainAll(Collection collection)
           
 Object set(int index, Object object)
           
 void set(Object newValue)
          Set the value held by the feature of the object.
 Object setUnique(int index, Object object)
          Sets the object without verifying uniqueness.
 int size()
           
 Object[] toArray()
           
 Object[] toArray(Object[] array)
           
 String toString()
           
 void unset()
          Unsets the value held by the feature of the object.
 
Methods inherited from class java.util.AbstractList
equals, hashCode, removeRange, subList
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
equals, hashCode, subList
 

Field Detail

feature

protected EStructuralFeature feature

featureMap

protected FeatureMap.Internal featureMap
Constructor Detail

FeatureMapUtil.FeatureEList

public FeatureMapUtil.FeatureEList(EStructuralFeature feature,
                                   FeatureMap.Internal featureMap)
Method Detail

size

public int size()
Specified by:
size in interface List

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface List

contains

public boolean contains(Object object)
Specified by:
contains in interface List

indexOf

public int indexOf(Object object)
Specified by:
indexOf in interface List

lastIndexOf

public int lastIndexOf(Object object)
Specified by:
lastIndexOf in interface List

containsAll

public boolean containsAll(Collection collection)
Specified by:
containsAll in interface List

iterator

public Iterator iterator()
Specified by:
iterator in interface List

listIterator

public ListIterator listIterator()
Specified by:
listIterator in interface List

listIterator

public ListIterator listIterator(int index)
Specified by:
listIterator in interface List

basicGet

public Object basicGet(int index)
Description copied from interface: InternalEList
Returns the unresolved value.

Specified by:
basicGet in interface InternalEList

basicList

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

Specified by:
basicList in interface InternalEList

basicIterator

public Iterator basicIterator()
Description copied from interface: InternalEList
Returns an iterator that yields unresolved values.

Specified by:
basicIterator in interface InternalEList

basicListIterator

public ListIterator basicListIterator()
Description copied from interface: InternalEList
Returns a list iterator that yields unresolved values.

Specified by:
basicListIterator in interface InternalEList

basicListIterator

public ListIterator basicListIterator(int index)
Description copied from interface: InternalEList
Returns a list iterator that yields unresolved values.

Specified by:
basicListIterator in interface InternalEList

toArray

public Object[] toArray()
Specified by:
toArray in interface List

toArray

public Object[] toArray(Object[] array)
Specified by:
toArray in interface List

add

public boolean add(Object object)
Specified by:
add in interface List

add

public void add(int index,
                Object object)
Specified by:
add in interface List

addAll

public boolean addAll(Collection collection)
Specified by:
addAll in interface List

addAll

public boolean addAll(int index,
                      Collection collection)
Specified by:
addAll in interface List

addUnique

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

Specified by:
addUnique in interface InternalEList

addUnique

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

Specified by:
addUnique in interface InternalEList

addAllUnique

public boolean addAllUnique(Collection collection)

addUnique

public void addUnique(FeatureMap.Entry.Internal entry)

addAllUnique

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

basicAdd

public NotificationChain basicAdd(Object object,
                                  NotificationChain notifications)
Description copied from interface: InternalEList
Adds the object without updating the inverse.

Specified by:
basicAdd in interface InternalEList

remove

public boolean remove(Object object)
Specified by:
remove in interface List

remove

public Object remove(int index)
Specified by:
remove in interface List

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

removeAll

public boolean removeAll(Collection collection)
Specified by:
removeAll in interface List

retainAll

public boolean retainAll(Collection collection)
Specified by:
retainAll in interface List

clear

public void clear()
Specified by:
clear in interface List

move

public void move(int index,
                 Object object)
Description copied from interface: EList
Moves the object to the new position, if is in the list.

Specified by:
move in interface EList
Parameters:
index - the position of the object after the move.
object - the object to move.

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
Parameters:
targetIndex - the position of the object after the move.
sourceIndex - the position of the object before the move.
Returns:
the moved object.

get

public Object get(int index)
Specified by:
get in interface List

set

public Object set(int index,
                  Object object)
Specified by:
set in interface List

setUnique

public Object setUnique(int index,
                        Object object)
Description copied from interface: InternalEList
Sets the object without verifying uniqueness.

Specified by:
setUnique in interface InternalEList

get

public Object get(boolean resolve)
Description copied from interface: EStructuralFeature.Setting
Returns the value held by the feature of the object; it optionally resolves the value.

Specified by:
get in interface EStructuralFeature.Setting
Parameters:
resolve - whether to resolve.
Returns:
the value held by the feature of the object.
See Also:
EObject.eGet(EStructuralFeature, boolean)

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
Parameters:
newValue - the newValue.
See Also:
EObject.eSet(EStructuralFeature, Object)

isSet

public boolean isSet()
Description copied from interface: InternalEList.Unsettable
Returns whether a value is held by the feature of the object.

Specified by:
isSet in interface InternalEList.Unsettable
Returns:
whether a value is held by the feature of the object.
See Also:
EObject.eIsSet(org.eclipse.emf.ecore.EStructuralFeature)

unset

public void unset()
Description copied from interface: InternalEList.Unsettable
Unsets the value held by the feature of the object.

Specified by:
unset in interface InternalEList.Unsettable
See Also:
EObject.eUnset(org.eclipse.emf.ecore.EStructuralFeature)

getFeature

public Object getFeature()

getFeatureID

public int getFeatureID()

getEStructuralFeature

public EStructuralFeature getEStructuralFeature()
Description copied from interface: EStructuralFeature.Setting
Returns the specific feature holding a value for the object.

Specified by:
getEStructuralFeature in interface EStructuralFeature.Setting
Returns:
the specific feature holding a value for the object.

getEObject

public EObject getEObject()
Description copied from interface: EStructuralFeature.Setting
Returns the object holding a value.

Specified by:
getEObject in interface EStructuralFeature.Setting
Returns:
the object holding a value.

toString

public String toString()

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