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
-
-
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 voidafterChange()protected voidbeforeChange(java.lang.String featureName)protected voiddelegateAdd(int index, java.lang.Object object)protected voiddelegateAdd(java.lang.Object object)protected java.util.List<E>delegateBasicList()protected voiddelegateClear()protected booleandelegateContains(java.lang.Object object)protected booleandelegateContainsAll(java.util.Collection<?> collection)protected booleandelegateEquals(java.lang.Object object)protected EdelegateGet(int index)protected intdelegateHashCode()protected intdelegateIndexOf(java.lang.Object object)protected booleandelegateIsEmpty()protected java.util.Iterator<E>delegateIterator()protected intdelegateLastIndexOf(java.lang.Object object)protected java.util.List<E>delegateList()protected java.util.ListIterator<E>delegateListIterator()protected EdelegateMove(int targetIndex, int sourceIndex)protected EdelegateRemove(int index)protected EdelegateSet(int index, E object)protected intdelegateSize()protected java.lang.Object[]delegateToArray()protected <T> T[]delegateToArray(T[] array)protected java.lang.StringdelegateToString()protected org.eclipse.emf.ecore.InternalEObject.EStoreeStore()protected voidfirePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue, int index)protected voidfirePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue, int index, int newIndex)org.eclipse.emf.ecore.EStructuralFeaturegetEStructuralFeature()protected java.lang.StringgetPropertyEventName(java.lang.Object value)booleanmakeLastInCollection(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, containsAll, 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
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:
delegateListin classorg.eclipse.emf.common.util.DelegatingEList<E>
-
getEStructuralFeature
public org.eclipse.emf.ecore.EStructuralFeature getEStructuralFeature()
- Specified by:
getEStructuralFeaturein interfaceorg.eclipse.emf.ecore.EStructuralFeature.Setting- Overrides:
getEStructuralFeaturein 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:
delegateAddin classorg.eclipse.emf.common.util.DelegatingEList<E>
-
makeLastInCollection
public boolean makeLastInCollection(java.lang.Object value)
-
delegateAdd
protected void delegateAdd(java.lang.Object object)
- Overrides:
delegateAddin classorg.eclipse.emf.common.util.DelegatingEList<E>
-
delegateBasicList
protected java.util.List<E> delegateBasicList()
- Overrides:
delegateBasicListin classorg.eclipse.emf.common.util.DelegatingEList<E>
-
delegateClear
protected void delegateClear()
- Overrides:
delegateClearin classorg.eclipse.emf.common.util.DelegatingEList<E>
-
delegateContains
protected boolean delegateContains(java.lang.Object object)
- Overrides:
delegateContainsin classorg.eclipse.emf.common.util.DelegatingEList<E>
-
delegateContainsAll
protected boolean delegateContainsAll(java.util.Collection<?> collection)
- Overrides:
delegateContainsAllin classorg.eclipse.emf.common.util.DelegatingEList<E>
-
delegateGet
protected E delegateGet(int index)
- Overrides:
delegateGetin classorg.eclipse.emf.common.util.DelegatingEList<E>
-
delegateHashCode
protected int delegateHashCode()
- Overrides:
delegateHashCodein classorg.eclipse.emf.common.util.DelegatingEList<E>
-
delegateIndexOf
protected int delegateIndexOf(java.lang.Object object)
- Overrides:
delegateIndexOfin classorg.eclipse.emf.common.util.DelegatingEList<E>
-
delegateIsEmpty
protected boolean delegateIsEmpty()
- Overrides:
delegateIsEmptyin classorg.eclipse.emf.common.util.DelegatingEList<E>
-
delegateIterator
protected java.util.Iterator<E> delegateIterator()
- Overrides:
delegateIteratorin classorg.eclipse.emf.common.util.DelegatingEList<E>
-
delegateLastIndexOf
protected int delegateLastIndexOf(java.lang.Object object)
- Overrides:
delegateLastIndexOfin classorg.eclipse.emf.common.util.DelegatingEList<E>
-
delegateListIterator
protected java.util.ListIterator<E> delegateListIterator()
- Overrides:
delegateListIteratorin classorg.eclipse.emf.common.util.DelegatingEList<E>
-
delegateRemove
protected E delegateRemove(int index)
- Overrides:
delegateRemovein classorg.eclipse.emf.common.util.DelegatingEList<E>
-
delegateSet
protected E delegateSet(int index, E object)
- Overrides:
delegateSetin classorg.eclipse.emf.common.util.DelegatingEList<E>
-
delegateSize
protected int delegateSize()
- Overrides:
delegateSizein classorg.eclipse.emf.common.util.DelegatingEList<E>
-
delegateToArray
protected java.lang.Object[] delegateToArray()
- Overrides:
delegateToArrayin classorg.eclipse.emf.common.util.DelegatingEList<E>
-
delegateToArray
protected <T> T[] delegateToArray(T[] array)
- Overrides:
delegateToArrayin classorg.eclipse.emf.common.util.DelegatingEList<E>
-
delegateMove
protected E delegateMove(int targetIndex, int sourceIndex)
- Overrides:
delegateMovein classorg.eclipse.emf.common.util.DelegatingEList<E>
-
delegateEquals
protected boolean delegateEquals(java.lang.Object object)
- Overrides:
delegateEqualsin classorg.eclipse.emf.common.util.DelegatingEList<E>
-
delegateToString
protected java.lang.String delegateToString()
- Overrides:
delegateToStringin 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
-
-