|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
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.resource.impl.ResourceImpl.ContentsEList
A notifying list implementation for supporting Resource.getContents().
| Inner classes inherited from class org.eclipse.emf.common.util.BasicEList |
BasicEList.EIterator, BasicEList.EListIterator, BasicEList.NonResolvingEIterator, BasicEList.NonResolvingEListIterator, BasicEList.UnmodifiableEList |
| Fields inherited from class org.eclipse.emf.common.util.BasicEList |
data, size |
| Fields inherited from class java.util.AbstractList |
modCount |
| Constructor Summary | |
protected |
ResourceImpl.ContentsEList()
|
| Method Summary | |
java.util.Iterator |
basicIterator()
Returns an iterator that yields unresolved values. |
java.util.List |
basicList()
Returns an unmodifiable list that yields unresolved values. |
java.util.ListIterator |
basicListIterator()
Returns a list iterator that yields unresolved values. |
java.util.ListIterator |
basicListIterator(int index)
Returns a list iterator that yields unresolved values. |
protected void |
didAdd(int index,
java.lang.Object object)
Called to indicate that an object has been added to the data storage. |
protected void |
didClear(int oldSize,
java.lang.Object[] oldData)
Called to indicate that the data storage has been cleared. |
protected void |
didRemove(int index,
java.lang.Object object)
Called to indicate that an object has been removed from the data storage. |
protected void |
didSet(int index,
java.lang.Object newObject,
java.lang.Object oldObject)
Called to indicate that the data storage has been set. |
int |
getFeatureID()
Returns Notification.NO_FEATURE_ID. |
java.lang.Object |
getNotifier()
Returns null. |
protected boolean |
hasInverse()
Returns false. |
NotificationChain |
inverseAdd(java.lang.Object object,
NotificationChain notifications)
Does nothing and returns the notifications. |
NotificationChain |
inverseRemove(java.lang.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 void |
loaded()
|
protected void |
modified()
|
protected java.lang.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, addUnique, addUnique, basicAdd, basicRemove, basicSet, canContainNull, clear, createNotification, createNotificationChain, dispatchNotification, getFeature, getFeatureID, move, remove, removeAll, setUnique |
| Methods inherited from class org.eclipse.emf.common.util.BasicEList |
add, add, addAll, addAll, assign, clone, contains, containsAll, data, didChange, didMove, equalObjects, equals, get, getDuplicates, getNonDuplicates, grow, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, move, remove, resolve, retainAll, set, 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, basicRemove |
| 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 |
protected ResourceImpl.ContentsEList()
| Method Detail |
public java.lang.Object getNotifier()
NotifyingListImplnull.getNotifier in class NotifyingListImplorg.eclipse.emf.common.notify.impl.NotifyingListImplnull.public int getFeatureID()
NotifyingListImplNotification.NO_FEATURE_ID.getFeatureID in class NotifyingListImplorg.eclipse.emf.common.notify.impl.NotifyingListImplNotification.NO_FEATURE_ID.protected boolean isNotificationRequired()
NotifyingListImplfalse.isNotificationRequired in class NotifyingListImplorg.eclipse.emf.common.notify.impl.NotifyingListImplfalse.protected boolean useEquals()
BasicEListequals 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.useEquals in class BasicEListorg.eclipse.emf.common.util.BasicEListequals rather than == should be used.protected boolean hasInverse()
NotifyingListImplfalse.hasInverse in class NotifyingListImplorg.eclipse.emf.common.notify.impl.NotifyingListImplfalse.protected boolean isUnique()
BasicEListfalse, 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.isUnique in class BasicEListorg.eclipse.emf.common.util.BasicEList
public NotificationChain inverseAdd(java.lang.Object object,
NotificationChain notifications)
NotifyingListImplnotifications.
Clients can override this to update the inverse of a bidirectional relation.inverseAdd in class NotifyingListImplorg.eclipse.emf.common.notify.impl.NotifyingListImplobject - the object that's been added to the list.notifications - the chain of accumulating notifications.notifications.
public NotificationChain inverseRemove(java.lang.Object object,
NotificationChain notifications)
NotifyingListImplnotifications.
Clients can override this to update the inverse of a bidirectional relation.inverseRemove in class NotifyingListImplorg.eclipse.emf.common.notify.impl.NotifyingListImplobject - the object that's been remove from the list.notifications - the chain of accumulating notifications.notifications.public java.util.Iterator basicIterator()
InternalEListbasicIterator in interface InternalEListbasicIterator in class BasicEListorg.eclipse.emf.common.util.BasicEListpublic java.util.ListIterator basicListIterator()
InternalEListbasicListIterator in interface InternalEListbasicListIterator in class BasicEListorg.eclipse.emf.common.util.BasicEListpublic java.util.ListIterator basicListIterator(int index)
InternalEListbasicListIterator in interface InternalEListbasicListIterator in class BasicEListorg.eclipse.emf.common.util.BasicEListindex - the starting index.java.lang.IndexOutOfBoundsException - if the index isn't within the size range.public java.util.List basicList()
InternalEListbasicList in interface InternalEListbasicList in class BasicEListorg.eclipse.emf.common.util.BasicEListprotected java.lang.Object[] newData(int capacity)
BasicEListnewData in class BasicEListorg.eclipse.emf.common.util.BasicEList
protected void didAdd(int index,
java.lang.Object object)
BasicEListdidAdd in class BasicEListorg.eclipse.emf.common.util.BasicEListindex - the position object the new object.newObject - the new object at the position.
protected void didRemove(int index,
java.lang.Object object)
BasicEListdidRemove in class BasicEListorg.eclipse.emf.common.util.BasicEListindex - the position of the old object.oldObject - the old object at the position.
protected void didSet(int index,
java.lang.Object newObject,
java.lang.Object oldObject)
BasicEListdidSet in class BasicEListorg.eclipse.emf.common.util.BasicEListindex - the position that was set.newObject - the new object at the position.oldObject - the old object at the position.
protected void didClear(int oldSize,
java.lang.Object[] oldData)
BasicEListdidRemove for each object;
clients can use this to monitor clearing of the data storage.didClear in class BasicEListorg.eclipse.emf.common.util.BasicEListsize - the original size of the list.oldObjects - the old data storage being discarded.BasicEList.didRemove(int, java.lang.Object)protected void loaded()
protected void modified()
|
Copyright 2001-2002 IBM Corporation and others. All Rights Reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||