OSID Logo
OSID Specifications
lexicon package
Version 3.0.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.IdiomSearchthe idiom search
CompliancemandatoryThis 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.IdiomSearchOrderthe idiom search order
CompliancemandatoryThis method must be implemented.
MethodgetIdiomsBySearch
Description

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

Parametersosid.lexicon.IdiomQueryidiomQuerythe idiom query
osid.lexicon.IdiomSearchidiomSearchthe idiom search
Returnosid.lexicon.IdiomSearchResultsthe idiom search results
ErrorsNULL_ARGUMENTidiomQuery or idiomSearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDidiomQuery or idiomSearch is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetIdiomQueryFromInspector
Description

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

Parametersosid.lexicon.IdiomQueryInspectoridiomQueryInspectoran idiom query inspector
Returnosid.lexicon.IdiomQuerythe idiom query
ErrorsNULL_ARGUMENTidiomQueryInspector is null
UNSUPPORTEDidiomQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.