OSID Logo
OSID Specifications
assessment package
Version 3.1.0
Interfaceosid.assessment.BankQuery
Implementsosid.OsidCatalogQuery
Used Byosid.assessment.AssessmentOfferedQuery
osid.assessment.AssessmentQuery
osid.assessment.AssessmentTakenQuery
osid.assessment.BankQuery
osid.assessment.BankQuerySession
osid.assessment.BankSearchSession
osid.assessment.ItemQuery
osid.assessment.authoring.AssessmentPartQuery
osid.assessment.authoring.SequenceRuleEnablerQuery
osid.assessment.authoring.SequenceRuleQuery
Description

This is the query for searching banks Each method specifies an AND term while multiple invocations of the same method produce a nested OR.

MethodmatchItemId
Description

Sets the item Id for this query.

Parametersosid.id.IditemId an item Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT itemId is null
Compliancemandatory This method must be implemented.
MethodclearItemIdTerms
Description

Clears all item Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsItemQuery
Description

Tests if a ItemQuery is available.

Returnboolean true if an item query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetItemQuery
Description

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

Returnosid.assessment.ItemQuery the item query
ErrorsUNIMPLEMENTED supportsItemQuery() is false
Complianceoptional This method must be implemented if supportsItemQuery() is true.
MethodmatchAnyItem
Description

Matches assessment banks that have any item assigned.

Parametersbooleanmatch true to match banks with any item, false to match assessments with no item
Compliancemandatory This method must be implemented.
MethodclearItemTerms
Description

Clears all item terms.

Compliancemandatory This method must be implemented.
MethodmatchAssessmentId
Description

Sets the assessment Id for this query.

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

Clears all assessment Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsAssessmentQuery
Description

Tests if an AssessmentQuery is available.

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

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

Returnosid.assessment.AssessmentQuery the assessment query
ErrorsUNIMPLEMENTED supportsAssessmentQuery() is false
Complianceoptional This method must be implemented if supportsAssessmentQuery() is true.
MethodmatchAnyAssessment
Description

Matches assessment banks that have any assessment assigned.

Parametersbooleanmatch true to match banks with any assessment, false to match banks with no assessment
Compliancemandatory This method must be implemented.
MethodclearAssessmentTerms
Description

Clears all assessment terms.

Compliancemandatory This method must be implemented.
MethodmatchAssessmentOfferedId
Description

Sets the assessment offered Id for this query.

Parametersosid.id.IdassessmentOfferedId an assessment Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT assessmentOfferedId is null
Compliancemandatory This method must be implemented.
MethodclearAssessmentOfferedIdTerms
Description

Clears all assessment offered Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsAssessmentOfferedQuery
Description

Tests if an AssessmentOfferedQuery is available.

Returnboolean true if an assessment offered query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetAssessmentOfferedQuery
Description

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

Returnosid.assessment.AssessmentOfferedQuery the assessment offered query
ErrorsUNIMPLEMENTED supportsAssessmentOfferedQuery() is false
Complianceoptional This method must be implemented if supportsAssessmentOfferedQuery() is true.
MethodmatchAnyAssessmentOffered
Description

Matches assessment banks that have any assessment offering assigned.

Parametersbooleanmatch true to match banks with any assessment offering, false to match banks with no offering
Compliancemandatory This method must be implemented.
MethodclearAssessmentOfferedTerms
Description

Clears all assessment offered terms.

Compliancemandatory This method must be implemented.
MethodmatchAncestorBankId
Description

Sets the bank Id for to match banks in which the specified bank is an acestor.

Parametersosid.id.IdbankId a bank Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT bankId is null
Compliancemandatory This method must be implemented.
MethodclearAncestorBankIdTerms
Description

Clears all ancestor bank Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsAncestorBankQuery
Description

Tests if a BankQuery is available.

Returnboolean true if a bank query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetAncestorBankQuery
Description

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

Returnosid.assessment.BankQuery the bank query
ErrorsUNIMPLEMENTED supportsAncestorBankQuery() is false
Complianceoptional This method must be implemented if supportsAncestorBankQuery() is true.
MethodmatchAnyAncestorBank
Description

Matches a bank that has any ancestor.

Parametersbooleanmatch true to match banks with any ancestor banks, false to match root banks
Compliancemandatory This method must be implemented.
MethodclearAncestorBankTerms
Description

Clears all ancestor bank terms.

Compliancemandatory This method must be implemented.
MethodmatchDescendantBankId
Description

Sets the bank Id for to match banks in which the specified bank is a descendant.

Parametersosid.id.IdbankId a bank Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT bankId is null
Compliancemandatory This method must be implemented.
MethodclearDescendantBankIdTerms
Description

Clears all descendant bank Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsDescendantBankQuery
Description

Tests if a BankQuery is available.

Returnboolean true if a bank query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetDescendantBankQuery
Description

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

Returnosid.assessment.BankQuery the bank query
ErrorsUNIMPLEMENTED supportsDescendantBankQuery() is false
Complianceoptional This method must be implemented if supportsDescendantBankQuery() is true.
MethodmatchAnyDescendantBank
Description

Matches a bank that has any descendant.

Parametersbooleanmatch true to match banks with any descendant banks, false to match leaf banks
Compliancemandatory This method must be implemented.
MethodclearDescendantBankTerms
Description

Clears all descendant bank terms.

Compliancemandatory This method must be implemented.
MethodgetBankQueryRecord
Description

Gets the bank query record corresponding to the given Bank record Type.Multiple record retrievals produce a nested OR term.

Parametersosid.type.TypebankRecordType a bank record type
Returnosid.assessment.records.BankQueryRecord the bank query record
ErrorsNULL_ARGUMENT bankRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(bankRecordType) is false
Compliancemandatory This method must be implemented.