|
|||||||||||
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.DelegatingEList
org.eclipse.emf.common.notify.impl.DelegatingNotifyingListImpl
org.eclipse.emf.ecore.util.DelegatingEcoreEList
Nested Class Summary | |
static class |
DelegatingEcoreEList.Dynamic
|
static class |
DelegatingEcoreEList.Generic
|
static class |
DelegatingEcoreEList.UnmodifiableEList
|
static class |
DelegatingEcoreEList.Unsettable
|
Nested classes inherited from class org.eclipse.emf.common.util.DelegatingEList |
DelegatingEList.EIterator, DelegatingEList.EListIterator, DelegatingEList.NonResolvingEIterator, DelegatingEList.NonResolvingEListIterator |
Field Summary | |
protected InternalEObject |
owner
|
Fields inherited from class java.util.AbstractList |
modCount |
Constructor Summary | |
DelegatingEcoreEList(InternalEObject owner)
|
Method Summary | |
Object |
basicGet(int index)
Returns the unresolved value. |
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. |
protected boolean |
canContainNull()
Returns ! |
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 |
hasInverse()
Returns false . |
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 |
isInstance(Object object)
|
protected boolean |
isNotificationRequired()
Returns false . |
boolean |
isSet()
Returns whether a value is held by the feature of the object. |
protected boolean |
isUnique()
Returns whether objects are constrained to appear at most once in the list. |
int |
lastIndexOf(Object object)
Returns the position of the last occurrence of the object in the list. |
protected Object |
resolve(int index,
Object object)
Resolves the object at the index and returns the result. |
protected Object |
resolve(Object object)
Returns the resolved object from this list for the purpose of testing whether DelegatingNotifyingListImpl.removeAll(Collection) applies to it. |
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.DelegatingNotifyingListImpl |
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.DelegatingEList |
add, add, addAll, addAll, containsAll, delegateAdd, delegateAdd, delegateBasicList, delegateClear, delegateContains, delegateContainsAll, delegateEquals, delegateGet, delegateHashCode, delegateIndexOf, delegateIsEmpty, delegateIterator, delegateLastIndexOf, delegateList, delegateListIterator, delegateRemove, delegateSet, delegateSize, delegateToArray, delegateToArray, delegateToString, didAdd, didChange, didClear, didMove, didRemove, didSet, doClear, equalObjects, equals, get, getDuplicates, getNonDuplicates, hashCode, isEmpty, iterator, listIterator, listIterator, move, remove, retainAll, set, size, toString, useEquals |
Methods inherited from class java.util.AbstractList |
removeRange, subList |
Methods inherited from class java.lang.Object |
clone, 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 |
protected final InternalEObject owner
Constructor Detail |
public DelegatingEcoreEList(InternalEObject owner)
Method Detail |
protected boolean canContainNull()
DelegatingNotifyingListImpl
!DelegatingNotifyingListImpl.hasInverse()
.
canContainNull
in class DelegatingNotifyingListImpl
!hasInverse
.protected boolean isUnique()
DelegatingEList
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.
isUnique
in class DelegatingEList
protected boolean hasInverse()
DelegatingNotifyingListImpl
false
.
hasInverse
in class DelegatingNotifyingListImpl
false
.protected Object validate(int index, Object object)
DelegatingEList
necessary
and returns the argument object.
Clients may throw additional types of runtime exceptions
in order to handle constraint violations.
validate
in class DelegatingEList
index
- the position of the new content.object
- the new content.
protected boolean isInstance(Object object)
public Object getNotifier()
DelegatingNotifyingListImpl
null
.
getNotifier
in interface NotifyingList
getNotifier
in class DelegatingNotifyingListImpl
null
.public Object getFeature()
DelegatingNotifyingListImpl
null
.
getFeature
in interface NotifyingList
getFeature
in class DelegatingNotifyingListImpl
null
.public int getFeatureID()
DelegatingNotifyingListImpl
Notification.NO_FEATURE_ID
.
getFeatureID
in interface NotifyingList
getFeatureID
in class DelegatingNotifyingListImpl
Notification.NO_FEATURE_ID
.public EStructuralFeature getEStructuralFeature()
EStructuralFeature.Setting
getEStructuralFeature
in interface EStructuralFeature.Setting
protected 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)
DelegatingEList
object
;
clients can use this to transform objects as they are fetched.
resolve
in class DelegatingEList
index
- the position of the content.object
- the content.
protected Object resolve(Object object)
DelegatingNotifyingListImpl
DelegatingNotifyingListImpl.removeAll(Collection)
applies to it.
resolve
in class DelegatingNotifyingListImpl
object
- the object to be resolved.
protected EObject resolveProxy(EObject eObject)
public Object[] toArray()
DelegatingEList
toArray
in interface List
toArray
in class DelegatingEList
public Object[] toArray(Object[] array)
DelegatingEList
toArray
in interface List
toArray
in class DelegatingEList
array
- 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.
protected NotificationImpl createNotification(int eventType, Object oldObject, Object newObject, int index, boolean wasSet)
DelegatingNotifyingListImpl
createNotification
in class DelegatingNotifyingListImpl
eventType
- 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)
DelegatingNotifyingListImpl
dispatchNotification
in class DelegatingNotifyingListImpl
notification
- the notification to dispatch.public Object basicGet(int index)
InternalEList
basicGet
in interface InternalEList
basicGet
in class DelegatingEList
index
- the position in question.
DelegatingEList.resolve(int, java.lang.Object)
,
DelegatingEList.get(int)
public List basicList()
InternalEList
basicList
in interface InternalEList
basicList
in class DelegatingEList
protected boolean isNotificationRequired()
DelegatingNotifyingListImpl
false
.
isNotificationRequired
in class DelegatingNotifyingListImpl
false
.public NotificationChain inverseAdd(Object object, NotificationChain notifications)
DelegatingNotifyingListImpl
notifications
.
Clients can override this to update the inverse of a bidirectional relation.
inverseAdd
in class DelegatingNotifyingListImpl
object
- the object that's been added to the list.notifications
- the chain of accumulating notifications.
notifications
.public NotificationChain inverseRemove(Object object, NotificationChain notifications)
DelegatingNotifyingListImpl
notifications
.
Clients can override this to update the inverse of a bidirectional relation.
inverseRemove
in class DelegatingNotifyingListImpl
object
- the object that's been remove from the list.notifications
- the chain of accumulating notifications.
notifications
.public boolean contains(Object object)
contains
in interface List
contains
in class DelegatingEList
object
- the object in question.
public int indexOf(Object object)
DelegatingEList
indexOf
in interface List
indexOf
in class DelegatingEList
object
- the object in question.
public int lastIndexOf(Object object)
DelegatingEList
lastIndexOf
in interface List
lastIndexOf
in class DelegatingEList
object
- the object in question.
public Iterator basicIterator()
InternalEList
basicIterator
in interface InternalEList
basicIterator
in class DelegatingEList
public ListIterator basicListIterator()
InternalEList
basicListIterator
in interface InternalEList
basicListIterator
in class DelegatingEList
public ListIterator basicListIterator(int index)
InternalEList
basicListIterator
in interface InternalEList
basicListIterator
in class DelegatingEList
index
- the starting index.
public EObject getEObject()
EStructuralFeature.Setting
getEObject
in interface EStructuralFeature.Setting
public Object get(boolean resolve)
EStructuralFeature.Setting
resolves
the value.
get
in interface EStructuralFeature.Setting
resolve
- whether to resolve.
EObject.eGet(EStructuralFeature, boolean)
public void set(Object newValue)
EStructuralFeature.Setting
set
in interface EStructuralFeature.Setting
newValue
- the newValue.EObject.eSet(EStructuralFeature, Object)
public boolean isSet()
InternalEList.Unsettable
isSet
in interface InternalEList.Unsettable
isSet
in class DelegatingNotifyingListImpl
public void unset()
InternalEList.Unsettable
unset
in interface InternalEList.Unsettable
EObject.eUnset(org.eclipse.emf.ecore.EStructuralFeature)
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |