OSID Logo
OSID Specifications
lexicon package
Version 3.1.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.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.
MethodmatchLanguageType
Description

Matches idioms of the given language type.

Parametersosid.type.TypelanguageType a language Type
booleanmatch true if a positive match, false for negative match
ErrorsNULL_ARGUMENT languageType is null
Compliancemandatory This method must be implemented.
MethodmatchAnyLanguageType
Description

Matches idioms with any known language type.

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

Clears the language type query terms.

Compliancemandatory This method must be implemented.
MethodmatchScriptType
Description

Matches idioms of the given script type.

Parametersosid.type.TypescriptType a script Type
booleanmatch true if a positive match, false for negative match
ErrorsNULL_ARGUMENT scriptType is null
Compliancemandatory This method must be implemented.
MethodmatchAnyScriptType
Description

Matches idioms with any known script type.

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

Clears the script type query terms.

Compliancemandatory This method must be implemented.
MethodmatchFormatType
Description

Matches idioms of the given format type.

Parametersosid.type.TypeformatType a format Type
booleanmatch true if a positive match, false for negative match
ErrorsNULL_ARGUMENT formatType is null
Compliancemandatory This method must be implemented.
MethodmatchAnyFormatType
Description

Matches idioms with any known format type.

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

Clears the format type query terms.

Compliancemandatory This method must be implemented.
MethodmatchTemplate
Description

Matches idioms of the given template.

Parametersstringtemplate a template
osid.type.TypestringMatchType a string match type
booleanmatch true if a positive match, false for negative match
ErrorsNULL_ARGUMENT template or stringMatchType is null
UNSUPPORTED supportsStringMatchType(stringMatchType) is false
Compliancemandatory This method must be implemented.
MethodmatchAnyTemplate
Description

Matches idioms with any template.

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

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

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

Parametersosid.type.TypeidiomRecordType an idiom record type
Returnosid.lexicon.records.IdiomQueryRecord the idiom query record
ErrorsNULL_ARGUMENT idiomRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(idiomRecordType) is false
Compliancemandatory This method must be implemented.