|
|||||||||
| PREV CLASS SOURCE 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.util.EcoreEList
| Inner Class Summary | |
static class |
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.EStructuralFeature.Setting |
EStructuralFeature.Setting.Internal |
| Field Summary | |
protected java.lang.Class |
dataClass
|
protected InternalEObject |
owner
|
| Fields inherited from class org.eclipse.emf.common.util.BasicEList |
data, size |
| Fields inherited from class java.util.AbstractList |
modCount |
| Constructor Summary | |
EcoreEList(java.lang.Class dataClass,
InternalEObject owner)
|
|
| 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. |
boolean |
contains(java.lang.Object object)
Resolve to compare objects but do not modify list |
protected Notification |
createNotification(int eventType,
boolean oldValue,
boolean newValue)
|
protected Notification |
createNotification(int eventType,
java.lang.Object oldObject,
java.lang.Object newObject,
int index)
Creates a notification. |
protected void |
dispatchNotification(Notification notification)
Dispatches a notification to the notifier of the list. |
java.lang.Object |
get(boolean resolve)
Returns the value held by the feature of the object; it optionally resolves the value. |
EObject |
getEObject()
Returns the object holding a value. |
EStructuralFeature |
getEStructuralFeature()
Returns the specific feature holding a value for the object. |
java.lang.Object |
getFeature()
Returns null. |
int |
getFeatureID()
Returns Notification.NO_FEATURE_ID. |
EStructuralFeature |
getInverseEStructuralFeature()
|
java.lang.Class |
getInverseFeatureClass()
|
int |
getInverseFeatureID()
|
java.lang.Object |
getNotifier()
Returns null. |
protected boolean |
hasManyInverse()
|
protected boolean |
hasNavigableInverse()
|
protected boolean |
hasProxies()
|
int |
indexOf(java.lang.Object object)
Returns the position of the first occurrence of the object in the list. |
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 |
isContainment()
|
protected boolean |
isEObject()
|
protected boolean |
isNotificationRequired()
Returns false. |
boolean |
isSet()
Returns whether a value is held by the feature of the object. |
int |
lastIndexOf(java.lang.Object object)
Returns the position of the last occurrence of the object in the list. |
protected java.lang.Object[] |
newData(int capacity)
Returns new allocated data storage. |
protected java.lang.Object |
resolve(int index,
java.lang.Object object)
Resolves the object at the index and returns the result. |
protected EObject |
resolveProxy(EObject eObject)
|
void |
set(java.lang.Object newValue)
Set the value held by the feature of the object. |
java.lang.Object[] |
toArray()
Returns an array containing all the objects in sequence. |
java.lang.Object[] |
toArray(java.lang.Object[] array)
Returns an array containing all the objects in sequence. |
void |
unset()
Unsets the value held by the feature of the object. |
| Methods inherited from class org.eclipse.emf.common.notify.impl.NotifyingListImpl |
addAllUnique, addAllUnique, addUnique, addUnique, basicAdd, basicRemove, basicSet, canContainNull, clear, createNotificationChain, getFeatureID, hasInverse, move, remove, removeAll, setUnique |
| Methods inherited from class org.eclipse.emf.common.util.BasicEList |
add, add, addAll, addAll, assign, clone, containsAll, data, didAdd, didChange, didClear, didMove, didRemove, didSet, equalObjects, equals, get, getDuplicates, getNonDuplicates, grow, hashCode, isEmpty, isUnique, iterator, listIterator, listIterator, move, remove, retainAll, set, shrink, size, toString, useEquals, 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, containsAll, equals, get, hashCode, isEmpty, iterator, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList |
| Methods inherited from interface org.eclipse.emf.ecore.EStructuralFeature.Setting.Internal |
basicAdd, basicRemove |
| Field Detail |
protected java.lang.Class dataClass
protected InternalEObject owner
| Constructor Detail |
public EcoreEList(java.lang.Class dataClass,
InternalEObject owner)
| Method Detail |
protected java.lang.Object[] newData(int capacity)
BasicEListnewData in class BasicEListorg.eclipse.emf.common.util.BasicEListpublic java.lang.Object getNotifier()
NotifyingListImplnull.getNotifier in class NotifyingListImplorg.eclipse.emf.common.notify.impl.NotifyingListImplnull.public java.lang.Object getFeature()
NotifyingListImplnull.getFeature 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.public EStructuralFeature getEStructuralFeature()
EStructuralFeature.SettinggetEStructuralFeature in interface EStructuralFeature.Settingorg.eclipse.emf.ecore.EStructuralFeature.Settingpublic EStructuralFeature getInverseEStructuralFeature()
public int getInverseFeatureID()
public java.lang.Class getInverseFeatureClass()
protected boolean hasManyInverse()
protected boolean hasNavigableInverse()
protected boolean isEObject()
protected boolean isContainment()
protected boolean hasProxies()
protected java.lang.Object resolve(int index,
java.lang.Object object)
BasicEListobject;
clients can use this to transform objects as they are fetched.resolve in class BasicEListorg.eclipse.emf.common.util.BasicEListindex - the position of the content.object - the content.protected EObject resolveProxy(EObject eObject)
public java.lang.Object[] toArray()
BasicEListnewData to create typed storage in this case.toArray in interface java.util.ListtoArray in class BasicEListorg.eclipse.emf.common.util.BasicEListBasicEList.newData(int)public java.lang.Object[] toArray(java.lang.Object[] array)
BasicEListtoArray in interface java.util.ListtoArray in class BasicEListorg.eclipse.emf.common.util.BasicEListarray - 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.BasicEList.newData(int)
protected Notification createNotification(int eventType,
java.lang.Object oldObject,
java.lang.Object newObject,
int index)
NotifyingListImplcreateNotification in class NotifyingListImplorg.eclipse.emf.common.notify.impl.NotifyingListImpleventType - the type of change that has occurred.oldValue - the value of the notifier's feature before the change occurred.newValue - the value of the notifier's feature after the change occurred.index - the position at which the change occurred.
protected Notification createNotification(int eventType,
boolean oldValue,
boolean newValue)
protected void dispatchNotification(Notification notification)
NotifyingListImpldispatchNotification in class NotifyingListImplorg.eclipse.emf.common.notify.impl.NotifyingListImplnotification - the notification to dispatch.public java.util.List basicList()
InternalEListbasicList in interface InternalEListbasicList in class BasicEListorg.eclipse.emf.common.util.BasicEListprotected boolean isNotificationRequired()
NotifyingListImplfalse.isNotificationRequired in class NotifyingListImplorg.eclipse.emf.common.notify.impl.NotifyingListImplfalse.
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 boolean contains(java.lang.Object object)
contains in interface java.util.Listcontains in class BasicEListorg.eclipse.emf.common.util.BasicEListobject - the object in question.BasicEList.useEquals()public int indexOf(java.lang.Object object)
BasicEListequals or "==" depending on useEquals.indexOf in interface java.util.ListindexOf in class BasicEListorg.eclipse.emf.common.util.BasicEListobject - the object in question.public int lastIndexOf(java.lang.Object object)
BasicEListequals or "==" depending on useEquals.lastIndexOf in interface java.util.ListlastIndexOf in class BasicEListorg.eclipse.emf.common.util.BasicEListobject - the object in question.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 EObject getEObject()
EStructuralFeature.SettinggetEObject in interface EStructuralFeature.Settingorg.eclipse.emf.ecore.EStructuralFeature.Settingpublic java.lang.Object get(boolean resolve)
EStructuralFeature.Settingresolves the value.get in interface EStructuralFeature.Settingorg.eclipse.emf.ecore.EStructuralFeature.Settingresolve - whether to resolve.EObject.eGet(EStructuralFeature, boolean)public void set(java.lang.Object newValue)
EStructuralFeature.Settingset in interface EStructuralFeature.Settingorg.eclipse.emf.ecore.EStructuralFeature.SettingnewValue - the newValue.EObject.eSet(EStructuralFeature, Object)public boolean isSet()
EStructuralFeature.SettingisSet in interface EStructuralFeature.Settingorg.eclipse.emf.ecore.EStructuralFeature.SettingEObject.eIsSet(EStructuralFeature)public void unset()
EStructuralFeature.Settingunset in interface EStructuralFeature.Settingorg.eclipse.emf.ecore.EStructuralFeature.SettingEObject.eUnset(EStructuralFeature)
|
Copyright 2001-2002 IBM Corporation and others. All Rights Reserved. |
||||||||
| PREV CLASS SOURCE NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||