OSID Logo
OSID Specifications
assessment authoring package
Version 3.0.0
Release Candidate Preview
Interfaceosid.assessment.authoring.AssessmentPartForm
Implementsosid.OsidObjectForm
osid.OsidContainableForm
osid.OsidOperableForm
Description

This is the form for creating and updating AssessmentParts. Like all OsidForm objects, various data elements may be set here for use in the create and update methods in the AssessmentAuthoringSession. For each data element that may be set, metadata may be examined to provide display hints or data constraints.

MethodgetWeightMetadata
Description

Gets the metadata for the weight.

Returnosid.Metadatametadata for the weight
CompliancemandatoryThis method must be implemented.
MethodsetWeight
Description

Sets the weight on a scale from 0-100.

Parameterscardinalweightthe new weight
ErrorsINVALID_ARGUMENT weight is invalid
NO_ACCESS Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodclearWeight
Description

Clears the weight.

ErrorsNO_ACCESS Metadata.isRequired() or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetAllocatedTimeMetadata
Description

Gets the metadata for the allocated time.

Returnosid.Metadatametadata for the allocated time
CompliancemandatoryThis method must be implemented.
MethodsetAllocatedTime
Description

Sets the allocated time.

Parametersosid.calendaring.Durationtimethe allocated time
ErrorsINVALID_ARGUMENT time is invalid
NO_ACCESS Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodclearAllocatedTime
Description

Clears the allocated time.

ErrorsNO_ACCESS Metadata.isRequired() or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetAssessmentPartFormRecord
Description

Gets the AssessmentPartFormRecord corresponding to the given assessment record Type.

Parametersosid.type.TypeassessmentPartRecordTypethe assessment part record type
Returnosid.assessment.authoring.records.AssessmentPartFormRecordthe assessment part record
ErrorsNULL_ARGUMENT assessmentPartRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(assessmentPartRecordType) is false
CompliancemandatoryThis method must be implemented.