org.eclipse.emf.henshin.trace.util
Class TraceUtil

java.lang.Object
  extended by org.eclipse.emf.henshin.trace.util.TraceUtil

public class TraceUtil
extends Object

Utility methods for the Henshin trace model.


Constructor Summary
TraceUtil()
           
 
Method Summary
static
<S extends EObject,T extends EObject>
T
getTarget(S source, Collection<T> objects)
          Get the target of a trace.
static
<S extends EObject,T extends EObject>
List<T>
getTargets(List<S> sources, Collection<T> objects)
          Get the targets of a set of traces.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TraceUtil

public TraceUtil()
Method Detail

getTarget

public static <S extends EObject,T extends EObject> T getTarget(S source,
                                                                Collection<T> objects)
Get the target of a trace.

Parameters:
source - The source of the trace.
objects - A collection of objects containing traces.
Returns:
The target if found, null otherwise.

getTargets

public static <S extends EObject,T extends EObject> List<T> getTargets(List<S> sources,
                                                                       Collection<T> objects)
Get the targets of a set of traces.

Parameters:
sources - The sources of the traces.
objects - A collection of objects containing traces.
Returns:
The found target objects.