Interface ValidityEvaluator

  • All Known Implementing Classes:
    AlwaysValid, DoubleValidity, IntegerValidity, MCQValidity, WordValidityEvaluator

    public interface ValidityEvaluator
    The second step of the answer parsing pipeline.
    Once the answer is processed (which is the first step), the validity evaluator object determines whether the latter is considered as 'valid' formatwise. The fact that a given answer is valid does not imply that it's correct. The evaluation of the correctness of an answer is determined by the third and last step of the parsing pipeline, under the condition that the answer passes the validity check
    See Also:
    AnswerEvaluator
    • Method Summary

      Modifier and Type Method Description
      boolean isValid​(Answer answer)
      Determine whether the provided answer object is valid
    • Method Detail

      • isValid

        boolean isValid​(Answer answer)
        Determine whether the provided answer object is valid
        Parameters:
        answer - the answer
        Returns:
        whether the answer may be evaluated by the last step