public class DerivedEObjectEList<E>
extends org.eclipse.emf.ecore.util.AbstractSequentialInternalEList<E>
implements org.eclipse.emf.ecore.EStructuralFeature.Setting, org.eclipse.emf.ecore.util.InternalEList.Unsettable<E>
Modifier and Type | Class and Description |
---|---|
protected class |
DerivedEObjectEList.DerivedListIterator |
protected class |
DerivedEObjectEList.EmptyDerivedListIterator |
protected class |
DerivedEObjectEList.ResolvingDerivedListIterator |
Modifier and Type | Field and Description |
---|---|
protected java.lang.Class<?> |
dataClass |
protected int |
featureID |
protected org.eclipse.emf.ecore.InternalEObject |
owner |
protected int[] |
sourceFeatureIDs |
Constructor and Description |
---|
DerivedEObjectEList(java.lang.Class<?> dataClass,
org.eclipse.emf.ecore.InternalEObject owner,
int featureID,
int[] sourceFeatureIDs) |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
E object) |
boolean |
addAll(int index,
java.util.Collection<? extends E> objects) |
boolean |
addAllUnique(int index,
java.util.Collection<? extends E> objects) |
void |
addUnique(int index,
E object) |
java.util.List<E> |
basicList() |
java.util.ListIterator<E> |
basicListIterator(int index) |
boolean |
contains(java.lang.Object object) |
protected org.eclipse.emf.common.notify.impl.NotificationImpl |
createNotification(int eventType,
java.lang.Object oldObject,
java.lang.Object newObject,
int index,
boolean wasSet) |
protected E |
derive(java.lang.Object object)
Derives a value for this list from the specified element in a source
feature.
|
protected void |
dispatchNotification(org.eclipse.emf.common.notify.Notification notification) |
protected boolean |
doAddAllUnique(int index,
java.util.Collection<? extends E> objects) |
java.lang.Object |
get(boolean resolve) |
org.eclipse.emf.ecore.EObject |
getEObject() |
org.eclipse.emf.ecore.EStructuralFeature |
getEStructuralFeature() |
org.eclipse.emf.ecore.EStructuralFeature |
getEStructuralFeature(int featureID) |
boolean |
isEmpty() |
protected boolean |
isIncluded(org.eclipse.emf.ecore.EStructuralFeature feature)
Indicates whether all elements from the specified source feature are
included in this list.
|
protected boolean |
isIncluded(java.lang.Object object)
Indicates whether the specified element from a source feature is included
in this list.
|
protected boolean |
isNotificationRequired() |
boolean |
isSet() |
java.util.ListIterator<E> |
listIterator(int index) |
protected java.util.ListIterator<E> |
listIterator(int index,
boolean resolve) |
protected java.util.ListIterator<E> |
newEmptyListIterator() |
protected java.util.ListIterator<E> |
newListIterator() |
protected java.util.ListIterator<E> |
newResolvingListIterator() |
E |
remove(int index) |
E |
set(int index,
E object) |
void |
set(java.lang.Object newValue) |
E |
setUnique(int index,
E object) |
int |
size() |
void |
unset() |
protected E |
validate(int index,
E object) |
addAllUnique, addUnique, basicAdd, basicContains, basicContainsAll, basicGet, basicIndexOf, basicIterator, basicLastIndexOf, basicListIterator, basicRemove, basicToArray, basicToArray, move, move
add, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, removeRange, subList
addAll, containsAll, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAllUnique, addUnique, basicAdd, basicContains, basicContainsAll, basicGet, basicIndexOf, basicIterator, basicLastIndexOf, basicListIterator, basicRemove, basicToArray, basicToArray
protected final java.lang.Class<?> dataClass
protected final org.eclipse.emf.ecore.InternalEObject owner
protected final int featureID
protected final int[] sourceFeatureIDs
public DerivedEObjectEList(java.lang.Class<?> dataClass, org.eclipse.emf.ecore.InternalEObject owner, int featureID, int[] sourceFeatureIDs)
public java.lang.Object get(boolean resolve)
get
in interface org.eclipse.emf.ecore.EStructuralFeature.Setting
public org.eclipse.emf.ecore.EObject getEObject()
getEObject
in interface org.eclipse.emf.ecore.EStructuralFeature.Setting
public org.eclipse.emf.ecore.EStructuralFeature getEStructuralFeature()
getEStructuralFeature
in interface org.eclipse.emf.ecore.EStructuralFeature.Setting
public org.eclipse.emf.ecore.EStructuralFeature getEStructuralFeature(int featureID)
public boolean isSet()
isSet
in interface org.eclipse.emf.ecore.EStructuralFeature.Setting
isSet
in interface org.eclipse.emf.ecore.util.InternalEList.Unsettable<E>
public void set(java.lang.Object newValue)
set
in interface org.eclipse.emf.ecore.EStructuralFeature.Setting
public void unset()
unset
in interface org.eclipse.emf.ecore.EStructuralFeature.Setting
unset
in interface org.eclipse.emf.ecore.util.InternalEList.Unsettable<E>
public java.util.ListIterator<E> listIterator(int index)
public int size()
public boolean isEmpty()
public boolean contains(java.lang.Object object)
public java.util.List<E> basicList()
public java.util.ListIterator<E> basicListIterator(int index)
protected boolean isNotificationRequired()
protected org.eclipse.emf.common.notify.impl.NotificationImpl createNotification(int eventType, java.lang.Object oldObject, java.lang.Object newObject, int index, boolean wasSet)
protected void dispatchNotification(org.eclipse.emf.common.notify.Notification notification)
public void add(int index, E object)
public void addUnique(int index, E object)
public boolean addAll(int index, java.util.Collection<? extends E> objects)
public boolean addAllUnique(int index, java.util.Collection<? extends E> objects)
protected boolean doAddAllUnique(int index, java.util.Collection<? extends E> objects)
public E remove(int index)
protected boolean isIncluded(org.eclipse.emf.ecore.EStructuralFeature feature)
feature
- A source feature.true
if the elements are included;
false
otherwise.protected boolean isIncluded(java.lang.Object object)
object
- An element from a source feature.true
if the element is included;
false
otherwise.protected E derive(java.lang.Object object)
object
- An element from a source feature.protected java.util.ListIterator<E> newListIterator()
protected java.util.ListIterator<E> newResolvingListIterator()
protected java.util.ListIterator<E> newEmptyListIterator()
protected java.util.ListIterator<E> listIterator(int index, boolean resolve)