org.eclipse.emf.ecore.util
Class EObjectEList

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--org.eclipse.emf.common.util.BasicEList
                    |
                    +--org.eclipse.emf.common.notify.impl.NotifyingListImpl
                          |
                          +--org.eclipse.emf.ecore.util.EcoreEList
                                |
                                +--org.eclipse.emf.ecore.util.EObjectEList
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, EList, EStructuralFeature.Setting, InternalEList, InternalEList.Unsettable, java.util.List, NotifyingList, java.io.Serializable
Direct Known Subclasses:
EObjectContainmentEList, EObjectEList.Unsettable, EObjectResolvingEList, EObjectWithInverseEList

public class EObjectEList
extends EcoreEList

See Also:
Serialized Form

Inner Class Summary
static class EObjectEList.Unsettable
           
 
Inner classes inherited from class org.eclipse.emf.ecore.util.EcoreEList
EcoreEList.Dynamic, EcoreEList.Generic, EcoreEList.UnmodifiableEList
 
Inner classes inherited from class org.eclipse.emf.common.util.BasicEList
BasicEList.EIterator, BasicEList.EListIterator, BasicEList.NonResolvingEIterator, BasicEList.NonResolvingEListIterator, BasicEList.UnmodifiableEList
 
Inner classes inherited from class org.eclipse.emf.ecore.util.InternalEList
InternalEList.Unsettable
 
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(java.lang.Class dataClass, InternalEObject owner, int featureID)
           
 
Method Summary
protected  boolean canContainNull()
          Returns !hasInverse().
 int getFeatureID()
          Returns Notification.NO_FEATURE_ID.
protected  boolean hasInverse()
          Returns false.
protected  boolean hasProxies()
           
protected  boolean isEObject()
           
protected  boolean isUnique()
          Returns whether objects are constrained to appear at most once in the list.
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, indexOf, inverseAdd, inverseRemove, isContainment, isNotificationRequired, isSet, lastIndexOf, newData, resolve, resolveProxy, set, toArray, toArray, unset, validate
 
Methods inherited from class org.eclipse.emf.common.notify.impl.NotifyingListImpl
addAllUnique, addAllUnique, addUnique, addUnique, basicAdd, basicRemove, basicSet, clear, getFeatureID, move, remove, removeAll, setUnique
 
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, 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(java.lang.Class dataClass,
                    InternalEObject owner,
                    int featureID)
Method Detail

getFeatureID

public int getFeatureID()
Description copied from class: NotifyingListImpl
Returns Notification.NO_FEATURE_ID.
Overrides:
getFeatureID in class EcoreEList
Following copied from class: org.eclipse.emf.common.notify.impl.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
Following copied from class: org.eclipse.emf.common.util.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
Following copied from class: org.eclipse.emf.common.util.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
Following copied from class: org.eclipse.emf.common.notify.impl.NotifyingListImpl
Returns:
false.

isEObject

protected boolean isEObject()
Overrides:
isEObject in class EcoreEList

hasProxies

protected boolean hasProxies()
Overrides:
hasProxies in class EcoreEList

canContainNull

protected boolean canContainNull()
Description copied from class: NotifyingListImpl
Returns !NotifyingListImpl.hasInverse().
Overrides:
canContainNull in class NotifyingListImpl
Following copied from class: org.eclipse.emf.common.notify.impl.NotifyingListImpl
Returns:
!hasInverse.

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