org.eclipse.emf.ecore.util
Class EcoreEList.UnmodifiableEList

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byorg.eclipse.emf.common.util.BasicEList
              extended byorg.eclipse.emf.common.util.BasicEList.UnmodifiableEList
                  extended byorg.eclipse.emf.ecore.util.EcoreEList.UnmodifiableEList
All Implemented Interfaces:
Cloneable, Collection, EList, EStructuralFeature.Setting, InternalEList, InternalEList.Unsettable, List, RandomAccess, Serializable
Direct Known Subclasses:
EcoreEList.UnmodifiableEList.FastCompare
Enclosing class:
EcoreEList

public static class EcoreEList.UnmodifiableEList
extends BasicEList.UnmodifiableEList
implements InternalEList.Unsettable, EStructuralFeature.Setting

See Also:
Serialized Form

Nested Class Summary
static class EcoreEList.UnmodifiableEList.FastCompare
           
 
Nested classes inherited from class org.eclipse.emf.common.util.BasicEList
BasicEList.BasicIndexOutOfBoundsException, BasicEList.EIterator, BasicEList.EListIterator, BasicEList.NonResolvingEIterator, BasicEList.NonResolvingEListIterator, BasicEList.UnmodifiableEList
 
Nested classes inherited from class org.eclipse.emf.ecore.util.InternalEList
InternalEList.Unsettable
 
Field Summary
protected  EStructuralFeature eStructuralFeature
           
protected  InternalEObject owner
           
 
Fields inherited from class org.eclipse.emf.common.util.BasicEList
data, size
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
EcoreEList.UnmodifiableEList(InternalEObject owner, EStructuralFeature eStructuralFeature, int size, Object[] data)
           
 
Method Summary
 NotificationChain basicAdd(Object object, NotificationChain notifications)
          Adds the object without updating the inverse.
 Iterator basicIterator()
          Returns an iterator that yields unresolved values.
 List basicList()
          Returns an unmodifiable list that yields unresolved values.
 ListIterator basicListIterator()
          Returns a list iterator that yields unresolved values.
 ListIterator basicListIterator(int index)
          Returns a list iterator that yields unresolved values.
 NotificationChain basicRemove(Object object, NotificationChain notifications)
          Removes the object with without updating the inverse.
 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(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, addAllUnique, addAllUnique, addUnique, addUnique, assign, basicGet, 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.ecore.util.InternalEList
addUnique, addUnique, basicGet, setUnique
 
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
 

Field Detail

owner

protected final InternalEObject owner

eStructuralFeature

protected final EStructuralFeature eStructuralFeature
Constructor Detail

EcoreEList.UnmodifiableEList

public EcoreEList.UnmodifiableEList(InternalEObject owner,
                                    EStructuralFeature eStructuralFeature,
                                    int size,
                                    Object[] data)
Method Detail

basicList

public 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
Returns:
an unsafe list that provides a non-resolving view of the underlying data storage.

basicIterator

public 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
Returns:
a read-only iterator that does not resolve objects.

basicListIterator

public 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
Returns:
a read-only list iterator that does not resolve objects.

basicListIterator

public 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
Parameters:
index - the starting index.
Returns:
a read-only list iterator advanced to the index.

getEObject

public EObject getEObject()
Description copied from interface: EStructuralFeature.Setting
Returns the object holding a value.

Specified by:
getEObject in interface 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
Returns:
the specific feature holding a value for the object.

get

public 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
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(Object newValue)
Description copied from interface: EStructuralFeature.Setting
Set the value held by the feature of the object. If the new value is this setting itself, or is modified as a side effect of modifying this setting (i.e., if it is a view on the setting), the behavior is undefined and will likely result in simply clearing the list.

Specified by:
set in interface 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
Returns:
whether a value is held by the feature of the object.
See Also:
EObject.eIsSet(org.eclipse.emf.ecore.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
See Also:
EObject.eUnset(org.eclipse.emf.ecore.EStructuralFeature)

basicRemove

public NotificationChain basicRemove(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(Object object,
                                  NotificationChain notifications)
Description copied from interface: InternalEList
Adds the object without updating the inverse.

Specified by:
basicAdd in interface InternalEList

Copyright 2001-2006 IBM Corporation and others.
All Rights Reserved.