Class AbstractFixer
java.lang.Object
org.eclipse.epsilon.hutn.validation.AbstractFixer
- All Implemented Interfaces:
IEvlFixer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
applyFix
(UnsatisfiedConstraint constraint) Clients should override this method if fixes are used by the validator.void
fix
(IEvlModule module) boolean
protected abstract ParseProblem
interpretUnsatisfiedConstraint
(UnsatisfiedConstraint constraint) void
reset()
-
Constructor Details
-
AbstractFixer
public AbstractFixer()
-
-
Method Details
-
fix
- Specified by:
fix
in interfaceIEvlFixer
- Throws:
EolRuntimeException
-
reset
public void reset() -
hasChangedModel
public boolean hasChangedModel() -
applyFix
Clients should override this method if fixes are used by the validator. Returning true causes validation to be invoked again.- Parameters:
constraint
- The unsatisifed constraint for which a fix will be applied.- Returns:
- true if and only if the fix caused the model to be changed.
- Throws:
EolRuntimeException
-
interpretUnsatisfiedConstraint
-