Interface Response
- All Superinterfaces:
Extensible, OsidCondition, Suppliable
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 Summary
Modifier and TypeMethodDescriptiongetItem()Gets theItem.Gets theIdof theItem.getResponseRecord(Type itemRecordType) Gets the response record corresponding to the givenItemrecordType.This method is used to retrieve an object implementing the requested record.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.
-
Method Details
-
getItemId
Id getItemId()Gets theIdof theItem.- Returns:
- the assessment item
Id - Compliance:
mandatory- This method must be implemented.
-
getItem
Item getItem()Gets theItem.- Returns:
- the assessment item
- Compliance:
mandatory- This method must be implemented.
-
getResponseRecord
Gets the response record corresponding to the givenItemrecordType.This method is used to retrieve an object implementing the requested record. TheitemRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(itemRecordType)istrue.- Parameters:
itemRecordType- an item record type- Returns:
- the response record
- Throws:
NullArgumentException-itemRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(itemRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-