Interface Answer

All Superinterfaces:
Browsable, Extensible, Identifiable, OsidObject

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 .

  • Method Details

    • getAnswerRecord

      AnswerRecord getAnswerRecord(Type answerRecordType) throws OperationFailedException
      Gets the answer record corresponding to the given 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 .
      Parameters:
      answerRecordType - the type of the record to retrieve
      Returns:
      the answer record
      Throws:
      NullArgumentException - answerRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(answerRecordType) is false
      Compliance:
      mandatory - This method must be implemented.