OSID Logo
OSID Specifications
lexicon package
Version 3.1.0
Interfaceosid.lexicon.ParameterQuery
Implementsosid.OsidObjectQuery
osid.OsidSubjugateableQuery
Used Byosid.lexicon.ParameterQuerySession
osid.lexicon.ParameterSearchSession
osid.lexicon.ParameterSmartPressSession
osid.lexicon.PressQuery
Description

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

MethodmatchTextId
Description

Sets the text Id for this query to match presses that have a related affiliation.

Parametersosid.id.IdtextId a text Id
booleanmatch true if a positive match, false for negative match
ErrorsNULL_ARGUMENT textId is null
Compliancemandatory This method must be implemented.
MethodclearTextIdTerms
Description

Clears the text Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsTextQuery
Description

Tests if a TextQuery is available.

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

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

Returnosid.lexicon.TextQuery the text query
ErrorsUNIMPLEMENTED supportsTextQuery() is false
Complianceoptional This method must be implemented if supportsTextQuery() is true.
MethodclearTextTerms
Description

Clears the text query terms.

Compliancemandatory This method must be implemented.
MethodmatchSyntax
Description

Adds a match for parameters of a given syntax. Multiple matches can be added to perform a boolean OR among them.

Parametersosid.Syntaxsyntax the parameter syntax
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT syntax is null
Compliancemandatory This method must be implemented.
MethodmatchAnySyntax
Description

Matches parameters that have any synatx.

Parametersbooleanmatch true to match parameters with any synatx, false to match parameters with no synatx set
Compliancemandatory This method must be implemented.
MethodclearSyntaxTerms
Description

Clears the syntax terms.

Compliancemandatory This method must be implemented.
MethodmatchInputPosition
Description

Matches parameters whose input position is in the given range inclusive,.

Parameterscardinalstart start of range
cardinalend end of range
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT start is greater than end
Compliancemandatory This method must be implemented.
MethodmatchAnyInputPosition
Description

Matches parameters with any input position set.

Parametersbooleanmatch true for a positive match, false for a negative match
Compliancemandatory This method must be implemented.
MethodclearInputPositionTerms
Description

Clears the input position query terms.

Compliancemandatory This method must be implemented.
MethodmatchPressId
Description

Sets the action group Id for this query to match parameters assigned to action groups.

Parametersosid.id.IdactionGroupId the action group Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT actionGroupId is null
Compliancemandatory This method must be implemented.
MethodclearPressIdTerms
Description

Clears the press Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsPressQuery
Description

Tests if a PressQuery is available.

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

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

Returnosid.lexicon.PressQuery the press query
ErrorsUNIMPLEMENTED supportsPressQuery() is false
Complianceoptional This method must be implemented if supportsPressQuery() is true.
MethodclearPressTerms
Description

Clears the press query terms.

Compliancemandatory This method must be implemented.
MethodgetParameterQueryRecord
Description

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

Parametersosid.type.TypeparameterRecordType a parameter record type
Returnosid.lexicon.records.ParameterQueryRecord the parameter query record
ErrorsNULL_ARGUMENT parameterRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(parameterRecordType) is false
Compliancemandatory This method must be implemented.