public class RangeAnswerValuePart extends AnswerValuePart
| Constructor and Description |
|---|
RangeAnswerValuePart(AnswerEvalType type,
java.lang.String value) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isMatch(AnswerValuePart response,
java.util.Map<java.lang.String,java.lang.String> args)
Determines whether the provided value part (that is to say a value part from the student's
response to a question) matches this value part.
|
RangeAnswerValuePart(AnswerEvalType type, java.lang.String value)
protected boolean isMatch(AnswerValuePart response, java.util.Map<java.lang.String,java.lang.String> args)
AnswerValuePart
Your subclass can implement this method by calling the default method
#isMatchDefault(AnswerValuePart).
isMatch in class AnswerValuePartresponse - An answer value part from the student's response.args - Map for problem specific properties that will
be used in calculating correctness for the problem.#isMatchDefault(AnswerValuePart),
Answer.preventIsMatch(String),
TeacherAnswerValue#isMatch(StudentResponseValue),
Answer#isMatch(StudentResponseValue)