OSID Logo
OSID Specifications
assessment authoring package
Version 3.0.0
Release Candidate Preview
Interfaceosid.assessment.authoring.AssessmentPartQuery
Implementsosid.OsidObjectQuery
osid.OsidContainableQuery
osid.OsidOperableQuery
Description

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

MethodmatchAssessmentId
Description

Sets the assessment Id for this query.

Parametersosid.id.IdassessmentIdan assessment Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT assessmentId is null
CompliancemandatoryThis method must be implemented.
MethodclearAssessmentIdTerms
Description

Clears all assessment Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsAssessmentQuery
Description

Tests if an AssessmentQuery is available.

Returnboolean true if an assessment query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetAssessmentQuery
Description

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

Returnosid.assessment.AssessmentQuerythe assessment query
ErrorsUNIMPLEMENTED supportsAssessmentQuery() is false
ComplianceoptionalThis method must be implemented if supportsAssessmentQuery() is true.
MethodclearAssessmentTerms
Description

Clears all assessment terms.

CompliancemandatoryThis method must be implemented.
MethodmatchParentAssessmentPartId
Description

Sets the assessment part Id for this query.

Parametersosid.id.IdassessmentPartIdan assessment part Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT assessmentPartId is null
CompliancemandatoryThis method must be implemented.
MethodclearParentAssessmentPartIdTerms
Description

Clears all assessment part Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsParentAssessmentPartQuery
Description

Tests if an AssessmentPartQuery is available.

Returnboolean true if an assessment part query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetParentAssessmentPartQuery
Description

Gets the query for an assessment part. Multiple retrievals produce a nested OR term.

Returnosid.assessment.authoring.AssessmentPartQuerythe assessment part query
ErrorsUNIMPLEMENTED supportsParentAssessmentPartQuery() is false
ComplianceoptionalThis method must be implemented if supportsParentAssessmentPartQuery() is true.
MethodmatchAnyParentAssessmentPart
Description

Matches assessment parts with any parent assessment part.

Parametersbooleanmatch true to match assessment parts with any parent, false to match assessment parts with no parents
CompliancemandatoryThis method must be implemented.
MethodclearParentAssessmentPartTerms
Description

Clears all assessment part terms.

CompliancemandatoryThis method must be implemented.
MethodmatchSection
Description

Matches assessment parts that are also used as sections.

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

Clears all section terms.

CompliancemandatoryThis method must be implemented.
MethodmatchWeight
Description

Matches assessment parts that fall in between the given weights inclusive.

Parameterscardinallowlow end of range
cardinalhighhigh end of range
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT high is less than low
CompliancemandatoryThis method must be implemented.
MethodmatchAnyWeight
Description

Matches assessment parts with any weight assigned.

Parametersbooleanmatch true to match assessment parts with any wieght, false to match assessment parts with no weight
CompliancemandatoryThis method must be implemented.
MethodclearWeightTerms
Description

Clears all weight terms.

CompliancemandatoryThis method must be implemented.
MethodmatchAllocatedTime
Description

Matches assessment parts hose allocated time falls in between the given times inclusive.

Parametersosid.calendaring.Durationlowlow end of range
osid.calendaring.Durationhighhigh end of range
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT high is less than low
CompliancemandatoryThis method must be implemented.
MethodmatchAnyAllocatedTime
Description

Matches assessment parts with any time assigned.

Parametersbooleanmatch true to match assessment parts with any alloocated time, false to match assessment parts with no allocated time
CompliancemandatoryThis method must be implemented.
MethodclearAllocatedTimeTerms
Description

Clears all allocated time terms.

CompliancemandatoryThis method must be implemented.
MethodmatchChildAssessmentPartId
Description

Sets the assessment part Id for this query.

Parametersosid.id.IdassessmentPartIdan assessment part Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT assessmentPartId is null
CompliancemandatoryThis method must be implemented.
MethodclearChildAssessmentPartIdTerms
Description

Clears all assessment part Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsChildAssessmentPartQuery
Description

Tests if an AssessmentPartQuery is available.

Returnboolean true if an assessment part query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetChildAssessmentPartQuery
Description

Gets the query for an assessment part. Multiple retrievals produce a nested OR term.

Returnosid.assessment.authoring.AssessmentPartQuerythe assessment part query
ErrorsUNIMPLEMENTED supportsChildAssessmentPartQuery() is false
ComplianceoptionalThis method must be implemented if supportsChildAssessmentPartQuery() is true.
MethodmatchAnyChildAssessmentPart
Description

Matches assessment parts with any child assessment part.

Parametersbooleanmatch true to match assessment parts with any children, false to match assessment parts with no children
CompliancemandatoryThis method must be implemented.
MethodclearChildAssessmentPartTerms
Description

Clears all assessment part terms.

CompliancemandatoryThis method must be implemented.
MethodmatchBankId
Description

Matches constrainers mapped to the bank.

Parametersosid.id.IdbankIdthe bank Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT bankId is null
CompliancemandatoryThis method must be implemented.
MethodclearBankIdTerms
Description

Clears the bank Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsBankQuery
Description

Tests if an BankQuery is available.

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

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

Returnosid.assessment.BankQuerythe bank query
ErrorsUNIMPLEMENTED supportsBankQuery() is false
ComplianceoptionalThis method must be implemented if supportsBankQuery() is true.
MethodclearBankTerms
Description

Clears the bank query terms.

CompliancemandatoryThis method must be implemented.
MethodgetAssessmentPartQueryRecord
Description

Gets the assessment part query record corresponding to the given AssessmentPart record Type. Multiple retrievals produce a nested OR term.

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