org.eclipse.emf.ecore.util
Class EObjectEList

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.util.EcoreEList
                      extended byorg.eclipse.emf.ecore.util.EObjectEList
All Implemented Interfaces:
Cloneable, Collection, EList, EStructuralFeature.Setting, InternalEList, InternalEList.Unsettable, List, NotifyingList, RandomAccess, Serializable
Direct Known Subclasses:
EObjectContainmentEList, EObjectEList.Unsettable, EObjectResolvingEList, EObjectWithInverseEList

public class EObjectEList
extends EcoreEList

See Also:
Serialized Form

Nested Class Summary
static class EObjectEList.Unsettable
           
 
Nested classes inherited from class org.eclipse.emf.ecore.util.EcoreEList
EcoreEList.Dynamic, EcoreEList.Generic, EcoreEList.UnmodifiableEList
 
Nested classes inherited from class org.eclipse.emf.common.util.BasicEList
BasicEList.BasicIndexOutOfBoundsException, BasicEList.EIterator, BasicEList.EListIterator, BasicEList.FastCompare, BasicEList.NonResolvingEIterator, BasicEList.NonResolvingEListIterator
 
Field Summary
protected  int featureID
           
 
Fields inherited from class org.eclipse.emf.ecore.util.EcoreEList
dataClass, owner
 
Fields inherited from class org.eclipse.emf.common.util.BasicEList
data, size
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
EObjectEList(Class dataClass, InternalEObject owner, int featureID)
           
 
Method Summary
protected  boolean canContainNull()
          Returns !
 int getFeatureID()
          Returns Notification.NO_FEATURE_ID.
protected  boolean hasInverse()
          Returns false.
protected  boolean isEObject()
           
protected  boolean isUnique()
          Returns whether objects are constrained to appear at most once in the list.
protected  Object resolve(int index, Object object)
          Resolves the object at the index and returns the result.
protected  boolean useEquals()
          Returns whether equals rather than == should be used to compare members.
 
Methods inherited from class org.eclipse.emf.ecore.util.EcoreEList
basicIterator, basicList, basicListIterator, basicListIterator, contains, createNotification, createNotification, dispatchNotification, get, getEObject, getEStructuralFeature, getFeature, getFeatureType, getInverseEReference, getInverseFeatureClass, getInverseFeatureID, getNotifier, hasInstanceClass, hasManyInverse, hasNavigableInverse, hasProxies, indexOf, inverseAdd, inverseRemove, isContainment, isInstance, isNotificationRequired, isSet, lastIndexOf, newData, resolve, resolve, resolveProxy, set, toArray, toArray, unset, validate
 
Methods inherited from class org.eclipse.emf.common.notify.impl.NotifyingListImpl
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.BasicEList
add, add, addAll, addAll, assign, basicGet, clone, containsAll, data, didAdd, didChange, didClear, didMove, didRemove, didSet, equalObjects, equals, get, getDuplicates, getNonDuplicates, grow, hashCode, isEmpty, iterator, listIterator, listIterator, move, remove, retainAll, set, setData, shrink, size, toString
 
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, containsAll, equals, get, hashCode, isEmpty, iterator, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList
 

Field Detail

featureID

protected final int featureID
Constructor Detail

EObjectEList

public EObjectEList(Class dataClass,
                    InternalEObject owner,
                    int featureID)
Method Detail

getFeatureID

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

Specified by:
getFeatureID in interface NotifyingList
Overrides:
getFeatureID in class EcoreEList

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.

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.

hasInverse

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

Overrides:
hasInverse in class NotifyingListImpl
Returns:
false.

isEObject

protected boolean isEObject()
Overrides:
isEObject in class EcoreEList

canContainNull

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

Overrides:
canContainNull in class NotifyingListImpl
Returns:
!hasInverse.

resolve

protected Object resolve(int index,
                         Object object)
Description copied from class: BasicEList
Resolves the object at the index and returns the result. This implementation simply returns the object; clients can use this to transform objects as they are fetched.

Overrides:
resolve in class EcoreEList

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