public interface Item extends OsidObject
An Item
represents an individual assessment item such as
a question. Like all OSID objects, a Item
is identified by
its Id
and any persisted references should use the
Id.
An Item
is composed of a Question
and an Answer.
Modifier and Type | Method and Description |
---|---|
IdList |
getAnswerIds()
Gets the
Ids of the answers. |
AnswerList |
getAnswers()
Gets the answers.
|
ItemRecord |
getItemRecord(Type itemRecordType)
Gets the item record corresponding to the given
Item
record Type . |
IdList |
getLearningObjectiveIds()
Gets the
Ids of any Objectives
corresponding to this item. |
ObjectiveList |
getLearningObjectives()
Gets the any
Objectives corresponding to this item. |
Question |
getQuestion()
Gets the question.
|
Id |
getQuestionId()
Gets the
Id of the Question . |
getDescription, getDisplayName, getGenusType, isOfGenusType
getId, isCurrent
getRecordTypes, hasRecordType
getProperties, getPropertiesByRecordType
IdList getLearningObjectiveIds()
Ids
of any Objectives
corresponding to this item. Ids
mandatory
- This method must be implemented. ObjectiveList getLearningObjectives() throws OperationFailedException
Objectives
corresponding to this item.OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. Id getQuestionId()
Id
of the Question
. Id
mandatory
- This method must be implemented. Question getQuestion() throws OperationFailedException
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. IdList getAnswerIds()
Ids
of the answers. Questions may have more
than one acceptable answer. Ids
mandatory
- This method must be implemented. AnswerList getAnswers() throws OperationFailedException
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. ItemRecord getItemRecord(Type itemRecordType) throws OperationFailedException
Item
record Type
. This method is used to retrieve an object
implementing the requested records. The itemRecordType
may be the Type
returned in getRecordTypes()
or any of its parents in a Type
hierarchy where
hasRecordType(itemRecordType)
is true
.itemRecordType
- the type of the record to retrieveNullArgumentException
- itemRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(itemRecordType)
is false
mandatory
- This method must be implemented.