Interface Response

All Superinterfaces:
Extensible, OsidCondition, Suppliable

public interface Response extends OsidCondition

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.

  • Method Details

    • getItemId

      Id getItemId()
      Gets the Id of the Item .
      Returns:
      the assessment item Id
      Compliance:
      mandatory - This method must be implemented.
    • getItem

      Item getItem()
      Gets the Item .
      Returns:
      the assessment item
      Compliance:
      mandatory - This method must be implemented.
    • getResponseRecord

      ResponseRecord getResponseRecord(Type itemRecordType) throws OperationFailedException
      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 .
      Parameters:
      itemRecordType - an item record type
      Returns:
      the response record
      Throws:
      NullArgumentException - itemRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(itemRecordType) is false
      Compliance:
      mandatory - This method must be implemented.