Package com.nomagic.magicdraw.emf.impl
Class BasicEStoreEList<E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- org.eclipse.emf.common.util.AbstractEList<E>
-
- org.eclipse.emf.common.util.DelegatingEList<E>
-
- org.eclipse.emf.common.notify.impl.DelegatingNotifyingListImpl<E>
-
- org.eclipse.emf.ecore.util.DelegatingNotifyingInternalEListImpl<E>
-
- org.eclipse.emf.ecore.util.DelegatingEcoreEList<E>
-
- org.eclipse.emf.ecore.util.DelegatingEcoreEList.Generic<E>
-
- org.eclipse.emf.ecore.util.DelegatingEcoreEList.Dynamic<E>
-
- com.nomagic.magicdraw.emf.impl.BasicEStoreEList<E>
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.lang.Iterable<E>
,java.util.Collection<E>
,java.util.List<E>
,org.eclipse.emf.common.notify.NotifyingList<E>
,org.eclipse.emf.common.util.EList<E>
,org.eclipse.emf.ecore.EStructuralFeature.Setting
,org.eclipse.emf.ecore.util.InternalEList<E>
,org.eclipse.emf.ecore.util.InternalEList.Unsettable<E>
- Direct Known Subclasses:
ModelEStoreEList
public class BasicEStoreEList<E> extends org.eclipse.emf.ecore.util.DelegatingEcoreEList.Dynamic<E>
A list that delegates to a store.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.util.DelegatingEcoreEList
org.eclipse.emf.ecore.util.DelegatingEcoreEList.Dynamic<E extends java.lang.Object>, org.eclipse.emf.ecore.util.DelegatingEcoreEList.Generic<E extends java.lang.Object>, org.eclipse.emf.ecore.util.DelegatingEcoreEList.UnmodifiableEList<E extends java.lang.Object>, org.eclipse.emf.ecore.util.DelegatingEcoreEList.Unsettable<E extends java.lang.Object>
-
Nested classes/interfaces inherited from class org.eclipse.emf.common.util.DelegatingEList
org.eclipse.emf.common.util.DelegatingEList.EIterator<E1 extends java.lang.Object>, org.eclipse.emf.common.util.DelegatingEList.EListIterator<E1 extends java.lang.Object>, org.eclipse.emf.common.util.DelegatingEList.NonResolvingEIterator<E1 extends java.lang.Object>, org.eclipse.emf.common.util.DelegatingEList.NonResolvingEListIterator<E1 extends java.lang.Object>
-
-
Field Summary
-
Fields inherited from class org.eclipse.emf.ecore.util.DelegatingEcoreEList.Dynamic
eStructuralFeature
-
-
Constructor Summary
Constructors Constructor Description BasicEStoreEList(org.eclipse.emf.ecore.InternalEObject owner, org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
afterChange()
protected void
beforeChange(java.lang.String featureName)
protected void
delegateAdd(int index, java.lang.Object object)
protected void
delegateAdd(java.lang.Object object)
protected java.util.List<E>
delegateBasicList()
protected void
delegateClear()
protected boolean
delegateContains(java.lang.Object object)
protected boolean
delegateContainsAll(java.util.Collection<?> collection)
protected boolean
delegateEquals(java.lang.Object object)
protected E
delegateGet(int index)
protected int
delegateHashCode()
protected int
delegateIndexOf(java.lang.Object object)
protected boolean
delegateIsEmpty()
protected java.util.Iterator<E>
delegateIterator()
protected int
delegateLastIndexOf(java.lang.Object object)
protected java.util.List<E>
delegateList()
protected java.util.ListIterator<E>
delegateListIterator()
protected E
delegateMove(int targetIndex, int sourceIndex)
protected E
delegateRemove(int index)
protected E
delegateSet(int index, E object)
protected int
delegateSize()
protected java.lang.Object[]
delegateToArray()
protected <T> T[]
delegateToArray(T[] array)
protected java.lang.String
delegateToString()
protected org.eclipse.emf.ecore.InternalEObject.EStore
eStore()
protected void
firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue, int index)
protected void
firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue, int index, int newIndex)
org.eclipse.emf.ecore.EStructuralFeature
getEStructuralFeature()
protected java.lang.String
getPropertyEventName(java.lang.Object value)
boolean
makeLastInCollection(java.lang.Object value)
E[]
snapshot()
Returns an array containing all of the elements in this list in proper sequence (from first to last element).-
Methods inherited from class org.eclipse.emf.ecore.util.DelegatingEcoreEList.Generic
canContainNull, didChange, hasInstanceClass, hasInverse, hasManyInverse, hasNavigableInverse, hasProxies, isContainer, isContainment, isEObject, isSet, isUnique, isUnsettable, kind, unset, useEquals
-
Methods inherited from class org.eclipse.emf.ecore.util.DelegatingEcoreEList
contains, createNotification, createNotification, dispatchNotification, get, getEObject, getFeature, getFeatureID, getFeatureType, getInverseEReference, getInverseFeatureClass, getInverseFeatureID, getNotifier, indexOf, inverseAdd, inverseRemove, isInstance, isNotificationRequired, lastIndexOf, resolve, resolve, resolveProxy, set, toArray, toArray, validate
-
Methods inherited from class org.eclipse.emf.ecore.util.DelegatingNotifyingInternalEListImpl
basicContains, basicContainsAll, basicGet, basicIndexOf, basicIterator, basicLastIndexOf, basicList, basicListIterator, basicListIterator, basicToArray, basicToArray
-
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
containsAll, doClear, equals, get, hashCode, isEmpty, primitiveGet, remove, retainAll, size, toString
-
Methods inherited from class org.eclipse.emf.common.util.AbstractEList
add, add, addAll, addAll, didAdd, didClear, didMove, didRemove, didSet, equalObjects, getDuplicates, getNonDuplicates, iterator, listIterator, listIterator, move, set
-
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
addAllUnique, addAllUnique, addUnique, addUnique, basicAdd, basicContains, basicContainsAll, basicGet, basicIndexOf, basicIterator, basicLastIndexOf, basicList, basicListIterator, basicListIterator, basicRemove, basicToArray, basicToArray, setUnique
-
-
-
-
Method Detail
-
beforeChange
protected void beforeChange(java.lang.String featureName)
-
afterChange
protected void afterChange()
-
firePropertyChange
protected void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue, int index)
-
firePropertyChange
protected void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue, int index, int newIndex)
-
eStore
protected org.eclipse.emf.ecore.InternalEObject.EStore eStore()
-
delegateList
protected java.util.List<E> delegateList()
- Specified by:
delegateList
in classorg.eclipse.emf.common.util.DelegatingEList<E>
-
getEStructuralFeature
public org.eclipse.emf.ecore.EStructuralFeature getEStructuralFeature()
- Specified by:
getEStructuralFeature
in interfaceorg.eclipse.emf.ecore.EStructuralFeature.Setting
- Overrides:
getEStructuralFeature
in classorg.eclipse.emf.ecore.util.DelegatingEcoreEList.Dynamic<E>
-
getPropertyEventName
protected java.lang.String getPropertyEventName(java.lang.Object value)
-
delegateAdd
protected void delegateAdd(int index, java.lang.Object object)
- Overrides:
delegateAdd
in classorg.eclipse.emf.common.util.DelegatingEList<E>
-
makeLastInCollection
public boolean makeLastInCollection(java.lang.Object value)
-
delegateAdd
protected void delegateAdd(java.lang.Object object)
- Overrides:
delegateAdd
in classorg.eclipse.emf.common.util.DelegatingEList<E>
-
delegateBasicList
protected java.util.List<E> delegateBasicList()
- Overrides:
delegateBasicList
in classorg.eclipse.emf.common.util.DelegatingEList<E>
-
delegateClear
protected void delegateClear()
- Overrides:
delegateClear
in classorg.eclipse.emf.common.util.DelegatingEList<E>
-
delegateContains
protected boolean delegateContains(java.lang.Object object)
- Overrides:
delegateContains
in classorg.eclipse.emf.common.util.DelegatingEList<E>
-
delegateContainsAll
protected boolean delegateContainsAll(java.util.Collection<?> collection)
- Overrides:
delegateContainsAll
in classorg.eclipse.emf.common.util.DelegatingEList<E>
-
delegateGet
protected E delegateGet(int index)
- Overrides:
delegateGet
in classorg.eclipse.emf.common.util.DelegatingEList<E>
-
delegateHashCode
protected int delegateHashCode()
- Overrides:
delegateHashCode
in classorg.eclipse.emf.common.util.DelegatingEList<E>
-
delegateIndexOf
protected int delegateIndexOf(java.lang.Object object)
- Overrides:
delegateIndexOf
in classorg.eclipse.emf.common.util.DelegatingEList<E>
-
delegateIsEmpty
protected boolean delegateIsEmpty()
- Overrides:
delegateIsEmpty
in classorg.eclipse.emf.common.util.DelegatingEList<E>
-
delegateIterator
protected java.util.Iterator<E> delegateIterator()
- Overrides:
delegateIterator
in classorg.eclipse.emf.common.util.DelegatingEList<E>
-
delegateLastIndexOf
protected int delegateLastIndexOf(java.lang.Object object)
- Overrides:
delegateLastIndexOf
in classorg.eclipse.emf.common.util.DelegatingEList<E>
-
delegateListIterator
protected java.util.ListIterator<E> delegateListIterator()
- Overrides:
delegateListIterator
in classorg.eclipse.emf.common.util.DelegatingEList<E>
-
delegateRemove
protected E delegateRemove(int index)
- Overrides:
delegateRemove
in classorg.eclipse.emf.common.util.DelegatingEList<E>
-
delegateSet
protected E delegateSet(int index, E object)
- Overrides:
delegateSet
in classorg.eclipse.emf.common.util.DelegatingEList<E>
-
delegateSize
protected int delegateSize()
- Overrides:
delegateSize
in classorg.eclipse.emf.common.util.DelegatingEList<E>
-
delegateToArray
protected java.lang.Object[] delegateToArray()
- Overrides:
delegateToArray
in classorg.eclipse.emf.common.util.DelegatingEList<E>
-
delegateToArray
protected <T> T[] delegateToArray(T[] array)
- Overrides:
delegateToArray
in classorg.eclipse.emf.common.util.DelegatingEList<E>
-
delegateMove
protected E delegateMove(int targetIndex, int sourceIndex)
- Overrides:
delegateMove
in classorg.eclipse.emf.common.util.DelegatingEList<E>
-
delegateEquals
protected boolean delegateEquals(java.lang.Object object)
- Overrides:
delegateEquals
in classorg.eclipse.emf.common.util.DelegatingEList<E>
-
delegateToString
protected java.lang.String delegateToString()
- Overrides:
delegateToString
in classorg.eclipse.emf.common.util.DelegatingEList<E>
-
snapshot
public E[] snapshot()
Returns an array containing all of the elements in this list in proper sequence (from first to last element). Implementation of the method does not perform any proxies resolving so the method should not be used on the list that may contain proxies.- Returns:
- an array containing all of the elements in this list in proper sequence
-
-