OSID Logo
OSID Specifications
lexicon package
Version 3.0.0
Interfaceosid.lexicon.IdiomQuery
Implementsosid.OsidObjectQuery
osid.OsidSubjugateableQuery
Used Byosid.lexicon.IdiomQuerySession
osid.lexicon.IdiomSearchSession
osid.lexicon.IdiomSmartPressSession
osid.lexicon.PressQuery
Description

This is the query for searching idioms. 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.
MethodmatchLanguageType
Description

Matches idioms of the given language type.

Parametersosid.type.TypelanguageTypea language Type
booleanmatchtrue if a positive match, false for negative match
ErrorsNULL_ARGUMENTlanguageType is null
CompliancemandatoryThis method must be implemented.
MethodmatchAnyLanguageType
Description

Matches idioms with any known language type.

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

Clears the language type query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchScriptType
Description

Matches idioms of the given script type.

Parametersosid.type.TypescriptTypea script Type
booleanmatchtrue if a positive match, false for negative match
ErrorsNULL_ARGUMENTscriptType is null
CompliancemandatoryThis method must be implemented.
MethodmatchAnyScriptType
Description

Matches idioms with any known script type.

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

Clears the script type query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchFormatType
Description

Matches idioms of the given format type.

Parametersosid.type.TypeformatTypea format Type
booleanmatchtrue if a positive match, false for negative match
ErrorsNULL_ARGUMENTformatType is null
CompliancemandatoryThis method must be implemented.
MethodmatchAnyFormatType
Description

Matches idioms with any known format type.

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

Clears the format type query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchTemplate
Description

Matches idioms of the given template.

Parametersstringtemplatea template
osid.type.TypestringMatchTypea string match type
booleanmatchtrue if a positive match, false for negative match
ErrorsNULL_ARGUMENTtemplate or stringMatchType is null
UNSUPPORTEDsupportsStringMatchType(stringMatchType) is false
CompliancemandatoryThis method must be implemented.
MethodmatchAnyTemplate
Description

Matches idioms with any template.

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

Clears the template 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.
MethodgetIdiomQueryRecord
Description

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

Parametersosid.type.TypeidiomRecordTypean idiom record type
Returnosid.lexicon.records.IdiomQueryRecordthe idiom query record
ErrorsNULL_ARGUMENTidiomRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(idiomRecordType) is false
CompliancemandatoryThis method must be implemented.