Class RedefiningEObjectEList<E>

  • All Implemented Interfaces:
    java.lang.Iterable<E>, java.util.Collection<E>, java.util.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 Classes 
      Modifier and Type Class Description
      protected class  RedefiningEObjectEList.RedefiningEObjectListIterator  
      protected class  RedefiningEObjectEList.ResolvingRedefiningEObjectListIterator  
      • Nested classes/interfaces inherited from class org.eclipse.uml2.common.util.DerivedSubsetEObjectEList

        org.eclipse.uml2.common.util.DerivedSubsetEObjectEList.DerivedSubsetListIterator, org.eclipse.uml2.common.util.DerivedSubsetEObjectEList.EmptyDerivedSubsetListIterator, org.eclipse.uml2.common.util.DerivedSubsetEObjectEList.ResolvingDerivedSubsetListIterator
      • Nested classes/interfaces inherited from class org.eclipse.uml2.common.util.DerivedEObjectEList

        org.eclipse.uml2.common.util.DerivedEObjectEList.DerivedListIterator, org.eclipse.uml2.common.util.DerivedEObjectEList.EmptyDerivedListIterator, org.eclipse.uml2.common.util.DerivedEObjectEList.ResolvingDerivedListIterator
      • Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.util.InternalEList

        org.eclipse.emf.ecore.util.InternalEList.Unsettable<E extends java.lang.Object>
    • Field Summary

      • Fields inherited from class org.eclipse.uml2.common.util.DerivedEObjectEList

        dataClass, featureID, owner, sourceFeatureIDs
      • Fields inherited from class java.util.AbstractList

        modCount
    • Constructor Summary

      Constructors 
      Constructor Description
      RedefiningEObjectEList​(java.lang.Class<?> dataClass, org.eclipse.emf.ecore.InternalEObject owner, int featureID, int sourceFeatureID)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean add​(E e)
      Appends the specified element to the start of this list (optional operation).
      boolean addAll​(int index, java.util.Collection<? extends E> collection)  
      boolean addAll​(java.util.Collection<? extends E> collection)  
      void addUniqueSuppressNotifications​(E object)  
      java.util.List<E> basicList()  
      int getFeatureID()  
      protected org.eclipse.emf.ecore.EClassifier getFeatureType()  
      protected org.eclipse.emf.ecore.EReference getInverseEReference()  
      protected java.lang.Class<?> getInverseFeatureClass()  
      protected int getInverseFeatureID()  
      protected boolean hasInstanceClass()  
      protected boolean hasNavigableInverse()  
      org.eclipse.emf.common.notify.NotificationChain inverseAdd​(java.lang.Object object, org.eclipse.emf.common.notify.NotificationChain notifications)  
      org.eclipse.emf.common.notify.NotificationChain inverseRemove​(java.lang.Object object, org.eclipse.emf.common.notify.NotificationChain notifications)  
      protected boolean isContainment()  
      protected boolean isNotificationRequired()  
      protected java.util.ListIterator<E> listIterator​(int index, boolean resolve)  
      E move​(int newPosition, int oldPosition)
      Moves the object from the old position to the new position.
      void move​(int newPosition, E object)
      Moves the object to the new position, if is in the list.
      protected java.util.ListIterator<E> newListIterator()  
      protected java.util.ListIterator<E> newResolvingListIterator()  
      • Methods inherited from class org.eclipse.uml2.common.util.DerivedSubsetEObjectEList

        newEmptyListIterator
      • Methods 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, validate
      • Methods inherited from class org.eclipse.emf.ecore.util.AbstractSequentialInternalEList

        addAllUnique, addUnique, basicAdd, basicContains, basicContainsAll, basicGet, basicIndexOf, basicIterator, basicLastIndexOf, basicListIterator, basicRemove, basicToArray, basicToArray
      • Methods inherited from class java.util.AbstractSequentialList

        get, iterator
      • Methods inherited from class java.util.AbstractList

        clear, equals, hashCode, indexOf, lastIndexOf, listIterator, removeRange, subList
      • Methods inherited from class java.util.AbstractCollection

        containsAll, remove, removeAll, retainAll, toArray, toArray, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        parallelStream, removeIf, stream, toArray
      • Methods inherited from interface org.eclipse.emf.ecore.util.InternalEList

        addAllUnique, addUnique, basicAdd, basicContains, basicContainsAll, basicGet, basicIndexOf, basicIterator, basicLastIndexOf, basicListIterator, basicRemove, basicToArray, basicToArray
      • Methods inherited from interface java.lang.Iterable

        forEach
      • Methods 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 Detail

      • RedefiningEObjectEList

        public RedefiningEObjectEList​(java.lang.Class<?> dataClass,
                                      org.eclipse.emf.ecore.InternalEObject owner,
                                      int featureID,
                                      int sourceFeatureID)
    • Method Detail

      • move

        public E move​(int newPosition,
                      int oldPosition)
        Moves the object from the old position to the new position.
        Specified by:
        move in interface org.eclipse.emf.common.util.EList<E>
        Overrides:
        move in class org.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

        public boolean add​(E e)
        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 UnsupportedOperationException unless add(int, E) is overridden.

        Specified by:
        add in interface java.util.Collection<E>
        Specified by:
        add in interface java.util.List<E>
        Overrides:
        add in class java.util.AbstractList<E>
        Parameters:
        e - element to be appended to this list
        Returns:
        true (as specified by Collection.add(E))
        Throws:
        java.lang.UnsupportedOperationException - if the add operation is not supported by this list
        java.lang.ClassCastException - if the class of the specified element prevents it from being added to this list
        java.lang.NullPointerException - if the specified element is null and this list does not permit null elements
        java.lang.IllegalArgumentException - if some property of this element prevents it from being added to this list
      • move

        public void move​(int newPosition,
                         E object)
        Moves the object to the new position, if is in the list.
        Specified by:
        move in interface org.eclipse.emf.common.util.EList<E>
        Overrides:
        move in class org.eclipse.emf.ecore.util.AbstractSequentialInternalEList<E>
        Parameters:
        newPosition - the position of the object after the move.
        object - the object to move.
      • addAll

        public boolean addAll​(java.util.Collection<? extends E> collection)
        Specified by:
        addAll in interface java.util.Collection<E>
        Specified by:
        addAll in interface java.util.List<E>
        Overrides:
        addAll in class java.util.AbstractCollection<E>
      • addAll

        public boolean addAll​(int index,
                              java.util.Collection<? extends E> collection)
        Specified by:
        addAll in interface java.util.List<E>
        Overrides:
        addAll in class org.eclipse.uml2.common.util.DerivedEObjectEList<E>
      • hasNavigableInverse

        protected boolean hasNavigableInverse()
      • 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

        protected java.lang.Class<?> getInverseFeatureClass()
      • getFeatureID

        public int getFeatureID()
      • inverseAdd

        public org.eclipse.emf.common.notify.NotificationChain inverseAdd​(java.lang.Object object,
                                                                          org.eclipse.emf.common.notify.NotificationChain notifications)
      • inverseRemove

        public org.eclipse.emf.common.notify.NotificationChain inverseRemove​(java.lang.Object object,
                                                                             org.eclipse.emf.common.notify.NotificationChain notifications)
      • addUniqueSuppressNotifications

        public void addUniqueSuppressNotifications​(E object)
      • isNotificationRequired

        protected boolean isNotificationRequired()
        Overrides:
        isNotificationRequired in class org.eclipse.uml2.common.util.DerivedSubsetEObjectEList<E>
      • isContainment

        protected boolean isContainment()
      • newListIterator

        protected java.util.ListIterator<E> newListIterator()
        Overrides:
        newListIterator in class org.eclipse.uml2.common.util.DerivedSubsetEObjectEList<E>
      • newResolvingListIterator

        protected java.util.ListIterator<E> newResolvingListIterator()
        Overrides:
        newResolvingListIterator in class org.eclipse.uml2.common.util.DerivedSubsetEObjectEList<E>
      • basicList

        public java.util.List<E> basicList()
        Specified by:
        basicList in interface org.eclipse.emf.ecore.util.InternalEList<E>
        Overrides:
        basicList in class org.eclipse.uml2.common.util.DerivedSubsetEObjectEList<E>
      • listIterator

        protected java.util.ListIterator<E> listIterator​(int index,
                                                         boolean resolve)
        Overrides:
        listIterator in class org.eclipse.uml2.common.util.DerivedEObjectEList<E>