public class TraceabilityUtil
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
createTrace(Traceability refModel,
java.lang.String id,
java.util.Collection<org.eclipse.emf.ecore.EObject> sourcesEObject,
java.util.Collection<java.lang.Object> sourcesJavaObject,
java.util.Collection<org.eclipse.emf.ecore.EObject> targets)
Creates a new
Trace instance with the given parameters, and adds it to the referenced
Traceability model |
static void |
deleteTraceAndTarget(ViatraQueryEngine engine,
org.eclipse.emf.ecore.EObject toDelete)
Detaches the
Trace with the given id and the corresponding target instances from the base notifier of the
ViatraQueryEngine and returns the target instances. |
public static void createTrace(Traceability refModel, java.lang.String id, java.util.Collection<org.eclipse.emf.ecore.EObject> sourcesEObject, java.util.Collection<java.lang.Object> sourcesJavaObject, java.util.Collection<org.eclipse.emf.ecore.EObject> targets)
Trace instance with the given parameters, and adds it to the referenced
Traceability modelrefModel - is the referenced Traceability modeltarget - will be on the target side of the new Traceid - for the new TracesourcesEObject - will be on the source side of the new Tracepublic static void deleteTraceAndTarget(ViatraQueryEngine engine, org.eclipse.emf.ecore.EObject toDelete) throws ViatraQueryException
Trace with the given id and the corresponding target instances from the base notifier of the
ViatraQueryEngine and returns the target instances.engine - for trace pattern matchingid - of traces to be detachedsources - of traces to be detachedViatraQueryException