OSID Logo
OSID Specifications
search package
Version 3.1.0
Interfaceosid.search.EngineQuery
Implementsosid.OsidCatalogQuery
Used Byosid.search.EngineQuery
osid.search.EngineQuerySession
osid.search.EngineSearchSession
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.

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 negative match
ErrorsNULL_ARGUMENT engineId is null
Compliancemandatory This method must be implemented.
MethodclearAncestorEngineIdTerms
Description

Clears all ancestor engine Id 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.search.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 all ancestor engine 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 negative match
ErrorsNULL_ARGUMENT engineId is null
Compliancemandatory This method must be implemented.
MethodclearDescendantEngineIdTerms
Description

Clears all descendant engine Id 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.search.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 all descendant engine 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.search.records.EngineQueryRecord the engine query record
ErrorsNULL_ARGUMENT engineRecordType is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED hasRecordType(engineRecordType) is false
Compliancemandatory This method must be implemented.