OSID Logo
OSID Specifications
recipe package
Version 3.0.0
Interfaceosid.recipe.DirectionQuery
Implementsosid.OsidObjectQuery
osid.OsidSubjugateableQuery
Used Byosid.recipe.CookbookQuery
osid.recipe.DirectionQuerySession
osid.recipe.DirectionSearchSession
osid.recipe.DirectionSmartCookbookSession
osid.recipe.RecipeQuery
Description

This is the query for searching directions. Each method match 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.IdrecipeIdthe 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 query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsRecipeQuery
Description

Tests if a RecipeQuery is available.

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

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

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

Clears the recipe query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchProcedureId
Description

Sets the procedure Id for this query.

Parametersosid.id.IdprocedureIdthe 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 query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsProcedureQuery
Description

Tests if a ProcedureQuery is available.

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

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

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

Matches directions with any procedure.

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

Clears the procedure query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchIngredientId
Description

Sets the ingredient Id .

Parametersosid.id.IdingredientIdthe ingredient Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTingredientId is null
CompliancemandatoryThis method must be implemented.
MethodclearIngredientIdTerms
Description

Clears the ingredient Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsIngredientQuery
Description

Tests if an IngredientkQuery is available.

Returnbooleantrue if an ingredient query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetIngredientQuery
Description

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

Returnosid.recipe.IngredientQuerythe ingredient query
ErrorsUNIMPLEMENTEDsupportsIngredientItemQuery() is false
ComplianceoptionalThis method must be implemented if supportsIngredientQuery() is true .
MethodmatchAnyIngredient
Description

Matches directions with any ingredient.

Parametersbooleanmatchtrue to match directions with any ingredient, false to match directions with no ingredients
CompliancemandatoryThis method must be implemented.
MethodclearIngredientTerms
Description

Clears the ingredient query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchEstimatedDuration
Description

Matches directions with an estimated duration between the given range inclusive.

Parametersosid.calendaring.Durationstartstarting duration
osid.calendaring.Durationendending duration
booleanmatchtrue for a positive match, false for a negative match
ErrorsINVALID_ARGUMENTstart is greater than end
NULL_ARGUMENTstart or end is null
CompliancemandatoryThis method must be implemented.
MethodmatchAnyEstimatedDuration
Description

Matches directions with any estimated duration.

Parametersbooleanmatchtrue to match directions with any estimated duration, false to match directions with no estimated duration
CompliancemandatoryThis method must be implemented.
MethodclearEstimatedDurationTerms
Description

Clears the duration query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchAssetId
Description

Sets the asset Id for this query.

Parametersosid.id.IdassetIdthe asset Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTassetId is null
CompliancemandatoryThis method must be implemented.
MethodclearAssetIdTerms
Description

Clears the asset Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsAssetQuery
Description

Tests if an AssetQuery is available.

Returnbooleantrue if an asset query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetAssetQuery
Description

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

Returnosid.repository.AssetQuerythe asset query
ErrorsUNIMPLEMENTEDsupportsAssetQuery() is false
ComplianceoptionalThis method must be implemented if supportsAssetQuery() is true .
MethodmatchAnyAsset
Description

Matches directions with any asset.

Parametersbooleanmatchtrue to match directions with any asset, false to match directions with no assets
CompliancemandatoryThis method must be implemented.
MethodclearAssetTerms
Description

Clears the asset query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchCookbookId
Description

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

Parametersosid.id.IdcookbookIda cookbook Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTcookbookId is null
CompliancemandatoryThis method must be implemented.
MethodclearCookbookIdTerms
Description

Clears the cookbook Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsCookbookQuery
Description

Tests if a CookbookQuery is available.

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

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

Returnosid.recipe.CookbookQuerythe cookbook query
ErrorsUNIMPLEMENTEDsupportsCookbookQuery() is false
ComplianceoptionalThis method must be implemented if supportsCookbookQuery() is true .
MethodclearCookbookTerms
Description

Clears the cookbook query terms.

CompliancemandatoryThis method must be implemented.
MethodgetDirectionQueryRecord
Description

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

Parametersosid.type.TypedirectionRecordTypea direction record type
Returnosid.recipe.records.DirectionQueryRecordthe direction query record
ErrorsNULL_ARGUMENTdirectionRecordType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTEDhasRecordType(directionRecordType) is false
CompliancemandatoryThis method must be implemented.