OSID Logo
OSID Specifications
recipe package
Version 3.1.0
Interfaceosid.recipe.CookbookQuery
Implementsosid.OsidCatalogQuery
Used Byosid.recipe.CookbookQuery
osid.recipe.CookbookQuerySession
osid.recipe.CookbookSearchSession
osid.recipe.DirectionQuery
osid.recipe.ProcedureQuery
osid.recipe.RecipeQuery
Description

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

MethodmatchRecipeId
Description

Sets the recipe Id for this query.

Parametersosid.id.IdrecipeId a recipe Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT recipeId is null
Compliancemandatory This method must be implemented.
MethodclearRecipeIdTerms
Description

Clears the recipe Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsRecipeQuery
Description

Tests if a recipe query is available.

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

Gets the query for a recipe.

Returnosid.recipe.RecipeQuery the recipe query
ErrorsUNIMPLEMENTED supportsRecipeQuery() is false
Complianceoptional This method must be implemented if supportsRecipeQuery() is true.
MethodmatchAnyRecipe
Description

Matches cookbooks with any recipe.

Parametersbooleanmatch true to match cookbooks with any recipe, false to match cookbooks with no recipes
Compliancemandatory This method must be implemented.
MethodclearRecipeTerms
Description

Clears the procedure terms.

Compliancemandatory This method must be implemented.
MethodmatchProcedureId
Description

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

Parametersosid.id.IdprocedureId a procedure Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT procedureId is null
Compliancemandatory This method must be implemented.
MethodclearProcedureIdTerms
Description

Clears the procedure Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsProcedureQuery
Description

Tests if a procedure query is available.

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

Gets the query for a procedure.

Returnosid.recipe.ProcedureQuery the procedure query
ErrorsUNIMPLEMENTED supportsProcedureQuery() is false
Complianceoptional This method must be implemented if supportsProcedureQuery() is true.
MethodmatchAnyProcedure
Description

Matches cookbooks with any procedure.

Parametersbooleanmatch true to match cookbooks with any procedure, false to match cookbooks with no procedures
Compliancemandatory This method must be implemented.
MethodclearProcedureTerms
Description

Clears the procedure terms.

Compliancemandatory This method must be implemented.
MethodmatchDirectionId
Description

Sets a direction Id.

Parametersosid.id.IddirectionId a direction Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT directionId is null
Compliancemandatory This method must be implemented.
MethodclearDirectionIdTerms
Description

Clears the direction Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsDirectionQuery
Description

Tests if a DirectionQuery is available.

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

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

Returnosid.recipe.DirectionQuery the direction query
ErrorsUNIMPLEMENTED supportsDirectionQuery() is false
Complianceoptional This method must be implemented if supportsDirectionQuery() is true.
MethodmatchAnyDirection
Description

Matches any direction.

Parametersbooleanmatch true to match cookbooks with any direction, false to match cookbooks with no directions
Compliancemandatory This method must be implemented.
MethodclearDirectionTerms
Description

Clears the direction terms.

Compliancemandatory This method must be implemented.
MethodmatchAncestorCookbookId
Description

Sets the cookbook Id for this query to match cookbooks that have the specified cookbook as an ancestor.

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

Clears the ancestor cookbook Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsAncestorCookbookQuery
Description

Tests if an CookbookQuery is available.

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

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

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

Matches cookbooks with any ancestor.

Parametersbooleanmatch true to match cookbooks with any ancestor, false to match root cookbooks
Compliancemandatory This method must be implemented.
MethodclearAncestorCookbookTerms
Description

Clears the ancestor cookbook terms.

Compliancemandatory This method must be implemented.
MethodmatchDescendantCookbookId
Description

Sets the cookbook Id for this query to match cookbooks that have the specified cookbook as a descendant.

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

Clears the descendant coo book Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsDescendantCookbookQuery
Description

Tests if an CookbookQuery is available.

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

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

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

Matches cookbooks with any descendant.

Parametersbooleanmatch true to match cookbooks with any descendant, false to match leaf cookbooks
Compliancemandatory This method must be implemented.
MethodclearDescendantCookbookTerms
Description

Clears the descendant cookbook terms.

Compliancemandatory This method must be implemented.
MethodgetCookbookQueryRecord
Description

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

Parametersosid.type.TypecookbookRecordType a cookbook record type
Returnosid.recipe.records.CookbookQueryRecord the cookbook query record
ErrorsNULL_ARGUMENT cookbookRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(cookbookRecordType) is false
Compliancemandatory This method must be implemented.