org.eclipse.emf.ecore.util
Class EContentsEList

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.AbstractSequentialList
              extended byorg.eclipse.emf.ecore.util.EContentsEList
All Implemented Interfaces:
Collection, EList, InternalEList, List
Direct Known Subclasses:
ECrossReferenceEList

public class EContentsEList
extends AbstractSequentialList
implements EList, InternalEList


Nested Class Summary
static interface EContentsEList.FeatureIterator
           
static class EContentsEList.FeatureIteratorImpl
           
static interface EContentsEList.FeatureListIterator
           
static class EContentsEList.ResolvingFeatureIteratorImpl
           
 
Nested classes inherited from class org.eclipse.emf.ecore.util.InternalEList
InternalEList.Unsettable
 
Field Summary
static EContentsEList EMPTY_CONTENTS_ELIST
           
protected  EObject eObject
           
protected  EStructuralFeature[] eStructuralFeatures
           
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
EContentsEList(EObject eObject)
           
EContentsEList(EObject eObject, EStructuralFeature[] eStructuralFeatures)
           
EContentsEList(EObject eObject, List eStructuralFeatures)
           
 
Method Summary
 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.
static EContentsEList createEContentsEList(EObject eObject)
           
 boolean isEmpty()
           
protected  boolean isIncluded(EStructuralFeature eStructuralFeature)
           
protected  boolean isIncludedEntry(EStructuralFeature eStructuralFeature)
           
 Iterator iterator()
           
 ListIterator listIterator(int index)
           
 Object move(int newPosition, int oldPosition)
          Moves the object from the old position to the new position.
 void move(int newPosition, Object o)
          Moves the object to the new position, if is in the list.
protected  Iterator newIterator()
           
protected  ListIterator newListIterator()
           
protected  ListIterator newNonResolvingListIterator()
           
protected  ListIterator newResolvingListIterator()
           
protected  boolean resolve()
           
 Object setUnique(int index, Object object)
          Sets the object without verifying uniqueness.
 int size()
           
protected  boolean useIsSet()
           
 
Methods inherited from class java.util.AbstractSequentialList
add, addAll, get, remove, set
 
Methods inherited from class java.util.AbstractList
add, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, removeRange, subList
 
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, lastIndexOf, listIterator, remove, remove, removeAll, retainAll, set, subList, toArray, toArray
 

Field Detail

EMPTY_CONTENTS_ELIST

public static final EContentsEList EMPTY_CONTENTS_ELIST

eObject

protected final EObject eObject

eStructuralFeatures

protected final EStructuralFeature[] eStructuralFeatures
Constructor Detail

EContentsEList

public EContentsEList(EObject eObject)

EContentsEList

public EContentsEList(EObject eObject,
                      List eStructuralFeatures)

EContentsEList

public EContentsEList(EObject eObject,
                      EStructuralFeature[] eStructuralFeatures)
Method Detail

createEContentsEList

public static EContentsEList createEContentsEList(EObject eObject)

newListIterator

protected ListIterator newListIterator()

newResolvingListIterator

protected ListIterator newResolvingListIterator()

newNonResolvingListIterator

protected ListIterator newNonResolvingListIterator()

newIterator

protected Iterator newIterator()

useIsSet

protected boolean useIsSet()

resolve

protected boolean resolve()

isIncluded

protected boolean isIncluded(EStructuralFeature eStructuralFeature)

isIncludedEntry

protected boolean isIncludedEntry(EStructuralFeature eStructuralFeature)

listIterator

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

iterator

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

size

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

isEmpty

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

move

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

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

move

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

Specified by:
move in interface EList
Parameters:
newPosition - the position of the object after the move.
oldPosition - the position of the object before the move.
Returns:
the moved object.

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

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

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

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

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

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