public static class DelegatingEcoreEList.UnmodifiableEList<E> extends DelegatingEList.UnmodifiableEList<E> implements InternalEList.Unsettable<E>, EStructuralFeature.Setting
DelegatingEList.EIterator<E1>, DelegatingEList.EListIterator<E1>, DelegatingEList.NonResolvingEIterator<E1>, DelegatingEList.NonResolvingEListIterator<E1>, DelegatingEList.UnmodifiableEList<E>
AbstractEList.BasicIndexOutOfBoundsException
InternalEList.Unsettable<E>
Modifier and Type | Field and Description |
---|---|
protected EStructuralFeature |
eStructuralFeature |
protected InternalEObject |
owner |
underlyingList
Constructor and Description |
---|
DelegatingEcoreEList.UnmodifiableEList(InternalEObject owner,
EStructuralFeature eStructuralFeature,
java.util.List<E> underlyingList) |
Modifier and Type | Method and Description |
---|---|
NotificationChain |
basicAdd(E object,
NotificationChain notifications)
Adds the object without updating the inverse.
|
boolean |
basicContains(java.lang.Object object)
Returns whether the object is contained within the list of unresolved values.
|
boolean |
basicContainsAll(java.util.Collection<?> collection)
Returns whether each object in the collection is contained within the list of unresolved values.
|
E |
basicGet(int index)
Returns the object at the index without
resolving it. |
int |
basicIndexOf(java.lang.Object object)
Returns the index of the object within the list of unresolved values.
|
java.util.Iterator<E> |
basicIterator()
Returns a read-only iterator that does not
resolve objects. |
int |
basicLastIndexOf(java.lang.Object object)
Returns the last index of the object within the list of unresolved values.
|
java.util.List<E> |
basicList()
Returns an unsafe list that provides a
non-resolving view of the backing store list. |
java.util.ListIterator<E> |
basicListIterator()
Returns a read-only list iterator that does not
resolve objects. |
java.util.ListIterator<E> |
basicListIterator(int index)
Returns a read-only list iterator advanced to the given index that does not
resolve objects. |
NotificationChain |
basicRemove(java.lang.Object object,
NotificationChain notifications)
Removes the object with without updating the inverse.
|
java.lang.Object[] |
basicToArray()
Returns the array with unresolved values.
|
<T> T[] |
basicToArray(T[] array)
Returns the array with unresolved values.
|
java.lang.Object |
get(boolean resolve)
Returns the value held by the feature of the object;
it optionally
resolves the value. |
EObject |
getEObject()
Returns the object holding a value.
|
EStructuralFeature |
getEStructuralFeature()
Returns the specific feature holding a value for the object.
|
boolean |
isSet()
Returns whether a value is held by the feature of the object.
|
void |
set(java.lang.Object newValue)
Set the value held by the feature of the object.
|
void |
unset()
Unsets the value held by the feature of the object.
|
add, add, addAll, addAll, clear, delegateList, iterator, listIterator, listIterator, move, move, remove, remove, removeAll, retainAll, set
addAllUnique, addAllUnique, addAllUnique, addAllUnique, addUnique, addUnique, contains, containsAll, delegateAdd, delegateAdd, delegateBasicList, delegateClear, delegateContains, delegateContainsAll, delegateEquals, delegateGet, delegateHashCode, delegateIndexOf, delegateIsEmpty, delegateIterator, delegateLastIndexOf, delegateListIterator, delegateMove, delegateRemove, delegateSet, delegateSize, delegateToArray, delegateToArray, delegateToString, doClear, equals, get, hashCode, indexOf, isEmpty, lastIndexOf, primitiveGet, setUnique, size, toArray, toArray, toString
canContainNull, didAdd, didChange, didClear, didMove, didRemove, didSet, equalObjects, getDuplicates, getNonDuplicates, isUnique, resolve, useEquals, validate
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAllUnique, addAllUnique, addUnique, addUnique, setUnique
protected final InternalEObject owner
protected final EStructuralFeature eStructuralFeature
public DelegatingEcoreEList.UnmodifiableEList(InternalEObject owner, EStructuralFeature eStructuralFeature, java.util.List<E> underlyingList)
public E basicGet(int index)
DelegatingEList
resolving
it.basicGet
in interface InternalEList<E>
basicGet
in class DelegatingEList<E>
index
- the position in question.AbstractEList.resolve(int, E)
,
DelegatingEList.get(int)
public java.util.List<E> basicList()
DelegatingEList
non-resolving
view of the backing store list.basicList
in interface InternalEList<E>
basicList
in class DelegatingEList<E>
public java.util.Iterator<E> basicIterator()
AbstractEList
resolve
objects.
This implementation allocates a AbstractEList.NonResolvingEIterator
.basicIterator
in interface InternalEList<E>
basicIterator
in class AbstractEList<E>
public java.util.ListIterator<E> basicListIterator()
AbstractEList
resolve
objects.
This implementation allocates a AbstractEList.NonResolvingEListIterator
.basicListIterator
in interface InternalEList<E>
basicListIterator
in class AbstractEList<E>
public java.util.ListIterator<E> basicListIterator(int index)
AbstractEList
resolve
objects.
This implementation allocates a AbstractEList.NonResolvingEListIterator
.basicListIterator
in interface InternalEList<E>
basicListIterator
in class AbstractEList<E>
index
- the starting index.public java.lang.Object[] basicToArray()
InternalEList
basicToArray
in interface InternalEList<E>
public <T> T[] basicToArray(T[] array)
InternalEList
basicToArray
in interface InternalEList<E>
public boolean basicContains(java.lang.Object object)
InternalEList
basicContains
in interface InternalEList<E>
public boolean basicContainsAll(java.util.Collection<?> collection)
InternalEList
basicContainsAll
in interface InternalEList<E>
public int basicIndexOf(java.lang.Object object)
InternalEList
basicIndexOf
in interface InternalEList<E>
public int basicLastIndexOf(java.lang.Object object)
InternalEList
basicLastIndexOf
in interface InternalEList<E>
public EObject getEObject()
EStructuralFeature.Setting
getEObject
in interface EStructuralFeature.Setting
public EStructuralFeature getEStructuralFeature()
EStructuralFeature.Setting
getEStructuralFeature
in interface EStructuralFeature.Setting
public java.lang.Object get(boolean resolve)
EStructuralFeature.Setting
resolves
the value.get
in interface EStructuralFeature.Setting
resolve
- whether to resolve.EObject.eGet(EStructuralFeature, boolean)
public void set(java.lang.Object newValue)
EStructuralFeature.Setting
set
in interface EStructuralFeature.Setting
newValue
- the newValue.EObject.eSet(EStructuralFeature, Object)
public boolean isSet()
InternalEList.Unsettable
isSet
in interface EStructuralFeature.Setting
isSet
in interface InternalEList.Unsettable<E>
EObject.eIsSet(org.eclipse.emf.ecore.EStructuralFeature)
public void unset()
InternalEList.Unsettable
unset
in interface EStructuralFeature.Setting
unset
in interface InternalEList.Unsettable<E>
EObject.eUnset(org.eclipse.emf.ecore.EStructuralFeature)
public NotificationChain basicRemove(java.lang.Object object, NotificationChain notifications)
InternalEList
basicRemove
in interface InternalEList<E>
public NotificationChain basicAdd(E object, NotificationChain notifications)
InternalEList
basicAdd
in interface InternalEList<E>