OSID Logo
OSID Specifications
grading package
Version 3.0.0
Release Candidate Preview
Interfaceosid.grading.GradeForm
Implementsosid.OsidObjectForm
osid.OsidSubjugateableForm
Description

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

MethodgetInputScoreStartRangeMetadata
Description

Gets the metadata for the input score start range.

Returnosid.Metadatametadata for the input score start range
CompliancemandatoryThis method must be implemented.
MethodsetInputScoreStartRange
Description

Sets the input score start range.

Parametersdecimalscorethe new start range
ErrorsINVALID_ARGUMENT score is invalid
NO_ACCESS range cannot be modified
CompliancemandatoryThis method must be implemented.
MethodclearInputStartScoreRange
Description

Clears the input score start.

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

Gets the metadata for the input score start range.

Returnosid.Metadatametadata for the input score start range
CompliancemandatoryThis method must be implemented.
MethodsetInputScoreEndRange
Description

Sets the input score start range.

Parametersdecimalscorethe new start range
ErrorsINVALID_ARGUMENT score is invalid
NO_ACCESS range cannot be modified
CompliancemandatoryThis method must be implemented.
MethodclearInputScoreEndRange
Description

Clears the input score start.

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

Gets the metadata for the output score start range.

Returnosid.Metadatametadata for the output score start range
CompliancemandatoryThis method must be implemented.
MethodsetOutputScore
Description

Sets the output score.

Parametersdecimalscorethe new output score
ErrorsINVALID_ARGUMENT score is invalid
NO_ACCESS score cannot be modified
CompliancemandatoryThis method must be implemented.
MethodclearOutputScore
Description

Clears the output score.

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

Gets the GradeFormRecord corresponding to the given grade record Type.

Parametersosid.type.TypegradeRecordTypethe grade record type
Returnosid.grading.records.GradeFormRecordthe grade form record
ErrorsNULL_ARGUMENT gradeRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(gradeRecordType) is false
CompliancemandatoryThis method must be implemented.