OSID Logo
OSID Specifications
offering package
Version 3.0.0
Release Candidate Preview
Interfaceosid.offering.ResultForm
Implementsosid.OsidObjectForm
osid.OsidTemporalForm
osid.OsidSubjugateableForm
Description

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

MethodgetGradeMetadata
Description

Gets the metadata for a grade.

Returnosid.Metadatametadata for the grade
CompliancemandatoryThis method must be implemented.
MethodsetGrade
Description

Sets the grade.

Parametersosid.id.IdgradeIdthe grade Id
ErrorsINVALID_ARGUMENT gradeId is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT gradeId is null
CompliancemandatoryThis method must be implemented.
MethodclearGrade
Description

Clears the grade.

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

Gets the metadata for a value/

Returnosid.Metadatametadata for the value
CompliancemandatoryThis method must be implemented.
MethodsetValue
Description

Sets the value.

Parametersdecimalvaluethe value
ErrorsINVALID_ARGUMENT value is invalid
NO_ACCESS Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodclearValue
Description

Clears the value.

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

Gets the ResultFormRecord interface corresponding to the given result record Type.

Parametersosid.type.TyperesultRecordTypethe result record type
Returnosid.offering.records.ResultFormRecordthe record
ErrorsNULL_ARGUMENT resultRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(resultRecordType) is false
CompliancemandatoryThis method must be implemented.