OSID Logo
OSID Specifications
recipe package
Version 3.1.0
Interfaceosid.recipe.ProcedureQuery
Implementsosid.OsidObjectQuery
Used Byosid.recipe.CookbookQuery
osid.recipe.DirectionQuery
osid.recipe.ProcedureQuerySession
osid.recipe.ProcedureSearchSession
osid.recipe.ProcedureSmartCookbookSession
Description

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

MethodmatchLearningObjectiveId
Description

Sets the objective Id for this query.

Parametersosid.id.IdobjectiveId the asset Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT objectiveId is null
Compliancemandatory This method must be implemented.
MethodclearLearningObjectiveIdTerms
Description

Clears the objective Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsLearningObjectiveQuery
Description

Tests if an ObjectiveQuery is available.

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

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

Returnosid.learning.ObjectiveQuery the objective query
ErrorsUNIMPLEMENTED supportsLearningObjectiveQuery() is false
Complianceoptional This method must be implemented if supportsLearningObjectiveQuery() is true.
MethodmatchAnyLearningObjective
Description

Matches directions with any objective.

Parametersbooleanmatch true to match directions with any objective, false to match directions with no objectives
Compliancemandatory This method must be implemented.
MethodclearLearningObjectiveTerms
Description

Clears the objective query terms.

Compliancemandatory This method must be implemented.
MethodmatchCookbookId
Description

Sets the award Id for this query to match procedures assigned to cookbooks.

Parametersosid.id.IdcookbookId a cookbook Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT cookbookId is null
Compliancemandatory This method must be implemented.
MethodclearCookbookIdTerms
Description

Clears the cookbook Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsCookbookQuery
Description

Tests if an CookbookQuery is available.

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

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

Returnosid.recipe.CookbookQuery the cookbook query
ErrorsUNIMPLEMENTED supportsCookbookQuery() is false
Complianceoptional This method must be implemented if supportsCookbookQuery() is true.
MethodclearCookbookTerms
Description

Clears the cookbook terms.

Compliancemandatory This method must be implemented.
MethodgetProcedureQueryRecord
Description

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

Parametersosid.type.TypeprocedureRecordType a procedure record type
Returnosid.recipe.records.ProcedureQueryRecord the procedure query record
ErrorsNULL_ARGUMENT procedureRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(procedureRecordType) is false
Compliancemandatory This method must be implemented.