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.
Modifier and Type | Method and Description |
---|---|
Item |
getItem()
Gets the
Item. |
Id |
getItemId()
Gets the
Id of the Item. |
ResponseRecord |
getResponseRecord(Type itemRecordType)
Gets the response record corresponding to the given
Item
record Type. |
getRecordTypes, hasRecordType
Id getItemId()
Id
of the Item.
Id
mandatory
- This method must be implemented. Item getItem()
Item.
mandatory
- This method must be implemented. ResponseRecord getResponseRecord(Type itemRecordType) throws OperationFailedException
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
.itemRecordType
- an item record typeNullArgumentException
- itemRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(itemRecordType)
is false
mandatory
- This method must be implemented.