Skip to content
Snippets Groups Projects
Commit 6fa42a78 authored by Vincent Aravantinos's avatar Vincent Aravantinos
Browse files

IDs for verifiers

refs 2620
parent cc1a82d8
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,7 @@ import org.fortiss.tooling.kernel.service.base.IEObjectAware;
* @author aravantinos
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: 6CB960DB7263BB104C485D049A370ADE
* @ConQAT.Rating YELLOW Hash: A1E16F6CBC698CACB0C05DBD901FA78D
*/
public interface IConstraintVerifier<T extends IConstraint> extends IEObjectAware<T> {
/** Verify the given constraint. */
......@@ -62,4 +62,10 @@ public interface IConstraintVerifier<T extends IConstraint> extends IEObjectAwar
/** True if this constraint shall be displayed as a development process constraint. */
boolean isUsableForDevelopmentProcess();
/**
* ID of the constraint. Must be unique among all constraints which are usable for development
* process.
*/
public String getID();
}
......@@ -26,7 +26,7 @@ import org.fortiss.tooling.kernel.model.constraints.IConstraint;
* @author aravantinos
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: 79FBF0ED6E6C0E33450914DD87CD7A3E
* @ConQAT.Rating YELLOW Hash: E5CFC673BC6F702E41A7E94D053FFA7F
*/
public abstract class ConstraintVerifierBase<T extends IConstraint> implements
IConstraintVerifier<T> {
......@@ -42,4 +42,10 @@ public abstract class ConstraintVerifierBase<T extends IConstraint> implements
public boolean isUsableForDevelopmentProcess() {
return true;
}
/** {@inheritDoc} */
@Override
public String getID() {
return this.getClass().getName();
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment