Package com.nomagic.magicdraw.uml2.util
Class RedefiningEObjectEList<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.AbstractSequentialList<E>
org.eclipse.emf.ecore.util.AbstractSequentialInternalEList<E>
org.eclipse.uml2.common.util.DerivedEObjectEList<E>
org.eclipse.uml2.common.util.DerivedSubsetEObjectEList<E>
com.nomagic.magicdraw.uml2.util.RedefiningEObjectEList<E>
- All Implemented Interfaces:
 Iterable<E>,Collection<E>,List<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>
public class RedefiningEObjectEList<E>
extends org.eclipse.uml2.common.util.DerivedSubsetEObjectEList<E>
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classprotected class - 
Field Summary
Fields inherited from class org.eclipse.uml2.common.util.DerivedEObjectEList
dataClass, featureID, owner, sourceFeatureIDsFields inherited from class java.util.AbstractList
modCount - 
Constructor Summary
ConstructorsConstructorDescriptionRedefiningEObjectEList(Class<?> dataClass, org.eclipse.emf.ecore.InternalEObject owner, int featureID, int sourceFeatureID)  - 
Method Summary
Modifier and TypeMethodDescriptionbooleanAppends the specified element to the start of this list (optional operation).booleanaddAll(int index, Collection<? extends E> collection) booleanaddAll(Collection<? extends E> collection) voidaddUniqueSuppressNotifications(E object) intprotected org.eclipse.emf.ecore.EClassifierprotected org.eclipse.emf.ecore.EReferenceprotected Class<?>protected intprotected booleanprotected booleanorg.eclipse.emf.common.notify.NotificationChaininverseAdd(Object object, org.eclipse.emf.common.notify.NotificationChain notifications) org.eclipse.emf.common.notify.NotificationChaininverseRemove(Object object, org.eclipse.emf.common.notify.NotificationChain notifications) protected booleanprotected booleanprotected ListIterator<E>listIterator(int index, boolean resolve) move(int newPosition, int oldPosition) Moves the object from the old position to the new position.voidMoves the object to the new position, if is in the list.protected ListIterator<E>protected ListIterator<E>Methods inherited from class org.eclipse.uml2.common.util.DerivedSubsetEObjectEList
newEmptyListIteratorMethods inherited from class org.eclipse.uml2.common.util.DerivedEObjectEList
add, addAllUnique, addUnique, basicListIterator, contains, createNotification, derive, dispatchNotification, doAddAllUnique, get, getEObject, getEStructuralFeature, getEStructuralFeature, isEmpty, isIncluded, isIncluded, isSet, listIterator, remove, set, set, setUnique, size, unset, validateMethods inherited from class org.eclipse.emf.ecore.util.AbstractSequentialInternalEList
addAllUnique, addUnique, basicAdd, basicContains, basicContainsAll, basicGet, basicIndexOf, basicIterator, basicLastIndexOf, basicListIterator, basicRemove, basicToArray, basicToArrayMethods inherited from class java.util.AbstractSequentialList
get, iteratorMethods inherited from class java.util.AbstractList
clear, equals, hashCode, indexOf, lastIndexOf, listIterator, removeRange, subListMethods inherited from class java.util.AbstractCollection
containsAll, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface org.eclipse.emf.ecore.util.InternalEList
addAllUnique, addUnique, basicAdd, basicContains, basicContainsAll, basicGet, basicIndexOf, basicIterator, basicLastIndexOf, basicListIterator, basicRemove, basicToArray, basicToArrayMethods inherited from interface java.util.List
clear, containsAll, equals, get, hashCode, indexOf, iterator, lastIndexOf, listIterator, remove, removeAll, replaceAll, retainAll, sort, spliterator, subList, toArray, toArray 
- 
Constructor Details
- 
RedefiningEObjectEList
public RedefiningEObjectEList(Class<?> dataClass, org.eclipse.emf.ecore.InternalEObject owner, int featureID, int sourceFeatureID)  
 - 
 - 
Method Details
- 
move
Moves the object from the old position to the new position.- Specified by:
 movein interfaceorg.eclipse.emf.common.util.EList<E>- Overrides:
 movein classorg.eclipse.emf.ecore.util.AbstractSequentialInternalEList<E>- Parameters:
 newPosition- the position of the object after the move.oldPosition- the position of the object before the move.- Returns:
 - the moved object.
 
 - 
add
Appends the specified element to the start of this list (optional operation).Lists that support this operation may place limitations on what elements may be added to this list. In particular, some lists will refuse to add null elements, and others will impose restrictions on the type of elements that may be added. List classes should clearly specify in their documentation any restrictions on what elements may be added.
This implementation calls
add(0, e).Note that this implementation throws an
UnsupportedOperationExceptionunlessadd(int, E)is overridden.- Specified by:
 addin interfaceCollection<E>- Specified by:
 addin interfaceList<E>- Overrides:
 addin classAbstractList<E>- Parameters:
 e- element to be appended to this list- Returns:
 true(as specified byCollection.add(E))- Throws:
 UnsupportedOperationException- if theaddoperation is not supported by this listClassCastException- if the class of the specified element prevents it from being added to this listNullPointerException- if the specified element is null and this list does not permit null elementsIllegalArgumentException- if some property of this element prevents it from being added to this list
 - 
move
Moves the object to the new position, if is in the list. - 
addAll
- Specified by:
 addAllin interfaceCollection<E>- Specified by:
 addAllin interfaceList<E>- Overrides:
 addAllin classAbstractCollection<E>
 - 
addAll
 - 
hasInstanceClass
protected boolean hasInstanceClass() - 
getFeatureType
protected org.eclipse.emf.ecore.EClassifier getFeatureType() - 
getInverseEReference
protected org.eclipse.emf.ecore.EReference getInverseEReference() - 
getInverseFeatureID
protected int getInverseFeatureID() - 
getInverseFeatureClass
 - 
getFeatureID
public int getFeatureID() - 
inverseAdd
public org.eclipse.emf.common.notify.NotificationChain inverseAdd(Object object, org.eclipse.emf.common.notify.NotificationChain notifications)  - 
inverseRemove
public org.eclipse.emf.common.notify.NotificationChain inverseRemove(Object object, org.eclipse.emf.common.notify.NotificationChain notifications)  - 
addUniqueSuppressNotifications
 - 
isNotificationRequired
protected boolean isNotificationRequired()- Overrides:
 isNotificationRequiredin classorg.eclipse.uml2.common.util.DerivedSubsetEObjectEList<E>
 - 
isContainment
protected boolean isContainment() - 
newListIterator
- Overrides:
 newListIteratorin classorg.eclipse.uml2.common.util.DerivedSubsetEObjectEList<E>
 - 
newResolvingListIterator
- Overrides:
 newResolvingListIteratorin classorg.eclipse.uml2.common.util.DerivedSubsetEObjectEList<E>
 - 
basicList
 - 
listIterator
- Overrides:
 listIteratorin classorg.eclipse.uml2.common.util.DerivedEObjectEList<E>
 
 -