public final class FillInAnswer extends Answer<FillInAnswerValuePart,FillInAnswerValue,FillInResponseValue>
| Constructor and Description |
|---|
FillInAnswer(java.lang.String uid) |
| Modifier and Type | Method and Description |
|---|---|
AnswerEvalType |
getAnswerType()
Returns the evaluation type for this answer.
|
java.lang.String |
getAnswerValue()
Returns the data value for this answer.
|
FillInAnswerValuePart |
getValuePart()
Returns the single value part for this answer.
|
protected boolean |
isMatch(FillInResponseValue response,
java.util.Map<java.lang.String,java.lang.String> args)
Determines whether the provided response (that is to say the student's response to a question)
matches this Answer.
|
void |
validate()
Check this object's data for inconsistencies
Subclasses must (by informal contract) implement this method!
|
getBuggyMessage, getIsCorrect, getTeacherValue, isCorrect, isMatchDefault, preventIsMatch, setBuggyMessage, setCorrect, setTeacherValue, toStringgetDescription, getName, setDescription, setNamecreateKey, createKey, equals, extractType, extractUID, getKey, getShortKey, getShortKey, getType, getUID, getValidatorUtilities, setValidatorUtilities, validateKeyprotected boolean isMatch(FillInResponseValue response, java.util.Map<java.lang.String,java.lang.String> args)
AnswerisMatch in class Answer<FillInAnswerValuePart,FillInAnswerValue,FillInResponseValue>response - A subclass of AnswerValueargs - Map for problem specific properties that will
be used in calculating correctness for the problem.#isMatchDefault(StudentResponseValue),
#isCorrect(StudentResponseValue)public FillInAnswerValuePart getValuePart()
getAnswerValue(),
getAnswerType()public java.lang.String getAnswerValue()
getAnswerType()public AnswerEvalType getAnswerType()
getAnswerValue()public void validate()
throws ValidationException
SelfValidatingvalidate in interface SelfValidatingvalidate in class PersistableValidationException - if the data is invalid