OSID Logo
OSID Specifications
rules check package
Version 3.1.0
Interfaceosid.rules.check.InstructionQuery
Implementsosid.OsidRelationshipQuery
osid.OsidRuleApplicatorQuery
Used Byosid.rules.check.InstructionQuerySession
osid.rules.check.InstructionSearchSession
osid.rules.check.InstructionSmartEngineSession
Description

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

MethodmatchAgendaId
Description

Sets the agenda Id for this query.

Parametersosid.id.IdagendaId the agenda Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT agendaId is null
Compliancemandatory This method must be implemented.
MethodclearAgendaIdTerms
Description

Clears the agenda Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsAgendaQuery
Description

Tests if an AgendaQuery is available.

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

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

Returnosid.rules.check.AgendaQuery the agenda query
ErrorsUNIMPLEMENTED supportsAgendaQuery() is false
Complianceoptional This method must be implemented if supportsAgendaQuery() is true.
MethodclearAgendaTerms
Description

Clears the agenda query terms.

Compliancemandatory This method must be implemented.
MethodmatchCheckId
Description

Sets the check Id for this query.

Parametersosid.id.IdcheckId the check Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT checkId is null
Compliancemandatory This method must be implemented.
MethodclearCheckIdTerms
Description

Clears the check Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsCheckQuery
Description

Tests if a CheckQuery is available.

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

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

Returnosid.rules.check.CheckQuery the check query
ErrorsUNIMPLEMENTED supportsCheckQuery() is false
Complianceoptional This method must be implemented if supportsCheckQuery() is true.
MethodclearCheckTerms
Description

Clears the check query terms.

Compliancemandatory This method must be implemented.
MethodmatchMessage
Description

Adds a message for this query.

Parametersstringmessage message string to match
osid.type.TypestringMatchType the string match type
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT message not of stringMatchType
NULL_ARGUMENT message or stringMatchType is null
UNSUPPORTED supportsStringMatchType(stringMatchType) is false
Compliancemandatory This method must be implemented.
MethodmatchAnyMessage
Description

Matches instructions that have any message.

Parametersbooleanmatch true to match instructions with any message, false to match instructions with no message
Compliancemandatory This method must be implemented.
MethodclearMessageTerms
Description

Clears the message query terms.

Compliancemandatory This method must be implemented.
MethodmatchWarning
Description

Matches warnings.

Parametersbooleanmatch true to match warnings, false to match hard errors
Compliancemandatory This method must be implemented.
MethodmatchAnyWarning
Description

Matches instructions that have any warning status set.

Parametersbooleanmatch true to match instructions with any warning status set, false otherwise
Compliancemandatory This method must be implemented.
MethodclearWarningTerms
Description

Clears the warning query terms.

Compliancemandatory This method must be implemented.
MethodmatchContinueOnFail
Description

Matches continue-on-fail instructions.

Parametersbooleanmatch true to match continue-on-fail instructions, false otherwise
Compliancemandatory This method must be implemented.
MethodmatchAnyContinueOnFail
Description

Matches instructions that have any continue on fail status set.

Parametersbooleanmatch true to match instructions with any continue on fail status set, false otherwise
Compliancemandatory This method must be implemented.
MethodclearContinueOnFailTerms
Description

Clears the continue-on-fail query terms.

Compliancemandatory This method must be implemented.
MethodmatchBreakOnSuccess
Description

Matches break-on-successl instructions.

Parametersbooleanmatch true to match break-on-successl instructions, false otherwise
Compliancemandatory This method must be implemented.
MethodmatchAnyBreakOnSuccess
Description

Matches instructions that have any break on success status set.

Parametersbooleanmatch true to match instructions with any break on success status set, false otherwise
Compliancemandatory This method must be implemented.
MethodclearBreakOnSuccessTerms
Description

Clears the break-on-success query terms.

Compliancemandatory This method must be implemented.
MethodmatchEngineId
Description

Sets the engine Id for this query to match instructions assigned to engines.

Parametersosid.id.IdengineId the engine Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT engineId is null
Compliancemandatory This method must be implemented.
MethodclearEngineIdTerms
Description

Clears the engine Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsEngineQuery
Description

Tests if a EngineQuery is available.

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

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

Returnosid.rules.EngineQuery the engine query
ErrorsUNIMPLEMENTED supportsEngineQuery() is false
Complianceoptional This method must be implemented if supportsEngineQuery() is true.
MethodclearEngineTerms
Description

Clears the engine query terms.

Compliancemandatory This method must be implemented.
MethodmatchOrder
Description

Matches instructions within the given order range inclusive.

Parametersintegerfrom start of range
integerto end of range
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT from is greater than to
Compliancemandatory This method must be implemented.
MethodclearOrderTerms
Description

Clears the order terms.

Compliancemandatory This method must be implemented.
MethodgetInstructionQueryRecord
Description

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

Parametersosid.type.TypeinstructionRecordType an instruction record type
Returnosid.rules.check.records.InstructionQueryRecord the instruction query record
ErrorsNULL_ARGUMENT instructionRecordType is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED hasRecordType(instructionRecordType) is false
Compliancemandatory This method must be implemented.