OSID Logo
OSID Specifications
grading package
Version 3.0.0
Release Candidate Preview
Interfaceosid.grading.GradeSystemQuery
Implementsosid.OsidObjectQuery
osid.OsidAggregateableQuery
Description

This is the query for searching grade systems. Each method match request produces an AND term while multiple invocations of a method produces a nested OR.

MethodmatchBasedOnGrades
Description

Matches grade systems based on grades.

Parametersbooleanmatch true for a positive match, false for negative match
CompliancemandatoryThis method must be implemented.
MethodclearBasedOnGradesTerms
Description

Clears the grade based terms.

CompliancemandatoryThis method must be implemented.
MethodmatchGradeId
Description

Sets the grade Id for this query.

Parametersosid.id.IdgradeIda grade Id
booleanmatch true for a positive match, false for negative match
ErrorsNULL_ARGUMENT gradeId is null
CompliancemandatoryThis method must be implemented.
MethodclearGradeIdTerms
Description

Clears the grade Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsGradeQuery
Description

Tests if a GradeQuery is available for querying grades.

Returnboolean true if a grade query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetGradeQuery
Description

Gets the query for a grade. Multiple retrievals produce a nested OR term.

Returnosid.grading.GradeQuerythe grade query
ErrorsUNIMPLEMENTED supportsGradeQuery() is false
ComplianceoptionalThis method must be implemented if supportsGradeQuery() is true.
MethodmatchAnyGrade
Description

Matches grade systems with any grade.

Parametersbooleanmatch true to match grade systems with any grade, false to match systems with no grade
CompliancemandatoryThis method must be implemented.
MethodclearGradeTerms
Description

Clears the grade terms.

CompliancemandatoryThis method must be implemented.
MethodmatchLowestNumericScore
Description

Matches grade systems whose low end score falls in the specified range inclusive.

Parametersdecimalstartlow end of range
decimalendhigh end of range
booleanmatch true for a positive match, false for negative match
ErrorsINVALID_ARGUMENT end is less than start
NULL_ARGUMENT gradeId is null
CompliancemandatoryThis method must be implemented.
MethodclearLowestNumericScoreTerms
Description

Clears the lowest numeric score terms.

CompliancemandatoryThis method must be implemented.
MethodmatchNumericScoreIncrement
Description

Matches grade systems numeric score increment is between the specified range inclusive.

Parametersdecimalstartlow end of range
decimalendhigh end of range
booleanmatch true for a positive match, false for negative match
ErrorsINVALID_ARGUMENT end is less than start
NULL_ARGUMENT gradeId is null
CompliancemandatoryThis method must be implemented.
MethodclearNumericScoreIncrementTerms
Description

Clears the numeric score increment terms.

CompliancemandatoryThis method must be implemented.
MethodmatchHighestNumericScore
Description

Matches grade systems whose high end score falls in the specified range inclusive.

Parametersdecimalstartlow end of range
decimalendhigh end of range
booleanmatch true for a positive match, false for negative match
ErrorsINVALID_ARGUMENT end is less than start
NULL_ARGUMENT gradeId is null
CompliancemandatoryThis method must be implemented.
MethodclearHighestNumericScoreTerms
Description

Clears the highest numeric score terms.

CompliancemandatoryThis method must be implemented.
MethodmatchGradebookColumnId
Description

Sets the gradebook column Id for this query.

Parametersosid.id.IdgradebookColumnIda gradebook column Id
booleanmatch true for a positive match, false for negative match
ErrorsNULL_ARGUMENT gradebookColumnId is null
CompliancemandatoryThis method must be implemented.
MethodclearGradebookColumnIdTerms
Description

Clears the gradebook column Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsGradebookColumnQuery
Description

Tests if a GradebookColumnQuery is available.

Returnboolean true if a gradebook column query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetGradebookColumnQuery
Description

Gets the query for a gradebook column. Multiple retrievals produce a nested OR term.

Returnosid.grading.GradebookColumnQuerythe gradebook column query
ErrorsUNIMPLEMENTED supportsGradebookColumnQuery() is false
ComplianceoptionalThis method must be implemented if supportsGradebookColumnQuery() is true.
MethodmatchAnyGradebookColumn
Description

Matches grade systems assigned to any gradebook column.

Parametersbooleanmatch true to match grade systems mapped to any column, false to match systems mapped to no columns
CompliancemandatoryThis method must be implemented.
MethodclearGradebookColumnTerms
Description

Clears the gradebook column terms.

CompliancemandatoryThis method must be implemented.
MethodmatchGradebookId
Description

Sets the gradebook Id for this query.

Parametersosid.id.IdgradebookIda gradebook Id
booleanmatch true for a positive match, false for negative match
ErrorsNULL_ARGUMENT gradebookId is null
CompliancemandatoryThis method must be implemented.
MethodclearGradebookIdTerms
Description

Clears the gradebook Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsGradebookQuery
Description

Tests if a GradebookQuery is available .

Returnboolean true if a gradebook query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetGradebookQuery
Description

Gets the query for a gradebook. Multiple retrievals produce a nested OR term.

Returnosid.grading.GradebookQuerythe gradebook query
ErrorsUNIMPLEMENTED supportsGradebookQuery() is false
ComplianceoptionalThis method must be implemented if supportsGradebookQuery() is true.
MethodclearGradebookTerms
Description

Clears the gradebook terms.

CompliancemandatoryThis method must be implemented.
MethodgetGradeSystemQueryRecord
Description

Gets the grade system query record corresponding to the given GradeSystem record Type. Multiple retrievals produce a nested OR term.

Parametersosid.type.TypegradeSystemRecordTypea grade system record type
Returnosid.grading.records.GradeSystemQueryRecordthe grade system query record
ErrorsNULL_ARGUMENT gradeSystemRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(gradeSystemRecordType) is false
CompliancemandatoryThis method must be implemented.