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

removes the CBDP aspects from the service

refs 2620
parent 010728f6
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: A1E16F6CBC698CACB0C05DBD901FA78D
* @ConQAT.Rating YELLOW Hash: DFB6916E77403642EA76763DB660543A
*/
public interface IConstraintVerifier<T extends IConstraint> extends IEObjectAware<T> {
/** Verify the given constraint. */
......@@ -46,26 +46,8 @@ public interface IConstraintVerifier<T extends IConstraint> extends IEObjectAwar
void removeConstraintIrrelevantContent(EObject obj);
/**
* Returns a list of possible automatic fixes for the (constraint of the) given status.
* A status should be candidate to fixing if it is anything but successful or outdated.
* Returns a list of possible automatic fixes for the given constraint. A constraint should be
* candidate to fixing if it is anything but successful or outdated.
*/
List<IFix> fixes(IConstraintVerificationStatus status);
/**
* The following features deal with the usage of constraints to drive the process.
*
* EXPERIMENTAL.
*/
/** Gets a general description for the constraint type. */
String getDescription();
/** 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();
List<IFix> fixes(T constraint, IConstraintVerificationStatus status);
}
......@@ -17,8 +17,13 @@ $Id$
+--------------------------------------------------------------------------*/
package org.fortiss.tooling.kernel.extension.base;
import java.util.ArrayList;
import java.util.List;
import org.fortiss.tooling.kernel.extension.IConstraintVerifier;
import org.fortiss.tooling.kernel.model.constraints.IConstraint;
import org.fortiss.tooling.kernel.model.constraints.IConstraintVerificationStatus;
import org.fortiss.tooling.kernel.service.IConstraintVerificationService.IFix;
/**
* Base for {@link IConstraintVerifier}.
......@@ -26,26 +31,15 @@ import org.fortiss.tooling.kernel.model.constraints.IConstraint;
* @author aravantinos
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: E5CFC673BC6F702E41A7E94D053FFA7F
* @ConQAT.Rating YELLOW Hash: 499E3262CA408F075CCF06E9B3172291
*/
public abstract class ConstraintVerifierBase<T extends IConstraint> implements
IConstraintVerifier<T> {
/** Gets a general description for the constraint type. */
@Override
public String getDescription() {
return "";
}
/** True if this constraint shall be displayed as a development process constraint. */
@Override
public boolean isUsableForDevelopmentProcess() {
return true;
}
/** {@inheritDoc} */
@Override
public String getID() {
return this.getClass().getName();
public List<IFix> fixes(T constraint, IConstraintVerificationStatus status) {
// No fix by default
return new ArrayList<IFix>();
}
}
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