OSID Logo
OSID Specifications
assessment authoring package
Version 3.0.0
Interfaceosid.assessment.authoring.AssessmentPartQuery
Implementsosid.OsidObjectQuery
osid.OsidContainableQuery
osid.OsidOperableQuery
Used Byosid.assessment.authoring.AssessmentPartQuery
osid.assessment.authoring.AssessmentPartQuerySession
osid.assessment.authoring.AssessmentPartSearchSession
osid.assessment.authoring.AssessmentPartSmartBankSession
osid.assessment.authoring.SequenceRuleQuery
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
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTassessmentId 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.

Returnbooleantrue 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
ErrorsUNIMPLEMENTEDsupportsAssessmentQuery() 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
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTassessmentPartId 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.

Returnbooleantrue 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
ErrorsUNIMPLEMENTEDsupportsParentAssessmentPartQuery() is false
ComplianceoptionalThis method must be implemented if supportsParentAssessmentPartQuery() is true .
MethodmatchAnyParentAssessmentPart
Description

Matches assessment parts with any parent assessment part.

Parametersbooleanmatchtrue 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.

Parametersbooleanmatchtrue 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
booleanmatchtrue for a positive match, false for a negative match
ErrorsINVALID_ARGUMENThigh is less than low
CompliancemandatoryThis method must be implemented.
MethodmatchAnyWeight
Description

Matches assessment parts with any weight assigned.

Parametersbooleanmatchtrue 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
booleanmatchtrue for a positive match, false for a negative match
ErrorsINVALID_ARGUMENThigh is less than low
CompliancemandatoryThis method must be implemented.
MethodmatchAnyAllocatedTime
Description

Matches assessment parts with any time assigned.

Parametersbooleanmatchtrue 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
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTassessmentPartId 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.

Returnbooleantrue 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
ErrorsUNIMPLEMENTEDsupportsChildAssessmentPartQuery() is false
ComplianceoptionalThis method must be implemented if supportsChildAssessmentPartQuery() is true .
MethodmatchAnyChildAssessmentPart
Description

Matches assessment parts with any child assessment part.

Parametersbooleanmatchtrue 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
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTbankId 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.

Returnbooleantrue 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
ErrorsUNIMPLEMENTEDsupportsBankQuery() 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_ARGUMENTassessmentPartRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(assessmentPartRecordType) is false
CompliancemandatoryThis method must be implemented.