public interface Answer extends OsidObject
An Answer represents the question portion of an
assessment item. Like all OSID objects, an Answer is
identified by its Id and any persisted references should
use the Id.
| Modifier and Type | Method and Description |
|---|---|
AnswerRecord |
getAnswerRecord(Type answerRecordType)
Gets the answer record corresponding to the given
Answer
record Type. |
getDescription, getDisplayName, getGenusType, isOfGenusTypegetId, isCurrentgetRecordTypes, hasRecordTypegetProperties, getPropertiesByRecordTypeAnswerRecord getAnswerRecord(Type answerRecordType) throws OperationFailedException
Answer
record Type. This method is used to retrieve an
object implementing the requested records. The answerRecordType
may be the Type returned in
getRecordTypes() or any of its parents in a Type
hierarchy where hasRecordType(answerRecordType)
is true .answerRecordType - the type of the record to retrieveNullArgumentException - answerRecordType
is null OperationFailedException - unable to complete requestUnsupportedException -
hasRecordType(answerRecordType) is false
mandatory - This method must be implemented.