org.eclipse.uml2.common.util
Class DerivedEObjectEList

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.AbstractSequentialList
              extended byorg.eclipse.uml2.common.util.DerivedEObjectEList
All Implemented Interfaces:
java.util.Collection, EList, EStructuralFeature.Setting, InternalEList, InternalEList.Unsettable, java.util.List
Direct Known Subclasses:
DerivedSubsetEObjectEList, DerivedUnionEObjectEList

public class DerivedEObjectEList
extends java.util.AbstractSequentialList
implements EStructuralFeature.Setting, InternalEList.Unsettable


Nested Class Summary
protected  class DerivedEObjectEList.DerivedListIterator
           
protected  class DerivedEObjectEList.EmptyDerivedListIterator
           
protected  class DerivedEObjectEList.ResolvingDerivedListIterator
           
 
Nested classes inherited from class org.eclipse.emf.ecore.util.InternalEList
InternalEList.Unsettable
 
Field Summary
protected  java.lang.Class dataClass
           
protected  int featureID
           
protected  InternalEObject owner
           
protected  int[] sourceFeatureIDs
           
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
DerivedEObjectEList(java.lang.Class dataClass, InternalEObject owner, int featureID, int[] sourceFeatureIDs)
           
 
Method Summary
 void add(int index, java.lang.Object object)
           
 boolean addAll(int index, java.util.Collection objects)
           
 boolean addAllUnique(int index, java.util.Collection objects)
           
 void addUnique(int index, java.lang.Object object)
           
 void addUnique(java.lang.Object object)
           
 NotificationChain basicAdd(java.lang.Object object, NotificationChain notifications)
           
 java.lang.Object basicGet(int index)
           
 java.util.Iterator basicIterator()
           
 java.util.List basicList()
           
 java.util.ListIterator basicListIterator()
           
 java.util.ListIterator basicListIterator(int index)
           
 NotificationChain basicRemove(java.lang.Object object, NotificationChain notifications)
           
 boolean contains(java.lang.Object object)
           
protected  NotificationImpl createNotification(int eventType, java.lang.Object oldObject, java.lang.Object newObject, int index, boolean wasSet)
           
protected  java.lang.Object derive(java.lang.Object object)
           
protected  void dispatchNotification(Notification notification)
           
protected  boolean doAddAllUnique(int index, java.util.Collection objects)
           
 java.lang.Object get(boolean resolve)
           
 EObject getEObject()
           
 EStructuralFeature getEStructuralFeature()
           
 EStructuralFeature getEStructuralFeature(int featureID)
           
 boolean isEmpty()
           
protected  boolean isIncluded(EStructuralFeature feature)
           
protected  boolean isIncluded(java.lang.Object object)
           
protected  boolean isNotificationRequired()
           
 boolean isSet()
           
 java.util.ListIterator listIterator(int index)
           
protected  java.util.ListIterator listIterator(int index, boolean resolve)
           
 java.lang.Object move(int newPosition, int oldPosition)
           
 void move(int newPosition, java.lang.Object object)
           
protected  java.util.ListIterator newEmptyListIterator()
           
protected  java.util.ListIterator newListIterator()
           
protected  java.util.ListIterator newResolvingListIterator()
           
 java.lang.Object remove(int index)
           
 java.lang.Object set(int index, java.lang.Object object)
           
 void set(java.lang.Object newValue)
           
 java.lang.Object setUnique(int index, java.lang.Object object)
           
 int size()
           
 void unset()
           
protected  java.lang.Object validate(int index, java.lang.Object object)
           
 
Methods inherited from class java.util.AbstractSequentialList
get, iterator
 
Methods inherited from class java.util.AbstractList
add, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, removeRange, subList
 
Methods inherited from class java.util.AbstractCollection
addAll, 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, addAll, clear, containsAll, equals, get, hashCode, indexOf, iterator, lastIndexOf, listIterator, remove, removeAll, retainAll, subList, toArray, toArray
 

Field Detail

dataClass

protected final java.lang.Class dataClass

owner

protected final InternalEObject owner

featureID

protected final int featureID

sourceFeatureIDs

protected final int[] sourceFeatureIDs
Constructor Detail

DerivedEObjectEList

public DerivedEObjectEList(java.lang.Class dataClass,
                           InternalEObject owner,
                           int featureID,
                           int[] sourceFeatureIDs)
Method Detail

get

public java.lang.Object get(boolean resolve)
Specified by:
get in interface EStructuralFeature.Setting

getEObject

public EObject getEObject()
Specified by:
getEObject in interface EStructuralFeature.Setting

getEStructuralFeature

public EStructuralFeature getEStructuralFeature()
Specified by:
getEStructuralFeature in interface EStructuralFeature.Setting

getEStructuralFeature

public EStructuralFeature getEStructuralFeature(int featureID)

isSet

public boolean isSet()
Specified by:
isSet in interface EStructuralFeature.Setting

set

public void set(java.lang.Object newValue)
Specified by:
set in interface EStructuralFeature.Setting

unset

public void unset()
Specified by:
unset in interface EStructuralFeature.Setting

listIterator

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

size

public int size()
Specified by:
size in interface java.util.List

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface java.util.List

contains

public boolean contains(java.lang.Object object)
Specified by:
contains in interface java.util.List

basicGet

public java.lang.Object basicGet(int index)
Specified by:
basicGet in interface InternalEList

basicList

public java.util.List basicList()
Specified by:
basicList in interface InternalEList

basicIterator

public java.util.Iterator basicIterator()
Specified by:
basicIterator in interface InternalEList

basicListIterator

public java.util.ListIterator basicListIterator()
Specified by:
basicListIterator in interface InternalEList

basicListIterator

public java.util.ListIterator basicListIterator(int index)
Specified by:
basicListIterator in interface InternalEList

basicRemove

public NotificationChain basicRemove(java.lang.Object object,
                                     NotificationChain notifications)
Specified by:
basicRemove in interface InternalEList

isNotificationRequired

protected boolean isNotificationRequired()

createNotification

protected NotificationImpl createNotification(int eventType,
                                              java.lang.Object oldObject,
                                              java.lang.Object newObject,
                                              int index,
                                              boolean wasSet)

dispatchNotification

protected void dispatchNotification(Notification notification)

basicAdd

public NotificationChain basicAdd(java.lang.Object object,
                                  NotificationChain notifications)
Specified by:
basicAdd in interface InternalEList

add

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

addUnique

public void addUnique(java.lang.Object object)
Specified by:
addUnique in interface InternalEList

addUnique

public void addUnique(int index,
                      java.lang.Object object)
Specified by:
addUnique in interface InternalEList

addAll

public boolean addAll(int index,
                      java.util.Collection objects)
Specified by:
addAll in interface java.util.List

addAllUnique

public boolean addAllUnique(int index,
                            java.util.Collection objects)

doAddAllUnique

protected boolean doAddAllUnique(int index,
                                 java.util.Collection objects)

remove

public java.lang.Object remove(int index)
Specified by:
remove in interface java.util.List

set

public java.lang.Object set(int index,
                            java.lang.Object object)
Specified by:
set in interface java.util.List

setUnique

public java.lang.Object setUnique(int index,
                                  java.lang.Object object)
Specified by:
setUnique in interface InternalEList

move

public void move(int newPosition,
                 java.lang.Object object)
Specified by:
move in interface EList

move

public java.lang.Object move(int newPosition,
                             int oldPosition)
Specified by:
move in interface EList

isIncluded

protected boolean isIncluded(EStructuralFeature feature)

isIncluded

protected boolean isIncluded(java.lang.Object object)

derive

protected java.lang.Object derive(java.lang.Object object)

validate

protected java.lang.Object validate(int index,
                                    java.lang.Object object)

newListIterator

protected java.util.ListIterator newListIterator()

newResolvingListIterator

protected java.util.ListIterator newResolvingListIterator()

newEmptyListIterator

protected java.util.ListIterator newEmptyListIterator()

listIterator

protected java.util.ListIterator listIterator(int index,
                                              boolean resolve)

Copyright 2003, 2006 IBM Corporation and others.
All Rights Reserved.