org.eclipse.emf.common.util
Class DelegatingEList.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
All Implemented Interfaces:
Cloneable, Collection, EList, List, Serializable
Direct Known Subclasses:
DelegatingEcoreEList.UnmodifiableEList
Enclosing class:
DelegatingEList

public static class DelegatingEList.UnmodifiableEList
extends DelegatingEList

An unmodifiable version of DelegatingEList.

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
 
Field Summary
protected  List underlyingList
           
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
DelegatingEList.UnmodifiableEList(List underlyingList)
          Creates an initialized instance.
 
Method Summary
 void add(int index, Object object)
          Throws an exception.
 boolean add(Object object)
          Throws an exception.
 boolean addAll(Collection collection)
          Throws an exception.
 boolean addAll(int index, Collection collection)
          Throws an exception.
 void clear()
          Throws an exception.
protected  List delegateList()
          Returns the list that acts as the backing store.
 Iterator iterator()
          Returns the basic iterator.
 ListIterator listIterator()
          Returns the basic list iterator.
 ListIterator listIterator(int index)
          Returns the basic list iterator advanced to the index.
 Object move(int targetIndex, int sourceIndex)
          Throws an exception.
 void move(int index, Object object)
          Throws an exception.
 Object remove(int index)
          Throws an exception.
 boolean remove(Object object)
          Throws an exception.
 boolean removeAll(Collection collection)
          Throws an exception.
 boolean retainAll(Collection collection)
          Throws an exception.
 Object set(int index, Object object)
          Throws an exception.
 
Methods inherited from class org.eclipse.emf.common.util.DelegatingEList
addAllUnique, addAllUnique, addAllUnique, addAllUnique, addUnique, addUnique, basicGet, basicIterator, basicList, basicListIterator, basicListIterator, 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 java.util.List
subList
 

Field Detail

underlyingList

protected List underlyingList
Constructor Detail

DelegatingEList.UnmodifiableEList

public DelegatingEList.UnmodifiableEList(List underlyingList)
Creates an initialized instance.

Parameters:
underlyingList - the backing store list.
Method Detail

delegateList

protected List delegateList()
Description copied from class: DelegatingEList
Returns the list that acts as the backing store.

Specified by:
delegateList in class DelegatingEList
Returns:
the list that acts as the backing store.

set

public Object set(int index,
                  Object object)
Throws an exception.

Specified by:
set in interface List
Overrides:
set in class DelegatingEList
Parameters:
index - the position in question.
object - the object to set.
Returns:
the old object at the index.
Throws:
UnsupportedOperationException - always because it's not supported.
See Also:
DelegatingEList.setUnique(int, java.lang.Object)

add

public boolean add(Object object)
Throws an exception.

Specified by:
add in interface List
Overrides:
add in class DelegatingEList
Parameters:
object - the object to be added.
Returns:
whether the object was added.
Throws:
UnsupportedOperationException - always because it's not supported.
See Also:
DelegatingEList.addUnique(Object)

add

public void add(int index,
                Object object)
Throws an exception.

Specified by:
add in interface List
Overrides:
add in class DelegatingEList
Parameters:
object - the object to be added.
Throws:
UnsupportedOperationException - always because it's not supported.
See Also:
DelegatingEList.addUnique(int, Object)

addAll

public boolean addAll(Collection collection)
Throws an exception.

Specified by:
addAll in interface List
Overrides:
addAll in class DelegatingEList
Parameters:
collection - the collection of objects to be added.
Throws:
UnsupportedOperationException - always because it's not supported.
See Also:
DelegatingEList.addAllUnique(Collection)

addAll

public boolean addAll(int index,
                      Collection collection)
Throws an exception.

Specified by:
addAll in interface List
Overrides:
addAll in class DelegatingEList
Parameters:
index - the index at which to add.
collection - the collection of objects to be added.
Returns:
whether any objects were added.
Throws:
UnsupportedOperationException - always because it's not supported.
See Also:
DelegatingEList.addAllUnique(int, Collection)

remove

public boolean remove(Object object)
Throws an exception.

Specified by:
remove in interface List
Overrides:
remove in class DelegatingEList
Parameters:
object - the object to be removed.
Returns:
whether the object was actually contained by the list.
Throws:
UnsupportedOperationException - always because it's not supported.

remove

public Object remove(int index)
Throws an exception.

Specified by:
remove in interface List
Overrides:
remove in class DelegatingEList
Parameters:
index - the position of the object to remove.
Returns:
the removed object.
Throws:
UnsupportedOperationException - always because it's not supported.

removeAll

public boolean removeAll(Collection collection)
Throws an exception.

Specified by:
removeAll in interface List
Overrides:
removeAll in class DelegatingEList
Parameters:
collection - the collection of objects to be removed.
Returns:
whether any object was actually contained by the list.
Throws:
UnsupportedOperationException - always because it's not supported.

retainAll

public boolean retainAll(Collection collection)
Throws an exception.

Specified by:
retainAll in interface List
Overrides:
retainAll in class DelegatingEList
Parameters:
collection - the collection of objects to be retained.
Returns:
whether any object was actually removed.
Throws:
UnsupportedOperationException - always because it's not supported.

clear

public void clear()
Throws an exception.

Specified by:
clear in interface List
Overrides:
clear in class DelegatingEList
Throws:
UnsupportedOperationException - always because it's not supported.

move

public void move(int index,
                 Object object)
Throws an exception.

Specified by:
move in interface EList
Overrides:
move in class DelegatingEList
Parameters:
index - the new position for the object in the list.
object - the object to be moved.
Throws:
UnsupportedOperationException - always because it's not supported.

move

public Object move(int targetIndex,
                   int sourceIndex)
Throws an exception.

Specified by:
move in interface EList
Overrides:
move in class DelegatingEList
Parameters:
targetIndex - the new position for the object in the list.
sourceIndex - the old position of the object in the list.
Returns:
the moved object.
Throws:
UnsupportedOperationException - always because it's not supported.

iterator

public Iterator iterator()
Returns the basic iterator.

Specified by:
iterator in interface List
Overrides:
iterator in class DelegatingEList
Returns:
the basic iterator.
See Also:
DelegatingEList.EIterator

listIterator

public ListIterator listIterator()
Returns the basic list iterator.

Specified by:
listIterator in interface List
Overrides:
listIterator in class DelegatingEList
Returns:
the basic list iterator.
See Also:
DelegatingEList.EListIterator

listIterator

public ListIterator listIterator(int index)
Returns the basic list iterator advanced to the index.

Specified by:
listIterator in interface List
Overrides:
listIterator in class DelegatingEList
Parameters:
index - the starting index.
Returns:
the basic list iterator.
See Also:
DelegatingEList.EListIterator

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