OSID Logo
OSID Specifications
lexicon package
Version 3.0.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.

CompliancemandatoryThis method must be implemented.
MethodmatchPressId
Description

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

Parametersosid.id.IdpressIdthe press Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTpressId 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.
MethodgetTextQueryRecord
Description

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

Parametersosid.type.TypetextRecordTypea text record type
Returnosid.lexicon.records.TextQueryRecordthe text query record
ErrorsNULL_ARGUMENTtextRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(textRecordType) is false
CompliancemandatoryThis method must be implemented.