OSID Logo
OSID Specifications
assessment package
Version 3.1.0
Interfaceosid.assessment.Item
Implementsosid.OsidObject
osid.Aggregateable
Used Byosid.assessment.ItemAdminSession
osid.assessment.ItemList
osid.assessment.ItemLookupSession
osid.assessment.Response
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.IdList the learning objective Ids
Compliancemandatory This method must be implemented.
MethodgetLearningObjectives
Description

Gets the any Objectives corresponding to this item.

Returnosid.learning.ObjectiveList the learning objectives
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetQuestionId
Description

Gets the Id of the Question.

Returnosid.id.Id the question Id
Compliancemandatory This method must be implemented.
MethodgetQuestion
Description

Gets the question.

Returnosid.assessment.Question the question
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetAnswerIds
Description

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

Returnosid.id.IdList the answer Ids
Compliancemandatory This method must be implemented.
MethodgetAnswers
Description

Gets the answers.

Returnosid.assessment.AnswerList the answers
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This 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.TypeitemRecordType the type of the record to retrieve
Returnosid.assessment.records.ItemRecord the item record
ErrorsNULL_ARGUMENT itemRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(itemRecordType) is false
Compliancemandatory This method must be implemented.