org.eclipse.emf.ecore.util
Class EcoreEList.UnmodifiableEList
java.lang.Object
|
+--java.util.AbstractCollection
|
+--java.util.AbstractList
|
+--org.eclipse.emf.common.util.BasicEList
|
+--org.eclipse.emf.common.util.BasicEList.UnmodifiableEList
|
+--org.eclipse.emf.ecore.util.EcoreEList.UnmodifiableEList
- All Implemented Interfaces:
- java.lang.Cloneable, java.util.Collection, EList, EStructuralFeature.Setting, InternalEList, InternalEList.Unsettable, java.util.List, java.io.Serializable
- Enclosing class:
- EcoreEList
- public static class EcoreEList.UnmodifiableEList
- extends BasicEList.UnmodifiableEList
- implements InternalEList.Unsettable, EStructuralFeature.Setting
- See Also:
- Serialized Form
Fields inherited from class java.util.AbstractList |
modCount |
Method Summary |
NotificationChain |
basicAdd(java.lang.Object object,
NotificationChain notifications)
Adds the object without updating the inverse. |
java.util.Iterator |
basicIterator()
Returns an iterator that yields unresolved values. |
java.util.List |
basicList()
Returns an unmodifiable list that yields unresolved values. |
java.util.ListIterator |
basicListIterator()
Returns a list iterator that yields unresolved values. |
java.util.ListIterator |
basicListIterator(int index)
Returns a list iterator that yields unresolved values. |
NotificationChain |
basicRemove(java.lang.Object object,
NotificationChain notifications)
Removes the object with without updating the inverse. |
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. |
Methods inherited from class org.eclipse.emf.common.util.BasicEList.UnmodifiableEList |
add, add, addAll, addAll, clear, grow, iterator, listIterator, listIterator, move, move, remove, remove, removeAll, retainAll, set, shrink |
Methods inherited from class org.eclipse.emf.common.util.BasicEList |
addAllUnique, addAllUnique, addUnique, addUnique, assign, canContainNull, clone, contains, containsAll, data, didAdd, didChange, didClear, didMove, didRemove, didSet, equalObjects, equals, get, getDuplicates, getNonDuplicates, hashCode, indexOf, isEmpty, isUnique, lastIndexOf, newData, resolve, setData, setUnique, size, toArray, toArray, toString, useEquals, validate |
Methods inherited from class java.util.AbstractList |
removeRange, subList |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.emf.common.util.EList |
move, move |
Methods inherited from interface java.util.List |
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray |
owner
protected final InternalEObject owner
eStructuralFeature
protected final EStructuralFeature eStructuralFeature
EcoreEList.UnmodifiableEList
public EcoreEList.UnmodifiableEList(InternalEObject owner,
EStructuralFeature eStructuralFeature,
int size,
java.lang.Object[] data)
basicList
public java.util.List basicList()
- Description copied from interface:
InternalEList
- Returns an unmodifiable list that yields unresolved values.
- Specified by:
basicList
in interface InternalEList
- Overrides:
basicList
in class BasicEList
- Following copied from class:
org.eclipse.emf.common.util.BasicEList
- Returns:
- an unsafe list that provides a non-resolving view of the underlying data storage.
basicIterator
public java.util.Iterator basicIterator()
- Description copied from interface:
InternalEList
- Returns an iterator that yields unresolved values.
- Specified by:
basicIterator
in interface InternalEList
- Overrides:
basicIterator
in class BasicEList
- Following copied from class:
org.eclipse.emf.common.util.BasicEList
- Returns:
- a read-only iterator that does not resolve objects.
basicListIterator
public java.util.ListIterator basicListIterator()
- Description copied from interface:
InternalEList
- Returns a list iterator that yields unresolved values.
- Specified by:
basicListIterator
in interface InternalEList
- Overrides:
basicListIterator
in class BasicEList
- Following copied from class:
org.eclipse.emf.common.util.BasicEList
- Returns:
- a read-only list iterator that does not resolve objects.
basicListIterator
public java.util.ListIterator basicListIterator(int index)
- Description copied from interface:
InternalEList
- Returns a list iterator that yields unresolved values.
- Specified by:
basicListIterator
in interface InternalEList
- Overrides:
basicListIterator
in class BasicEList
- Following copied from class:
org.eclipse.emf.common.util.BasicEList
- Parameters:
index
- the starting index.- Returns:
- a read-only list iterator advanced to the index.
- Throws:
java.lang.IndexOutOfBoundsException
- if the index isn't within the size range.
getEObject
public EObject getEObject()
- Description copied from interface:
EStructuralFeature.Setting
- Returns the object holding a value.
- Specified by:
getEObject
in interface EStructuralFeature.Setting
- Following copied from interface:
org.eclipse.emf.ecore.EStructuralFeature.Setting
- Returns:
- the object holding a value.
getEStructuralFeature
public EStructuralFeature getEStructuralFeature()
- Description copied from interface:
EStructuralFeature.Setting
- Returns the specific feature holding a value for the object.
- Specified by:
getEStructuralFeature
in interface EStructuralFeature.Setting
- Following copied from interface:
org.eclipse.emf.ecore.EStructuralFeature.Setting
- Returns:
- the specific feature holding a value for the object.
get
public java.lang.Object get(boolean resolve)
- Description copied from interface:
EStructuralFeature.Setting
- Returns the value held by the feature of the object;
it optionally
resolves
the value.
- Specified by:
get
in interface EStructuralFeature.Setting
- Following copied from interface:
org.eclipse.emf.ecore.EStructuralFeature.Setting
- Parameters:
resolve
- whether to resolve.- Returns:
- the value held by the feature of the object.
- See Also:
EObject.eGet(EStructuralFeature, boolean)
set
public void set(java.lang.Object newValue)
- Description copied from interface:
EStructuralFeature.Setting
- Set the value held by the feature of the object.
- Specified by:
set
in interface EStructuralFeature.Setting
- Following copied from interface:
org.eclipse.emf.ecore.EStructuralFeature.Setting
- Parameters:
newValue
- the newValue.- See Also:
EObject.eSet(EStructuralFeature, Object)
isSet
public boolean isSet()
- Description copied from interface:
InternalEList.Unsettable
- Returns whether a value is held by the feature of the object.
- Specified by:
isSet
in interface InternalEList.Unsettable
- Following copied from interface:
org.eclipse.emf.ecore.util.InternalEList.Unsettable
- Returns:
- whether a value is held by the feature of the object.
- See Also:
EObject.eIsSet(EStructuralFeature)
unset
public void unset()
- Description copied from interface:
InternalEList.Unsettable
- Unsets the value held by the feature of the object.
- Specified by:
unset
in interface InternalEList.Unsettable
- Following copied from interface:
org.eclipse.emf.ecore.util.InternalEList.Unsettable
- See Also:
EObject.eUnset(EStructuralFeature)
basicRemove
public NotificationChain basicRemove(java.lang.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(java.lang.Object object,
NotificationChain notifications)
- Description copied from interface:
InternalEList
- Adds the object without updating the inverse.
- Specified by:
basicAdd
in interface InternalEList