org.eclipse.uml2.common.util
Class DerivedEObjectEList
java.lang.Object
java.util.AbstractCollection
java.util.AbstractList
java.util.AbstractSequentialList
org.eclipse.uml2.common.util.DerivedEObjectEList
- All Implemented Interfaces:
- Collection, EList, EStructuralFeature.Setting, InternalEList, InternalEList.Unsettable, List
- Direct Known Subclasses:
- DerivedSubsetEObjectEList, DerivedUnionEObjectEList
- public class DerivedEObjectEList
- extends AbstractSequentialList
- implements EStructuralFeature.Setting, InternalEList.Unsettable
- Since:
- 1.2
|
Method Summary |
void |
add(int index,
Object object)
|
boolean |
addAll(int index,
Collection objects)
|
boolean |
addAllUnique(int index,
Collection objects)
|
void |
addUnique(int index,
Object object)
|
void |
addUnique(Object object)
|
NotificationChain |
basicAdd(Object object,
NotificationChain notifications)
|
Object |
basicGet(int index)
|
Iterator |
basicIterator()
|
List |
basicList()
|
ListIterator |
basicListIterator()
|
ListIterator |
basicListIterator(int index)
|
NotificationChain |
basicRemove(Object object,
NotificationChain notifications)
|
boolean |
contains(Object object)
|
protected NotificationImpl |
createNotification(int eventType,
Object oldObject,
Object newObject,
int index,
boolean wasSet)
|
protected Object |
derive(Object object)
|
protected void |
dispatchNotification(Notification notification)
|
protected boolean |
doAddAllUnique(int index,
Collection objects)
|
Object |
get(boolean resolve)
|
EObject |
getEObject()
|
EStructuralFeature |
getEStructuralFeature()
|
EStructuralFeature |
getEStructuralFeature(int featureID)
|
boolean |
isEmpty()
|
protected boolean |
isIncluded(EStructuralFeature feature)
|
protected boolean |
isIncluded(Object object)
|
protected boolean |
isNotificationRequired()
|
boolean |
isSet()
|
ListIterator |
listIterator(int index)
|
protected ListIterator |
listIterator(int index,
boolean resolve)
|
Object |
move(int newPosition,
int oldPosition)
|
void |
move(int newPosition,
Object object)
|
protected ListIterator |
newEmptyListIterator()
|
protected ListIterator |
newListIterator()
|
protected ListIterator |
newResolvingListIterator()
|
Object |
remove(int index)
|
Object |
set(int index,
Object object)
|
void |
set(Object newValue)
|
Object |
setUnique(int index,
Object object)
|
int |
size()
|
void |
unset()
|
protected Object |
validate(int index,
Object object)
|
| Methods inherited from interface java.util.List |
add, addAll, clear, containsAll, equals, get, hashCode, indexOf, iterator, lastIndexOf, listIterator, remove, removeAll, retainAll, subList, toArray, toArray |
dataClass
protected final Class dataClass
owner
protected final InternalEObject owner
featureID
protected final int featureID
sourceFeatureIDs
protected final int[] sourceFeatureIDs
DerivedEObjectEList
public DerivedEObjectEList(Class dataClass,
InternalEObject owner,
int featureID,
int[] sourceFeatureIDs)
get
public 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(Object newValue)
- Specified by:
set in interface EStructuralFeature.Setting
unset
public void unset()
- Specified by:
unset in interface EStructuralFeature.Setting
listIterator
public ListIterator listIterator(int index)
- Specified by:
listIterator in interface List
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
basicGet
public Object basicGet(int index)
- Specified by:
basicGet in interface InternalEList
basicList
public List basicList()
- Specified by:
basicList in interface InternalEList
basicIterator
public Iterator basicIterator()
- Specified by:
basicIterator in interface InternalEList
basicListIterator
public ListIterator basicListIterator()
- Specified by:
basicListIterator in interface InternalEList
basicListIterator
public ListIterator basicListIterator(int index)
- Specified by:
basicListIterator in interface InternalEList
basicRemove
public NotificationChain basicRemove(Object object,
NotificationChain notifications)
- Specified by:
basicRemove in interface InternalEList
isNotificationRequired
protected boolean isNotificationRequired()
createNotification
protected NotificationImpl createNotification(int eventType,
Object oldObject,
Object newObject,
int index,
boolean wasSet)
dispatchNotification
protected void dispatchNotification(Notification notification)
basicAdd
public NotificationChain basicAdd(Object object,
NotificationChain notifications)
- Specified by:
basicAdd in interface InternalEList
add
public void add(int index,
Object object)
- Specified by:
add in interface List
addUnique
public void addUnique(Object object)
- Specified by:
addUnique in interface InternalEList
addUnique
public void addUnique(int index,
Object object)
- Specified by:
addUnique in interface InternalEList
addAll
public boolean addAll(int index,
Collection objects)
- Specified by:
addAll in interface List
addAllUnique
public boolean addAllUnique(int index,
Collection objects)
doAddAllUnique
protected boolean doAddAllUnique(int index,
Collection objects)
remove
public Object remove(int index)
- Specified by:
remove 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)
- Specified by:
setUnique in interface InternalEList
move
public void move(int newPosition,
Object object)
- Specified by:
move in interface EList
move
public Object move(int newPosition,
int oldPosition)
- Specified by:
move in interface EList
isIncluded
protected boolean isIncluded(EStructuralFeature feature)
isIncluded
protected boolean isIncluded(Object object)
derive
protected Object derive(Object object)
validate
protected Object validate(int index,
Object object)
newListIterator
protected ListIterator newListIterator()
newResolvingListIterator
protected ListIterator newResolvingListIterator()
newEmptyListIterator
protected ListIterator newEmptyListIterator()
listIterator
protected ListIterator listIterator(int index,
boolean resolve)