OSID Logo
OSID Specifications
recipe package
Version 3.0.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.IdrecipeIda recipe Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTrecipeId is null
CompliancemandatoryThis method must be implemented.
MethodclearRecipeIdTerms
Description

Clears the recipe Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsRecipeQuery
Description

Tests if a recipe query is available.

Returnbooleantrue if a recipe query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetRecipeQuery
Description

Gets the query for a recipe.

Returnosid.recipe.RecipeQuerythe recipe query
ErrorsUNIMPLEMENTEDsupportsRecipeQuery() is false
ComplianceoptionalThis method must be implemented if supportsRecipeQuery() is true .
MethodmatchAnyRecipe
Description

Matches cookbooks with any recipe.

Parametersbooleanmatchtrue to match cookbooks with any recipe, false to match cookbooks with no recipes
CompliancemandatoryThis method must be implemented.
MethodclearRecipeTerms
Description

Clears the procedure terms.

CompliancemandatoryThis method must be implemented.
MethodmatchProcedureId
Description

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

Parametersosid.id.IdprocedureIda procedure Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTprocedureId is null
CompliancemandatoryThis method must be implemented.
MethodclearProcedureIdTerms
Description

Clears the procedure Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsProcedureQuery
Description

Tests if a procedure query is available.

Returnbooleantrue if a procedure query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetProcedureQuery
Description

Gets the query for a procedure.

Returnosid.recipe.ProcedureQuerythe procedure query
ErrorsUNIMPLEMENTEDsupportsProcedureQuery() is false
ComplianceoptionalThis method must be implemented if supportsProcedureQuery() is true .
MethodmatchAnyProcedure
Description

Matches cookbooks with any procedure.

Parametersbooleanmatchtrue to match cookbooks with any procedure, false to match cookbooks with no procedures
CompliancemandatoryThis method must be implemented.
MethodclearProcedureTerms
Description

Clears the procedure terms.

CompliancemandatoryThis method must be implemented.
MethodmatchDirectionId
Description

Sets a direction Id .

Parametersosid.id.IddirectionIda direction Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTdirectionId is null
CompliancemandatoryThis method must be implemented.
MethodclearDirectionIdTerms
Description

Clears the direction Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsDirectionQuery
Description

Tests if a DirectionQuery is available.

Returnbooleantrue if a direction query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetDirectionQuery
Description

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

Returnosid.recipe.DirectionQuerythe direction query
ErrorsUNIMPLEMENTEDsupportsDirectionQuery() is false
ComplianceoptionalThis method must be implemented if supportsDirectionQuery() is true .
MethodmatchAnyDirection
Description

Matches any direction.

Parametersbooleanmatchtrue to match cookbooks with any direction, false to match cookbooks with no directions
CompliancemandatoryThis method must be implemented.
MethodclearDirectionTerms
Description

Clears the direction terms.

CompliancemandatoryThis 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.IdcookbookIda cookbook Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTcookbookId is null
CompliancemandatoryThis method must be implemented.
MethodclearAncestorCookbookIdTerms
Description

Clears the ancestor cookbook Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsAncestorCookbookQuery
Description

Tests if an CookbookQuery is available.

Returnbooleantrue if a cookbook query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetAncestorCookbookQuery
Description

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

Returnosid.recipe.CookbookQuerythe cookbook query
ErrorsUNIMPLEMENTEDsupportsAncestorCookbookQuery() is false
ComplianceoptionalThis method must be implemented if supportsAncestorCookbookQuery() is true .
MethodmatchAnyAncestorCookbook
Description

Matches cookbooks with any ancestor.

Parametersbooleanmatchtrue to match cookbooks with any ancestor, false to match root cookbooks
CompliancemandatoryThis method must be implemented.
MethodclearAncestorCookbookTerms
Description

Clears the ancestor cookbook terms.

CompliancemandatoryThis 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.IdcookbookIda cookbook Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTcookbookId is null
CompliancemandatoryThis method must be implemented.
MethodclearDescendantCookbookIdTerms
Description

Clears the descendant coo book Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsDescendantCookbookQuery
Description

Tests if an CookbookQuery is available.

Returnbooleantrue if a cookbook query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetDescendantCookbookQuery
Description

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

Returnosid.recipe.CookbookQuerythe cookbook query
ErrorsUNIMPLEMENTEDsupportsDescendantCookbookQuery() is false
ComplianceoptionalThis method must be implemented if supportsDescendantCookbookQuery() is true .
MethodmatchAnyDescendantCookbook
Description

Matches cookbooks with any descendant.

Parametersbooleanmatchtrue to match cookbooks with any descendant, false to match leaf cookbooks
CompliancemandatoryThis method must be implemented.
MethodclearDescendantCookbookTerms
Description

Clears the descendant cookbook terms.

CompliancemandatoryThis 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.TypecookbookRecordTypea cookbook record type
Returnosid.recipe.records.CookbookQueryRecordthe cookbook query record
ErrorsNULL_ARGUMENTcookbookRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(cookbookRecordType) is false
CompliancemandatoryThis method must be implemented.