Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/req/org.eclipse.papyrus.req.sysml.traceabilityassistant/src/org/eclipse/papyrus/req/sysml/traceabilityassistant/analysis/ITracabilityRule.java')
-rw-r--r--extraplugins/req/org.eclipse.papyrus.req.sysml.traceabilityassistant/src/org/eclipse/papyrus/req/sysml/traceabilityassistant/analysis/ITracabilityRule.java39
1 files changed, 39 insertions, 0 deletions
diff --git a/extraplugins/req/org.eclipse.papyrus.req.sysml.traceabilityassistant/src/org/eclipse/papyrus/req/sysml/traceabilityassistant/analysis/ITracabilityRule.java b/extraplugins/req/org.eclipse.papyrus.req.sysml.traceabilityassistant/src/org/eclipse/papyrus/req/sysml/traceabilityassistant/analysis/ITracabilityRule.java
new file mode 100644
index 00000000000..0c06ee24af9
--- /dev/null
+++ b/extraplugins/req/org.eclipse.papyrus.req.sysml.traceabilityassistant/src/org/eclipse/papyrus/req/sysml/traceabilityassistant/analysis/ITracabilityRule.java
@@ -0,0 +1,39 @@
+/*****************************************************************************
+ * Copyright (c) 2015 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ *
+ * Patrick Tessier (patrick.tessier@cea.fr) CEA LIST - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.req.sysml.traceabilityassistant.analysis;
+
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.uml2.uml.Element;
+/**
+ * this interface defines the contract to apply tracability
+ *
+ */
+public interface ITracabilityRule {
+ /**
+ *
+ * @param element the current element
+ * @return true if the rules is interesting for this element
+ */
+ public boolean canApplyTracability(Element element);
+
+ /**
+ * if the element is interesting we can apply tracability defined in this Rules
+ * @param element the current element
+ * @param domain use to execute command
+ * @return true if the user has accepted to apply this rules.
+ */
+ public boolean applyTracability(Element element, TransactionalEditingDomain domain);
+
+}

Back to the top