OSID Logo
OSID Specifications
inquiry package
Version 3.0.0
Release Candidate Preview
Interfaceosid.inquiry.InquiryQuery
Implementsosid.OsidRuleQuery
osid.OsidSubjugateableQuery
Description

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

MethodmatchAuditId
Description

Sets the audit Id for this query.

Parametersosid.id.IdauditIdthe audit Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT auditId is null
CompliancemandatoryThis method must be implemented.
MethodclearAuditIdTerms
Description

Clears the audit Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsAuditQuery
Description

Tests if an AuditQuery is available.

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

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

Returnosid.inquiry.AuditQuerythe audit query
ErrorsUNIMPLEMENTED supportsAuditQuery() is false
ComplianceoptionalThis method must be implemented if supportAuditQuery() is true.
MethodclearAuditTerms
Description

Clears the audit query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchQuestion
Description

Sets the question for this query.

Parametersstringquestionthe question
osid.type.TypestringMatchTypea string match type
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT question or stringMatchType is null
UNSUPPORTED supportsStringMatchType(stringMatchType) is false
CompliancemandatoryThis method must be implemented.
MethodmatchAnyQuestion
Description

Matches inquiries with any question.

Parametersbooleanmatch true to match inquiries with a question, false to match inquiries with no question
CompliancemandatoryThis method must be implemented.
MethodclearQuestionTerms
Description

Clears the question query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchRequired
Description

Matches inquiries that are required.

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

Matches inquiries with any required flag set.

Parametersbooleanmatch true to match inquiries with a required flag set, false to match inquiries with no required flag set
CompliancemandatoryThis method must be implemented.
MethodclearRequiredTerms
Description

Clears the required query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchAffirmationRequired
Description

Matches inquiries that require a positive response.

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

Matches inquiries with any affirmation required flag set.

Parametersbooleanmatch true to match inquiries with an affirmation required flag set, false to match inquiries with no affirmation required flag set
CompliancemandatoryThis method must be implemented.
MethodclearAffirmationRequiredTerms
Description

Clears the affirmation required query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchNeedsOneResponse
Description

Matches inquiries that require a single response.

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

Matches inquiries with any needs one response set.

Parametersbooleanmatch true to match inquiries with a need one response flag set, false to match inquiries with no needs one response flag set
CompliancemandatoryThis method must be implemented.
MethodclearNeedsOneResponseTerms
Description

Clears the needs one response query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchInquestId
Description

Sets the inquest Id for this query to match inquiries assigned to inquests.

Parametersosid.id.IdinquestIdthe inquest Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT inquestId is null
CompliancemandatoryThis method must be implemented.
MethodclearInquestIdTerms
Description

Clears the inquest Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsInquestQuery
Description

Tests if an InquestQuery is available.

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

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

Returnosid.inquiry.InquestQuerythe inquest query
ErrorsUNIMPLEMENTED supportsInquestQuery() is false
ComplianceoptionalThis method must be implemented if supportsInquestQuery() is true.
MethodclearInquestTerms
Description

Clears the inquest query terms.

CompliancemandatoryThis method must be implemented.
MethodgetInquiryQueryRecord
Description

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

Parametersosid.type.TypeinquiryRecordTypean inquiry record type
Returnosid.inquiry.records.InquiryQueryRecordthe inquiry query record
ErrorsNULL_ARGUMENT inquiryRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(inquiryRecordType) is false
CompliancemandatoryThis method must be implemented.