OSID Logo
OSID Specifications
rules package
Version 3.1.0
Interfaceosid.rules.EngineQuery
Implementsosid.OsidCatalogQuery
Used Byosid.rules.EngineQuery
osid.rules.EngineQuerySession
osid.rules.EngineSearchSession
osid.rules.RuleQuery
osid.rules.check.AgendaQuery
osid.rules.check.CheckQuery
osid.rules.check.InstructionQuery
Description

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

MethodmatchRuleId
Description

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

Parametersosid.id.IdruleId a rule Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT ruleId is null
Compliancemandatory This method must be implemented.
MethodclearRuleIdTerms
Description

Clears the rule Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsRuleQuery
Description

Tests if a rule query is available.

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

Gets the query for a rule.

Returnosid.rules.RuleQuery the rule query
ErrorsUNIMPLEMENTED supportsRuleQuery() is false
Complianceoptional This method must be implemented if supportsRuleQuery() is true.
MethodmatchAnyRule
Description

Matches engines with any riule.

Parametersbooleanmatch true to match engines with any rule,, false to match engines with no rules
Compliancemandatory This method must be implemented.
MethodclearRuleTerms
Description

Clears the rule query terms.

Compliancemandatory This method must be implemented.
MethodmatchAncestorEngineId
Description

Sets the engine Id for this query to match engines that have the specified engine as an ancestor.

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.
MethodclearAncestorEngineIdTerms
Description

Clears the ancestor engine Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsAncestorEngineQuery
Description

Tests if an EngineQuery is available.

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

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

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

Matches engines with any ancestor.

Parametersbooleanmatch true to match engine with any ancestor, false to match root engines
Compliancemandatory This method must be implemented.
MethodclearAncestorEngineTerms
Description

Clears the ancestor engine query terms.

Compliancemandatory This method must be implemented.
MethodmatchDescendantEngineId
Description

Sets the engine Id for this query to match engines that have the specified engine as a descendant.

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.
MethodclearDescendantEngineIdTerms
Description

Clears the descendant engine Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsDescendantEngineQuery
Description

Tests if an EngineQuery is available.

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

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

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

Matches engines with any descendant.

Parametersbooleanmatch true to match engine with any descendant, false to match leaf engines
Compliancemandatory This method must be implemented.
MethodclearDescendantEngineTerms
Description

Clears the descendant engine query terms.

Compliancemandatory This method must be implemented.
MethodgetEngineQueryRecord
Description

Gets the engine query record corresponding to the given Engine record Type .Multiple record retrievals produce a nested boolean OR term.

Parametersosid.type.TypeengineRecordType an engine record type
Returnosid.rules.records.EngineQueryRecord the engine query record
ErrorsNULL_ARGUMENT engineRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(engineRecordType) is false
Compliancemandatory This method must be implemented.