OSID Logo
OSID Specifications
assessment package
Version 3.0.0
Release Candidate Preview
Interfaceosid.assessment.Response
Implementsosid.OsidCondition
Description

A response to an assessment item. This interface contains methods to set values in response to an assessmet item and mirrors the item record structure with the corresponding setters.

MethodgetItemId
Description

Gets the Id of the Item.

Returnosid.id.Idthe assessment item Id
CompliancemandatoryThis method must be implemented.
MethodgetItem
Description

Gets the Item.

Returnosid.assessment.Itemthe assessment item
CompliancemandatoryThis method must be implemented.
MethodgetResponseRecord
Description

Gets the response record corresponding to the given Item record Type. This method is used to retrieve an object implementing the requested record. The itemRecordType may be the Type returned in getRecordTypes() or any of its parents in a Type hierarchy where hasRecordType(itemRecordType) is true .

Parametersosid.type.TypeitemRecordTypean item record type
Returnosid.assessment.records.ResponseRecordthe response record
ErrorsNULL_ARGUMENT itemRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(itemRecordType) is false
CompliancemandatoryThis method must be implemented.