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

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byorg.eclipse.emf.common.util.DelegatingEList
              extended byorg.eclipse.emf.common.util.DelegatingEList.UnmodifiableEList
                  extended byorg.eclipse.emf.ecore.util.DelegatingEcoreEList.UnmodifiableEList
All Implemented Interfaces:
Cloneable, Collection, EList, EStructuralFeature.Setting, InternalEList, InternalEList.Unsettable, List, Serializable
Enclosing class:
DelegatingEcoreEList

public static class DelegatingEcoreEList.UnmodifiableEList
extends DelegatingEList.UnmodifiableEList
implements InternalEList.Unsettable, EStructuralFeature.Setting

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class org.eclipse.emf.common.util.DelegatingEList
DelegatingEList.EIterator, DelegatingEList.EListIterator, DelegatingEList.NonResolvingEIterator, DelegatingEList.NonResolvingEListIterator, DelegatingEList.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.DelegatingEList.UnmodifiableEList
underlyingList
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
DelegatingEcoreEList.UnmodifiableEList(InternalEObject owner, EStructuralFeature eStructuralFeature, List underlyingList)
           
 
Method Summary
 NotificationChain basicAdd(Object object, NotificationChain notifications)
          Adds the object without updating the inverse.
 Object basicGet(int index)
          Returns the unresolved value.
 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.DelegatingEList.UnmodifiableEList
add, add, addAll, addAll, clear, delegateList, iterator, listIterator, listIterator, move, move, remove, remove, removeAll, retainAll, set
 
Methods inherited from class org.eclipse.emf.common.util.DelegatingEList
addAllUnique, addAllUnique, addAllUnique, addAllUnique, addUnique, addUnique, canContainNull, contains, containsAll, delegateAdd, delegateAdd, delegateBasicList, delegateClear, delegateContains, delegateContainsAll, delegateEquals, delegateGet, delegateHashCode, delegateIndexOf, delegateIsEmpty, delegateIterator, delegateLastIndexOf, delegateListIterator, delegateRemove, delegateSet, delegateSize, delegateToArray, delegateToArray, delegateToString, didAdd, didChange, didClear, didMove, didRemove, didSet, doClear, equalObjects, equals, get, getDuplicates, getNonDuplicates, hashCode, indexOf, isEmpty, isUnique, lastIndexOf, resolve, setUnique, size, toArray, toArray, toString, useEquals, validate
 
Methods inherited from class java.util.AbstractList
removeRange, subList
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.emf.ecore.util.InternalEList
addUnique, addUnique, 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

DelegatingEcoreEList.UnmodifiableEList

public DelegatingEcoreEList.UnmodifiableEList(InternalEObject owner,
                                              EStructuralFeature eStructuralFeature,
                                              List underlyingList)
Method Detail

basicGet

public Object basicGet(int index)
Description copied from interface: InternalEList
Returns the unresolved value.

Specified by:
basicGet in interface InternalEList
Overrides:
basicGet in class DelegatingEList
Parameters:
index - the position in question.
Returns:
the object at the index.
See Also:
DelegatingEList.resolve(int, java.lang.Object), DelegatingEList.get(int)

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 DelegatingEList
Returns:
an unsafe list that provides a non-resolving view of the backign store list.

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 DelegatingEList
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 DelegatingEList
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 DelegatingEList
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.