OSID Logo
OSID Specifications
assessment package
Version 3.0.0
Release Candidate Preview
Interfaceosid.assessment.Answer
Implementsosid.OsidObject
Description

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.

MethodgetAnswerRecord
Description

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 .

Parametersosid.type.TypeanswerRecordTypethe type of the record to retrieve
Returnosid.assessment.records.AnswerRecordthe answer record
ErrorsNULL_ARGUMENT answerRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(answerRecordType) is false
CompliancemandatoryThis method must be implemented.