|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.util.AbstractCollection
java.util.AbstractList
org.eclipse.emf.common.util.BasicEList
org.eclipse.emf.common.notify.impl.NotifyingListImpl
org.eclipse.emf.ecore.util.EcoreEList
| Nested Class Summary | |
static class |
EcoreEList.Dynamic
|
static class |
EcoreEList.Generic
|
static class |
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 |
| Nested classes inherited from class org.eclipse.emf.ecore.util.InternalEList |
InternalEList.Unsettable |
| Field Summary | |
protected 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(Class dataClass,
InternalEObject owner)
|
|
| 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. |
boolean |
contains(Object object)
Resolve to compare objects but do not modify list |
protected NotificationImpl |
createNotification(int eventType,
boolean oldValue,
boolean newValue)
|
protected NotificationImpl |
createNotification(int eventType,
Object oldObject,
Object newObject,
int index,
boolean wasSet)
Creates a notification. |
protected void |
dispatchNotification(Notification notification)
Dispatches a notification to the notifier of the list. |
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. |
Object |
getFeature()
Returns null. |
int |
getFeatureID()
Returns Notification.NO_FEATURE_ID. |
protected EClassifier |
getFeatureType()
|
protected EReference |
getInverseEReference()
|
protected Class |
getInverseFeatureClass()
|
protected int |
getInverseFeatureID()
|
Object |
getNotifier()
Returns null. |
protected boolean |
hasInstanceClass()
|
protected boolean |
hasManyInverse()
|
protected boolean |
hasNavigableInverse()
|
protected boolean |
hasProxies()
|
int |
indexOf(Object object)
Returns the position of the first occurrence of the object in the list. |
NotificationChain |
inverseAdd(Object object,
NotificationChain notifications)
Does nothing and returns the notifications.
|
NotificationChain |
inverseRemove(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(Object object)
Returns the position of the last occurrence of the object in the list. |
protected Object[] |
newData(int capacity)
Returns new allocated data storage. |
protected EObject |
resolve(int index,
EObject eObject)
|
protected Object |
resolve(int index,
Object object)
Resolves the object at the index and returns the result. |
protected EObject |
resolveProxy(EObject eObject)
|
void |
set(Object newValue)
Set the value held by the feature of the object. |
Object[] |
toArray()
Returns an array containing all the objects in sequence. |
Object[] |
toArray(Object[] array)
Returns an array containing all the objects in sequence. |
void |
unset()
Unsets the value held by the feature of the object. |
protected Object |
validate(int index,
Object object)
Validates a new content object and returns the validated object. |
| Methods inherited from class org.eclipse.emf.common.notify.impl.NotifyingListImpl |
addAllUnique, addAllUnique, addUnique, addUnique, basicAdd, basicRemove, basicSet, canContainNull, clear, createNotification, getFeatureID, hasInverse, 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, isUnique, iterator, listIterator, listIterator, move, remove, retainAll, set, setData, shrink, size, toString, useEquals |
| 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 |
protected final Class dataClass
protected final InternalEObject owner
| Constructor Detail |
public EcoreEList(Class dataClass,
InternalEObject owner)
| Method Detail |
protected Object[] newData(int capacity)
BasicEList
newData in class BasicEList
protected Object validate(int index,
Object object)
BasicEListnecessary and returns the argument object.
Clients may throw additional types of runtime exceptions
in order to handle constraint violations.
validate in class BasicEListindex - the position of the new content.object - the new content.
public Object getNotifier()
NotifyingListImplnull.
getNotifier in interface NotifyingListgetNotifier in class NotifyingListImplnull.public Object getFeature()
NotifyingListImplnull.
getFeature in interface NotifyingListgetFeature in class NotifyingListImplnull.public int getFeatureID()
NotifyingListImplNotification.NO_FEATURE_ID.
getFeatureID in interface NotifyingListgetFeatureID in class NotifyingListImplNotification.NO_FEATURE_ID.public EStructuralFeature getEStructuralFeature()
EStructuralFeature.Setting
getEStructuralFeature in interface EStructuralFeature.Settingprotected EClassifier getFeatureType()
protected EReference getInverseEReference()
protected int getInverseFeatureID()
protected Class getInverseFeatureClass()
protected boolean hasManyInverse()
protected boolean hasNavigableInverse()
protected boolean isEObject()
protected boolean isContainment()
protected boolean hasProxies()
protected boolean hasInstanceClass()
protected Object resolve(int index,
Object object)
BasicEListobject;
clients can use this to transform objects as they are fetched.
resolve in class BasicEListindex - the position of the content.object - the content.
protected EObject resolve(int index,
EObject eObject)
protected EObject resolveProxy(EObject eObject)
public Object[] toArray()
BasicEListnewData to create typed storage in this case.
toArray in interface ListtoArray in class BasicEListBasicEList.newData(int)public Object[] toArray(Object[] array)
BasicEList
toArray in interface ListtoArray in class 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 NotificationImpl createNotification(int eventType,
Object oldObject,
Object newObject,
int index,
boolean wasSet)
NotifyingListImpl
createNotification in class NotifyingListImpleventType - the type of change that has occurred.oldObject - the value of the notifier's feature before the change occurred.newObject - the value of the notifier's feature after the change occurred.index - the position at which the change occurred.
protected NotificationImpl createNotification(int eventType,
boolean oldValue,
boolean newValue)
protected void dispatchNotification(Notification notification)
NotifyingListImpl
dispatchNotification in class NotifyingListImplnotification - the notification to dispatch.public List basicList()
InternalEList
basicList in interface InternalEListbasicList in class BasicEListprotected boolean isNotificationRequired()
NotifyingListImplfalse.
isNotificationRequired in class NotifyingListImplfalse.
public NotificationChain inverseAdd(Object object,
NotificationChain notifications)
NotifyingListImplnotifications.
Clients can override this to update the inverse of a bidirectional relation.
inverseAdd in class NotifyingListImplobject - the object that's been added to the list.notifications - the chain of accumulating notifications.
notifications.
public NotificationChain inverseRemove(Object object,
NotificationChain notifications)
NotifyingListImplnotifications.
Clients can override this to update the inverse of a bidirectional relation.
inverseRemove in class NotifyingListImplobject - the object that's been remove from the list.notifications - the chain of accumulating notifications.
notifications.public boolean contains(Object object)
contains in interface Listcontains in class BasicEListobject - the object in question.
BasicEList.useEquals()public int indexOf(Object object)
BasicEListequals or "==" depending on useEquals.
indexOf in interface ListindexOf in class BasicEListobject - the object in question.
public int lastIndexOf(Object object)
BasicEListequals or "==" depending on useEquals.
lastIndexOf in interface ListlastIndexOf in class BasicEListobject - the object in question.
public Iterator basicIterator()
InternalEList
basicIterator in interface InternalEListbasicIterator in class BasicEListpublic ListIterator basicListIterator()
InternalEList
basicListIterator in interface InternalEListbasicListIterator in class BasicEListpublic ListIterator basicListIterator(int index)
InternalEList
basicListIterator in interface InternalEListbasicListIterator in class BasicEListindex - the starting index.
public EObject getEObject()
EStructuralFeature.Setting
getEObject in interface EStructuralFeature.Settingpublic Object get(boolean resolve)
EStructuralFeature.Settingresolves the value.
get in interface EStructuralFeature.Settingresolve - whether to resolve.
EObject.eGet(EStructuralFeature, boolean)public void set(Object newValue)
EStructuralFeature.Setting
set in interface EStructuralFeature.SettingnewValue - the newValue.EObject.eSet(EStructuralFeature, Object)public boolean isSet()
InternalEList.Unsettable
isSet in interface InternalEList.UnsettableisSet in class NotifyingListImplpublic void unset()
InternalEList.Unsettable
unset in interface InternalEList.UnsettableEObject.eUnset(org.eclipse.emf.ecore.EStructuralFeature)
|
Copyright 2001-2004 IBM Corporation and others. All Rights Reserved. |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||