OSID Logo
OSID Specifications
lexicon package
Version 3.1.0
Interfaceosid.lexicon.IdiomSearchSession
Implementsosid.lexicon.IdiomQuerySession
Used Byosid.lexicon.LexiconManager
osid.lexicon.LexiconProxyManager
Description

This session provides methods for searching among Idioms. The search query is constructed using the IdiomQuery.

getIdiomsByQuery() is the basic search method and returns a list of Idioms. A more advanced search may be performed with getIdiomsBySearch(). It accepts an IdiomSearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as ordering. getIdiomsBySearch() returns an IdiomSearchResults that can be used to access the resulting IdiomList or be used to perform a search within the result set through IdiomSearch.

This session defines views that offer differing behaviors for searching.

  • federated press view: searches include idioms in presses of which this idiom is an ancestor in the press hierarchy
  • isolated press view: searches are restricted to idioms in this press

Idioms may have a query record indicated by their respective record types. The query record is accessed via the IdiomQuery.

MethodgetIdiomSearch
Description

Gets an idiom search.

Returnosid.lexicon.IdiomSearch the idiom search
Compliancemandatory This method must be implemented.
MethodgetIdiomSearchOrder
Description

Gets an idiom search order. The IdiomSearchOrder is supplied to an IdiomSearch to specify the ordering of results.

Returnosid.lexicon.IdiomSearchOrder the idiom search order
Compliancemandatory This method must be implemented.
MethodgetIdiomsBySearch
Description

Gets the search results matching the given search query using the given search.

Parametersosid.lexicon.IdiomQueryidiomQuery the idiom query
osid.lexicon.IdiomSearchidiomSearch the idiom search
Returnosid.lexicon.IdiomSearchResults the idiom search results
ErrorsNULL_ARGUMENT idiomQuery or idiomSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED idiomQuery or idiomSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetIdiomQueryFromInspector
Description

Gets an idiom query from an inspector. The inspector is available from an IdiomSearchResults.

Parametersosid.lexicon.IdiomQueryInspectoridiomQueryInspector an idiom query inspector
Returnosid.lexicon.IdiomQuery the idiom query
ErrorsNULL_ARGUMENT idiomQueryInspector is null
UNSUPPORTED idiomQueryInspector is not of this service
Compliancemandatory This method must be implemented.