org.eclipse.emf.common.util
Class DelegatingEList.UnmodifiableEList

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--org.eclipse.emf.common.util.DelegatingEList
                    |
                    +--org.eclipse.emf.common.util.DelegatingEList.UnmodifiableEList
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, EList, java.util.List, java.io.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

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

DelegatingEList.UnmodifiableEList

public DelegatingEList.UnmodifiableEList(java.util.List underlyingList)
Creates an initialized instance.
Parameters:
size - the size of the list.
underlyingList - the backing store list.
Method Detail

delegateList

protected java.util.List delegateList()
Description copied from class: DelegatingEList
Returns the list that acts as the backing store.
Overrides:
delegateList in class DelegatingEList
Following copied from class: org.eclipse.emf.common.util.DelegatingEList
Returns:
the list that acts as the backing store.

set

public java.lang.Object set(int index,
                            java.lang.Object object)
Throws an exception.
Overrides:
set in class DelegatingEList
Throws:
UnsupportedOperationException - always because it's not supported.

add

public boolean add(java.lang.Object object)
Throws an exception.
Overrides:
add in class DelegatingEList
Throws:
UnsupportedOperationException - always because it's not supported.

add

public void add(int index,
                java.lang.Object object)
Throws an exception.
Overrides:
add in class DelegatingEList
Throws:
UnsupportedOperationException - always because it's not supported.

addAll

public boolean addAll(java.util.Collection collection)
Throws an exception.
Overrides:
addAll in class DelegatingEList
Throws:
UnsupportedOperationException - always because it's not supported.

addAll

public boolean addAll(int index,
                      java.util.Collection collection)
Throws an exception.
Overrides:
addAll in class DelegatingEList
Throws:
UnsupportedOperationException - always because it's not supported.

remove

public boolean remove(java.lang.Object object)
Throws an exception.
Overrides:
remove in class DelegatingEList
Throws:
UnsupportedOperationException - always because it's not supported.

remove

public java.lang.Object remove(int index)
Throws an exception.
Overrides:
remove in class DelegatingEList
Throws:
UnsupportedOperationException - always because it's not supported.

removeAll

public boolean removeAll(java.util.Collection collection)
Throws an exception.
Overrides:
removeAll in class DelegatingEList
Throws:
UnsupportedOperationException - always because it's not supported.

retainAll

public boolean retainAll(java.util.Collection collection)
Throws an exception.
Overrides:
retainAll in class DelegatingEList
Throws:
UnsupportedOperationException - always because it's not supported.

clear

public void clear()
Throws an exception.
Overrides:
clear in class DelegatingEList
Throws:
UnsupportedOperationException - always because it's not supported.

move

public void move(int index,
                 java.lang.Object object)
Throws an exception.
Overrides:
move in class DelegatingEList
Throws:
UnsupportedOperationException - always because it's not supported.

move

public java.lang.Object move(int targetIndex,
                             int sourceIndex)
Throws an exception.
Overrides:
move in class DelegatingEList
Throws:
UnsupportedOperationException - always because it's not supported.

iterator

public java.util.Iterator iterator()
Returns the basic iterator.
Overrides:
iterator in class DelegatingEList
Returns:
the basic iterator.

listIterator

public java.util.ListIterator listIterator()
Returns the basic list iterator.
Overrides:
listIterator in class DelegatingEList
Returns:
the basic list iterator.

listIterator

public java.util.ListIterator listIterator(int index)
Returns the basic list iterator advanced to the index.
Overrides:
listIterator in class DelegatingEList
Parameters:
index - the starting index.
Returns:
the basic list iterator.

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