OSID Logo
OSID Specifications
lexicon package
Version 3.0.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.IdtextIda text Id
booleanmatchtrue if a positive match, false for negative match
ErrorsNULL_ARGUMENTtextId is null
CompliancemandatoryThis method must be implemented.
MethodclearTextIdTerms
Description

Clears the text Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsTextQuery
Description

Tests if a TextQuery is available.

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

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

Returnosid.lexicon.TextQuerythe text query
ErrorsUNIMPLEMENTEDsupportsTextQuery() is false
ComplianceoptionalThis method must be implemented if supportsTextQuery() is true .
MethodclearTextTerms
Description

Clears the text query terms.

CompliancemandatoryThis 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.Syntaxsyntaxthe parameter syntax
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTsyntax is null
CompliancemandatoryThis method must be implemented.
MethodmatchAnySyntax
Description

Matches parameters that have any synatx.

Parametersbooleanmatchtrue to match parameters with any synatx, false to match parameters with no synatx set
CompliancemandatoryThis method must be implemented.
MethodclearSyntaxTerms
Description

Clears the syntax terms.

CompliancemandatoryThis method must be implemented.
MethodmatchInputPosition
Description

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

Parameterscardinalstartstart of range
cardinalendend of range
booleanmatchtrue for a positive match, false for a negative match
ErrorsINVALID_ARGUMENTstart is greater than end
CompliancemandatoryThis method must be implemented.
MethodmatchAnyInputPosition
Description

Matches parameters with any input position set.

Parametersbooleanmatchtrue for a positive match, false for a negative match
CompliancemandatoryThis method must be implemented.
MethodclearInputPositionTerms
Description

Clears the input position query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchPressId
Description

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

Parametersosid.id.IdactionGroupIdthe action group Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTactionGroupId is null
CompliancemandatoryThis method must be implemented.
MethodclearPressIdTerms
Description

Clears the press Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsPressQuery
Description

Tests if a PressQuery is available.

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

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

Returnosid.lexicon.PressQuerythe press query
ErrorsUNIMPLEMENTEDsupportsPressQuery() is false
ComplianceoptionalThis method must be implemented if supportsPressQuery() is true .
MethodclearPressTerms
Description

Clears the press query terms.

CompliancemandatoryThis 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.TypeparameterRecordTypea parameter record type
Returnosid.lexicon.records.ParameterQueryRecordthe parameter query record
ErrorsNULL_ARGUMENTparameterRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(parameterRecordType) is false
CompliancemandatoryThis method must be implemented.