org.eclipse.emf.ecore.resource.impl
Class ResourceSetImpl.ResourcesEList

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byorg.eclipse.emf.common.util.BasicEList
              extended byorg.eclipse.emf.common.notify.impl.NotifyingListImpl
                  extended byorg.eclipse.emf.ecore.resource.impl.ResourceSetImpl.ResourcesEList
All Implemented Interfaces:
Cloneable, Collection, EList, InternalEList, List, NotifyingList, RandomAccess, Serializable
Enclosing class:
ResourceSetImpl

protected class ResourceSetImpl.ResourcesEList
extends NotifyingListImpl
implements InternalEList

A notifying list implementation for supporting ResourceSet.getResources().

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class org.eclipse.emf.common.util.BasicEList
BasicEList.BasicIndexOutOfBoundsException, BasicEList.EIterator, BasicEList.EListIterator, BasicEList.FastCompare, BasicEList.NonResolvingEIterator, BasicEList.NonResolvingEListIterator, BasicEList.UnmodifiableEList
 
Nested classes inherited from class org.eclipse.emf.ecore.util.InternalEList
InternalEList.Unsettable
 
Field Summary
 
Fields inherited from class org.eclipse.emf.common.util.BasicEList
data, size
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
protected ResourceSetImpl.ResourcesEList()
           
 
Method Summary
 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.
 int getFeatureID()
          Returns Notification.NO_FEATURE_ID.
 Object getNotifier()
          Returns null.
protected  boolean hasInverse()
          Returns false.
protected  NotificationChain inverseAdd(Object object, NotificationChain notifications)
          Does nothing and returns the notifications.
protected  NotificationChain inverseRemove(Object object, NotificationChain notifications)
          Does nothing and returns the notifications.
protected  boolean isNotificationRequired()
          Returns false.
protected  boolean isUnique()
          Returns whether objects are constrained to appear at most once in the list.
protected  Object[] newData(int capacity)
          Returns new allocated data storage.
protected  boolean useEquals()
          Returns whether equals rather than == should be used to compare members.
 
Methods inherited from class org.eclipse.emf.common.notify.impl.NotifyingListImpl
addAllUnique, addAllUnique, addAllUnique, addAllUnique, addUnique, addUnique, basicAdd, basicRemove, basicSet, canContainNull, clear, createNotification, createNotification, createNotificationChain, dispatchNotification, doAddAllUnique, doAddAllUnique, doAddAllUnique, doAddAllUnique, doAddUnique, doAddUnique, doClear, doMove, doRemove, doRemoveAll, doSetUnique, getFeature, getFeatureID, hasShadow, isSet, move, remove, removeAll, resolve, setUnique, shadowAdd, shadowRemove, shadowSet
 
Methods inherited from class org.eclipse.emf.common.util.BasicEList
add, add, addAll, addAll, assign, basicGet, clone, contains, containsAll, data, didAdd, didChange, didClear, didMove, didRemove, didSet, equalObjects, equals, get, getDuplicates, getNonDuplicates, grow, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, move, remove, resolve, retainAll, set, setData, shrink, size, toArray, toArray, toString, 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, basicAdd, basicGet, basicRemove, 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
 

Constructor Detail

ResourceSetImpl.ResourcesEList

protected ResourceSetImpl.ResourcesEList()
Method Detail

isNotificationRequired

protected boolean isNotificationRequired()
Description copied from class: NotifyingListImpl
Returns false.

Overrides:
isNotificationRequired in class NotifyingListImpl
Returns:
false.

newData

protected Object[] newData(int capacity)
Description copied from class: BasicEList
Returns new allocated data storage. Clients may override this to create typed storage. The cost of type checking via a typed array is negligable.

Overrides:
newData in class BasicEList
Returns:
new data storage.

getNotifier

public Object getNotifier()
Description copied from class: NotifyingListImpl
Returns null.

Specified by:
getNotifier in interface NotifyingList
Overrides:
getNotifier in class NotifyingListImpl
Returns:
null.

getFeatureID

public int getFeatureID()
Description copied from class: NotifyingListImpl
Returns Notification.NO_FEATURE_ID.

Specified by:
getFeatureID in interface NotifyingList
Overrides:
getFeatureID in class NotifyingListImpl
Returns:
Notification.NO_FEATURE_ID.

useEquals

protected boolean useEquals()
Description copied from class: BasicEList
Returns whether equals rather than == should be used to compare members. The default is to return true but clients can optimize performance by returning false. The performance difference is highly significant.

Overrides:
useEquals in class BasicEList
Returns:
whether equals rather than == should be used.

hasInverse

protected boolean hasInverse()
Description copied from class: NotifyingListImpl
Returns false.

Overrides:
hasInverse in class NotifyingListImpl
Returns:
false.

isUnique

protected boolean isUnique()
Description copied from class: BasicEList
Returns whether objects are constrained to appear at most once in the list. The default is to return false, but clients can override this to ensure uniqueness of contents. The performance impact is signifcant: operations such as add are O(n) as a result requiring uniqueness.

Overrides:
isUnique in class BasicEList
Returns:
whether objects are constrained to appear at most once in the list.

inverseAdd

protected NotificationChain inverseAdd(Object object,
                                       NotificationChain notifications)
Description copied from class: NotifyingListImpl
Does nothing and returns the notifications. Clients can override this to update the inverse of a bidirectional relation.

Overrides:
inverseAdd in class NotifyingListImpl
Parameters:
object - the object that's been added to the list.
notifications - the chain of accumulating notifications.
Returns:
the notifications.

inverseRemove

protected NotificationChain inverseRemove(Object object,
                                          NotificationChain notifications)
Description copied from class: NotifyingListImpl
Does nothing and returns the notifications. Clients can override this to update the inverse of a bidirectional relation.

Overrides:
inverseRemove in class NotifyingListImpl
Parameters:
object - the object that's been remove from the list.
notifications - the chain of accumulating notifications.
Returns:
the notifications.

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.

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.

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