public interface Question extends OsidObject
A Question
represents the question portion of an
assessment item. Like all OSID objects, a Question
is
identified by its Id
and any persisted references should
use the Id.
Modifier and Type | Method and Description |
---|---|
QuestionRecord |
getQuestionRecord(Type questionRecordType)
Gets the item record corresponding to the given
Question
record Type. |
getDescription, getDisplayName, getGenusType, isOfGenusType
getId, isCurrent
getRecordTypes, hasRecordType
getProperties, getPropertiesByRecordType
QuestionRecord getQuestionRecord(Type questionRecordType) throws OperationFailedException
Question
record Type.
This method is used to retrieve an
object implementing the requested record. The
questionRecordType
may be the Type
returned in
getRecordTypes()
or any of its parents in a Type
hierarchy where hasRecordType(questionRecordType)
is true
.questionRecordType
- the type of the record to retrieveNullArgumentException
- questionRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(questionRecordType)
is false
mandatory
- This method must be implemented.