org.eclipse.emf.ecore.impl
Class EStoreEObjectImpl.BasicEStoreEList<E>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by org.eclipse.emf.common.util.DelegatingEList<E>
              extended by org.eclipse.emf.common.notify.impl.DelegatingNotifyingListImpl<E>
                  extended by org.eclipse.emf.ecore.util.DelegatingNotifyingInternalEListImpl<E>
                      extended by org.eclipse.emf.ecore.util.DelegatingEcoreEList<E>
                          extended by org.eclipse.emf.ecore.util.DelegatingEcoreEList.Generic<E>
                              extended by org.eclipse.emf.ecore.util.DelegatingEcoreEList.Dynamic<E>
                                  extended by org.eclipse.emf.ecore.impl.EStoreEObjectImpl.BasicEStoreEList<E>
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<E>, java.util.Collection<E>, java.util.List<E>, NotifyingList<E>, EList<E>, EStructuralFeature.Setting, InternalEList<E>, InternalEList.Unsettable<E>
Direct Known Subclasses:
EStoreEObjectImpl.EStoreEList
Enclosing class:
EStoreEObjectImpl

public static class EStoreEObjectImpl.BasicEStoreEList<E>
extends DelegatingEcoreEList.Dynamic<E>

A list that delegates to a store.

Since:
2.4
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.util.DelegatingEcoreEList
DelegatingEcoreEList.Dynamic<E>, DelegatingEcoreEList.Generic<E>, DelegatingEcoreEList.UnmodifiableEList<E>, DelegatingEcoreEList.Unsettable<E>
 
Nested classes/interfaces inherited from class org.eclipse.emf.common.util.DelegatingEList
DelegatingEList.EIterator<E1>, DelegatingEList.EListIterator<E1>, DelegatingEList.NonResolvingEIterator<E1>, DelegatingEList.NonResolvingEListIterator<E1>
 
Field Summary
 
Fields inherited from class org.eclipse.emf.ecore.util.DelegatingEcoreEList.Dynamic
eStructuralFeature
 
Fields inherited from class org.eclipse.emf.ecore.util.DelegatingEcoreEList.Generic
HAS_INSTANCE_CLASS, HAS_MANY_INVERSE, HAS_NAVIGABLE_INVERSE, HAS_PROXIES, IS_CONTAINER, IS_CONTAINMENT, IS_ENUM, IS_EOBJECT, IS_PRIMITIVE, IS_SET, IS_UNIQUE, IS_UNSETTABLE, kind
 
Fields inherited from class org.eclipse.emf.ecore.util.DelegatingEcoreEList
owner
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
EStoreEObjectImpl.BasicEStoreEList(InternalEObject owner, EStructuralFeature eStructuralFeature)
           
 
Method Summary
protected  void delegateAdd(int index, java.lang.Object object)
          Adds the object at the given index in the backing store list.
protected  void delegateAdd(java.lang.Object object)
          Adds the object at the end of the backing store list.
protected  java.util.List<E> delegateBasicList()
          Returns an unsafe list that provides a non-resolving view of the backing store list.
protected  void delegateClear()
          Clears the backing store list of all objects.
protected  boolean delegateContains(java.lang.Object object)
          Returns whether the backing store list contains the object.
protected  boolean delegateContainsAll(java.util.Collection<?> collection)
          Returns whether the backing store list contains each object in the collection.
protected  boolean delegateEquals(java.lang.Object object)
          Returns whether the object is a list with corresponding equal objects to those in the backing store list.
protected  E delegateGet(int index)
          Returns the object at the index in the backing store list.
protected  int delegateHashCode()
          Returns the hash code of the backing store list.
protected  int delegateIndexOf(java.lang.Object object)
          Returns the position of the first occurrence of the object in the backing store list.
protected  boolean delegateIsEmpty()
          Returns whether the backing store list has zero size.
protected  java.util.Iterator<E> delegateIterator()
          Returns an iterator over the backing store list.
protected  int delegateLastIndexOf(java.lang.Object object)
          Returns the position of the last occurrence of the object in the backing store list.
protected  java.util.List<E> delegateList()
          Returns the list that acts as the backing store.
protected  java.util.ListIterator<E> delegateListIterator()
          Returns a list iterator over the backing store list.
protected  E delegateMove(int targetIndex, int sourceIndex)
          Moves the object at the source index in the backing store list by removing it and adding it at the new target index.
protected  E delegateRemove(int index)
          Removes the object at the index from the backing store list and returns it.
protected  E delegateSet(int index, E object)
          Sets the object at the index in the backing store list and returns the old object at the index.
protected  int delegateSize()
          Returns the number of objects in the backing store list.
protected  java.lang.Object[] delegateToArray()
          Returns an array containing all the objects in the backing store list in sequence.
protected
<T> T[]
delegateToArray(T[] array)
          Returns an array containing all the objects in the backing store list in sequence.
protected  java.lang.String delegateToString()
          Returns a the string form of the backing store list.
protected  InternalEObject.EStore eStore()
           
 EStructuralFeature getEStructuralFeature()
          Returns the specific feature holding a value for the object.
 
Methods inherited from class org.eclipse.emf.ecore.util.DelegatingEcoreEList.Generic
canContainNull, didChange, hasInstanceClass, hasInverse, hasManyInverse, hasNavigableInverse, hasProxies, isContainer, isContainment, isEObject, isSet, isUnique, isUnsettable, kind, unset, useEquals
 
Methods inherited from class org.eclipse.emf.ecore.util.DelegatingEcoreEList
contains, createNotification, createNotification, dispatchNotification, get, getEObject, getFeature, getFeatureID, getFeatureType, getInverseEReference, getInverseFeatureClass, getInverseFeatureID, getNotifier, indexOf, inverseAdd, inverseRemove, isInstance, isNotificationRequired, lastIndexOf, resolve, resolve, resolveProxy, set, toArray, toArray, validate
 
Methods inherited from class org.eclipse.emf.ecore.util.DelegatingNotifyingInternalEListImpl
basicContains, basicContainsAll, basicGet, basicIndexOf, basicIterator, basicLastIndexOf, basicList, basicListIterator, basicListIterator, basicToArray, basicToArray
 
Methods inherited from class org.eclipse.emf.common.notify.impl.DelegatingNotifyingListImpl
addAllUnique, addAllUnique, addAllUnique, addAllUnique, addUnique, addUnique, basicAdd, basicRemove, basicSet, clear, createNotification, createNotificationChain, doAddAllUnique, doAddAllUnique, doAddAllUnique, doAddAllUnique, doAddUnique, doAddUnique, doClear, doMove, doRemove, doRemoveAll, doSetUnique, getFeatureID, hasShadow, move, remove, removeAll, setUnique, shadowAdd, shadowRemove, shadowSet
 
Methods inherited from class org.eclipse.emf.common.util.DelegatingEList
add, add, addAll, addAll, containsAll, didAdd, didClear, didMove, didRemove, didSet, doClear, equalObjects, equals, get, getDuplicates, getNonDuplicates, hashCode, isEmpty, iterator, listIterator, listIterator, move, remove, retainAll, set, size, toString
 
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
addAllUnique, addAllUnique, addUnique, addUnique, basicAdd, basicContains, basicContainsAll, basicGet, basicIndexOf, basicIterator, basicLastIndexOf, basicList, basicListIterator, basicListIterator, basicRemove, basicToArray, basicToArray, 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, containsAll, equals, get, hashCode, isEmpty, iterator, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList
 

Constructor Detail

EStoreEObjectImpl.BasicEStoreEList

public EStoreEObjectImpl.BasicEStoreEList(InternalEObject owner,
                                          EStructuralFeature eStructuralFeature)
Method Detail

eStore

protected InternalEObject.EStore eStore()

delegateList

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

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

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
Overrides:
getEStructuralFeature in class DelegatingEcoreEList.Dynamic<E>
Returns:
the specific feature holding a value for the object.

delegateAdd

protected void delegateAdd(int index,
                           java.lang.Object object)
Description copied from class: DelegatingEList
Adds the object at the given index in the backing store list.

Overrides:
delegateAdd in class DelegatingEList<E>
object - the object to be added.

delegateAdd

protected void delegateAdd(java.lang.Object object)
Description copied from class: DelegatingEList
Adds the object at the end of the backing store list.

Overrides:
delegateAdd in class DelegatingEList<E>
Parameters:
object - the object to be added.

delegateBasicList

protected java.util.List<E> delegateBasicList()
Description copied from class: DelegatingEList
Returns an unsafe list that provides a non-resolving view of the backing store list.

Overrides:
delegateBasicList in class DelegatingEList<E>
Returns:
an unsafe list that provides a non-resolving view of the backing store list.

delegateClear

protected void delegateClear()
Description copied from class: DelegatingEList
Clears the backing store list of all objects.

Overrides:
delegateClear in class DelegatingEList<E>

delegateContains

protected boolean delegateContains(java.lang.Object object)
Description copied from class: DelegatingEList
Returns whether the backing store list contains the object.

Overrides:
delegateContains in class DelegatingEList<E>
Parameters:
object - the object in question.
Returns:
whether the backing store list contains the object.

delegateContainsAll

protected boolean delegateContainsAll(java.util.Collection<?> collection)
Description copied from class: DelegatingEList
Returns whether the backing store list contains each object in the collection.

Overrides:
delegateContainsAll in class DelegatingEList<E>
Returns:
whether the backing store list contains each object in the collection.
See Also:
DelegatingEList.contains(java.lang.Object), DelegatingEList.useEquals()

delegateGet

protected E delegateGet(int index)
Description copied from class: DelegatingEList
Returns the object at the index in the backing store list.

Overrides:
delegateGet in class DelegatingEList<E>
Parameters:
index - the position in question.
Returns:
the object at the index.

delegateHashCode

protected int delegateHashCode()
Description copied from class: DelegatingEList
Returns the hash code of the backing store list.

Overrides:
delegateHashCode in class DelegatingEList<E>
Returns:
a hash code.

delegateIndexOf

protected int delegateIndexOf(java.lang.Object object)
Description copied from class: DelegatingEList
Returns the position of the first occurrence of the object in the backing store list.

Overrides:
delegateIndexOf in class DelegatingEList<E>
Parameters:
object - the object in question.
Returns:
the position of the first occurrence of the object in the backing store list.

delegateIsEmpty

protected boolean delegateIsEmpty()
Description copied from class: DelegatingEList
Returns whether the backing store list has zero size.

Overrides:
delegateIsEmpty in class DelegatingEList<E>
Returns:
whether the backing store list has zero size.

delegateIterator

protected java.util.Iterator<E> delegateIterator()
Description copied from class: DelegatingEList
Returns an iterator over the backing store list.

Overrides:
delegateIterator in class DelegatingEList<E>
Returns:
an iterator.

delegateLastIndexOf

protected int delegateLastIndexOf(java.lang.Object object)
Description copied from class: DelegatingEList
Returns the position of the last occurrence of the object in the backing store list.

Overrides:
delegateLastIndexOf in class DelegatingEList<E>
Parameters:
object - the object in question.
Returns:
the position of the last occurrence of the object in the backing store list.

delegateListIterator

protected java.util.ListIterator<E> delegateListIterator()
Description copied from class: DelegatingEList
Returns a list iterator over the backing store list.

Overrides:
delegateListIterator in class DelegatingEList<E>
Returns:
a list iterator.

delegateRemove

protected E delegateRemove(int index)
Description copied from class: DelegatingEList
Removes the object at the index from the backing store list and returns it.

Overrides:
delegateRemove in class DelegatingEList<E>
Returns:
the removed object.

delegateSet

protected E delegateSet(int index,
                        E object)
Description copied from class: DelegatingEList
Sets the object at the index in the backing store list and returns the old object at the index.

Overrides:
delegateSet in class DelegatingEList<E>
object - the object to set.
Returns:
the old object at the index.

delegateSize

protected int delegateSize()
Description copied from class: DelegatingEList
Returns the number of objects in the backing store list.

Overrides:
delegateSize in class DelegatingEList<E>
Returns:
the number of objects in the backing store list.

delegateToArray

protected java.lang.Object[] delegateToArray()
Description copied from class: DelegatingEList
Returns an array containing all the objects in the backing store list in sequence.

Overrides:
delegateToArray in class DelegatingEList<E>
Returns:
an array containing all the objects in the backing store list in sequence.

delegateToArray

protected <T> T[] delegateToArray(T[] array)
Description copied from class: DelegatingEList
Returns an array containing all the objects in the backing store list in sequence.

Overrides:
delegateToArray in class DelegatingEList<E>
Parameters:
array - the array that will be filled and returned, if it's big enough; otherwise, a suitably large array of the same type will be allocated and used instead.
Returns:
an array containing all the objects in sequence.

delegateMove

protected E delegateMove(int targetIndex,
                         int sourceIndex)
Description copied from class: DelegatingEList
Moves the object at the source index in the backing store list by removing it and adding it at the new target index.

Overrides:
delegateMove in class DelegatingEList<E>
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.

delegateEquals

protected boolean delegateEquals(java.lang.Object object)
Description copied from class: DelegatingEList
Returns whether the object is a list with corresponding equal objects to those in the backing store list.

Overrides:
delegateEquals in class DelegatingEList<E>
Returns:
whether the object is a list with corresponding equal objects.

delegateToString

protected java.lang.String delegateToString()
Description copied from class: DelegatingEList
Returns a the string form of the backing store list.

Overrides:
delegateToString in class DelegatingEList<E>
Returns:
a the string form of the backing store list.

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