OSID Logo
OSID Specifications
assessment package
Version 3.0.0
Release Candidate Preview
Interfaceosid.assessment.Item
Implementsosid.OsidObject
osid.Aggregateable
Description

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.

MethodgetLearningObjectiveIds
Description

Gets the Ids of any Objectives corresponding to this item.

Returnosid.id.IdListthe learning objective Ids
CompliancemandatoryThis method must be implemented.
MethodgetLearningObjectives
Description

Gets the any Objectives corresponding to this item.

Returnosid.learning.ObjectiveListthe learning objectives
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetQuestionId
Description

Gets the Id of the Question .

Returnosid.id.Idthe question Id
CompliancemandatoryThis method must be implemented.
MethodgetQuestion
Description

Gets the question.

Returnosid.assessment.Questionthe question
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetAnswerIds
Description

Gets the Ids of the answers. Questions may have more than one acceptable answer.

Returnosid.id.IdListthe answer Ids
CompliancemandatoryThis method must be implemented.
MethodgetAnswers
Description

Gets the answers.

Returnosid.assessment.AnswerListthe answers
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetItemRecord
Description

Gets the item record corresponding to the given 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 .

Parametersosid.type.TypeitemRecordTypethe type of the record to retrieve
Returnosid.assessment.records.ItemRecordthe item record
ErrorsNULL_ARGUMENT itemRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(itemRecordType) is false
CompliancemandatoryThis method must be implemented.