OSID Logo
OSID Specifications
lexicon package
Version 3.1.0
Interfaceosid.lexicon.TextQuery
Implementsosid.OsidObjectQuery
Used Byosid.lexicon.IdiomQuery
osid.lexicon.ParameterQuery
osid.lexicon.PressQuery
osid.lexicon.TextQuerySession
osid.lexicon.TextSearchSession
osid.lexicon.TextSmartPressSession
osid.rules.check.CheckQuery
Description

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

MethodclearTextReturnTerms
Description

Clears the text return query terms.

Compliancemandatory This method must be implemented.
MethodmatchPressId
Description

Sets the press Id for this query to match texts assigned to presses.

Parametersosid.id.IdpressId the press Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT pressId 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.
MethodgetTextQueryRecord
Description

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

Parametersosid.type.TypetextRecordType a text record type
Returnosid.lexicon.records.TextQueryRecord the text query record
ErrorsNULL_ARGUMENT textRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(textRecordType) is false
Compliancemandatory This method must be implemented.