org.eclipse.gmt.umlx.alien.mapping
Class AdaptingEList<E extends org.eclipse.emf.ecore.EObject,A extends org.eclipse.emf.ecore.EObject,L extends org.eclipse.emf.common.util.EList<E>>

java.lang.Object
  extended by org.eclipse.gmt.umlx.alien.mapping.AdaptingList<E,A,L>
      extended by org.eclipse.gmt.umlx.alien.mapping.AdaptingEList<E,A,L>
Type Parameters:
E - Ecore model EObject type
A - Alien model EObject type
L - Ecore model EList type
All Implemented Interfaces:
java.lang.Iterable<A>, java.util.Collection<A>, java.util.List<A>, org.eclipse.emf.common.util.EList<A>
Direct Known Subclasses:
AdaptingInternalEList

public class AdaptingEList<E extends org.eclipse.emf.ecore.EObject,A extends org.eclipse.emf.ecore.EObject,L extends org.eclipse.emf.common.util.EList<E>>
extends AdaptingList<E,A,L>
implements org.eclipse.emf.common.util.EList<A>

An AdaptingEList maintains an EList of adapting alien model objects, delegating all interaction to a corresponding list of adapted ecore objects, performing appropriate alien to ecore and ecore to alien conversions.


Constructor Summary
AdaptingEList(MappingMetaData mappingMetaData, L ecoreList)
           
 
Method Summary
 void move(int newPosition, A alienObject)
           
 A move(int newPosition, int oldPosition)
           
 
Methods inherited from class org.eclipse.gmt.umlx.alien.mapping.AdaptingList
add, add, addAll, addAll, clear, contains, containsAll, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
 

Constructor Detail

AdaptingEList

public AdaptingEList(MappingMetaData mappingMetaData,
                     L ecoreList)
Method Detail

move

public void move(int newPosition,
                 A alienObject)
Specified by:
move in interface org.eclipse.emf.common.util.EList<A extends org.eclipse.emf.ecore.EObject>

move

public A move(int newPosition,
              int oldPosition)
Specified by:
move in interface org.eclipse.emf.common.util.EList<A extends org.eclipse.emf.ecore.EObject>