OSID Logo
OSID Specifications
rules package
Version 3.1.0
Interfaceosid.rules.RuleQuery
Implementsosid.OsidRuleQuery
Used Byosid.OsidRuleQuery
osid.rules.EngineQuery
osid.rules.RuleQuerySession
osid.rules.RuleSearchSession
osid.rules.RuleSmartEngineSession
Description

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

MethodmatchEngineId
Description

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

Parametersosid.id.IdengineId an 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 an 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 query. 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.
MethodgetRuleQueryRecord
Description

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

Parametersosid.type.TyperuleRecordType a rule record type
Returnosid.rules.records.RuleQueryRecord the rule query record
ErrorsNULL_ARGUMENT ruleRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(ruleRecordType) is false
Compliancemandatory This method must be implemented.