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(IncQueryEngine 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
IncQueryEngine 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 Trace
id
- for the new Trace
sourcesEObject
- will be on the source side of the new Trace
public static void deleteTraceAndTarget(IncQueryEngine engine, org.eclipse.emf.ecore.EObject toDelete) throws IncQueryException
Trace
with the given id and the corresponding target instances from the base notifier of the
IncQueryEngine
and returns the target instances.engine
- for trace pattern matchingid
- of traces to be detachedsources
- of traces to be detachedIncQueryException