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; ...@@ -32,7 +32,7 @@ import org.fortiss.tooling.kernel.service.base.IEObjectAware;
* @author aravantinos * @author aravantinos
* @author $Author$ * @author $Author$
* @version $Rev$ * @version $Rev$
* @ConQAT.Rating YELLOW Hash: A1E16F6CBC698CACB0C05DBD901FA78D * @ConQAT.Rating YELLOW Hash: DFB6916E77403642EA76763DB660543A
*/ */
public interface IConstraintVerifier<T extends IConstraint> extends IEObjectAware<T> { public interface IConstraintVerifier<T extends IConstraint> extends IEObjectAware<T> {
/** Verify the given constraint. */ /** Verify the given constraint. */
...@@ -46,26 +46,8 @@ public interface IConstraintVerifier<T extends IConstraint> extends IEObjectAwar ...@@ -46,26 +46,8 @@ public interface IConstraintVerifier<T extends IConstraint> extends IEObjectAwar
void removeConstraintIrrelevantContent(EObject obj); void removeConstraintIrrelevantContent(EObject obj);
/** /**
* Returns a list of possible automatic fixes for the (constraint of the) given status. * Returns a list of possible automatic fixes for the given constraint. A constraint should be
* A status should be candidate to fixing if it is anything but successful or outdated. * candidate to fixing if it is anything but successful or outdated.
*/ */
List<IFix> fixes(IConstraintVerificationStatus status); List<IFix> fixes(T constraint, 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();
} }
...@@ -17,8 +17,13 @@ $Id$ ...@@ -17,8 +17,13 @@ $Id$
+--------------------------------------------------------------------------*/ +--------------------------------------------------------------------------*/
package org.fortiss.tooling.kernel.extension.base; 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.extension.IConstraintVerifier;
import org.fortiss.tooling.kernel.model.constraints.IConstraint; 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}. * Base for {@link IConstraintVerifier}.
...@@ -26,26 +31,15 @@ import org.fortiss.tooling.kernel.model.constraints.IConstraint; ...@@ -26,26 +31,15 @@ import org.fortiss.tooling.kernel.model.constraints.IConstraint;
* @author aravantinos * @author aravantinos
* @author $Author$ * @author $Author$
* @version $Rev$ * @version $Rev$
* @ConQAT.Rating YELLOW Hash: E5CFC673BC6F702E41A7E94D053FFA7F * @ConQAT.Rating YELLOW Hash: 499E3262CA408F075CCF06E9B3172291
*/ */
public abstract class ConstraintVerifierBase<T extends IConstraint> implements public abstract class ConstraintVerifierBase<T extends IConstraint> implements
IConstraintVerifier<T> { 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} */ /** {@inheritDoc} */
@Override @Override
public String getID() { public List<IFix> fixes(T constraint, IConstraintVerificationStatus status) {
return this.getClass().getName(); // 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