org.eclipse.emf.henshin.trace.util
Class TraceUtil
java.lang.Object
org.eclipse.emf.henshin.trace.util.TraceUtil
public class TraceUtil
- extends Object
Utility methods for the Henshin trace model.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TraceUtil
public TraceUtil()
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.