OSID Logo
OSID Specifications
dictionary package
Version 3.1.0
Interfaceosid.dictionary.DictionarySearchSession
Implementsosid.dictionary.DictionaryQuerySession
Used Byosid.dictionary.DictionaryManager
osid.dictionary.DictionaryProxyManager
Description

This session provides methods for searching Dictionaries. The search query is constructed using the DictionaryQuery. The dictionary record Type also specifies the record for the dictionary query.

getDictionariesByQuery() is the basic search method and returns a list of Dictionary elements. A more advanced search may be performed with getDictionaresBySearch(). It accepts a DictionarySearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as ordering. getDictionariesBySearch() returns a DictionarySearchResults that can be used to access the resulting DictionaryList or be used to perform a search within the result set through DictionarySearch.

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

MethodgetDictionarySearch
Description

Gets a dictionary search.

Returnosid.dictionary.DictionarySearch the dictionary search
Compliancemandatory This method must be implemented.
MethodgetDictionarySearchOrder
Description

Gets a dictionary search order. The DictionarySearchOrder is supplied to a DictionarySearch to specify the ordering of results.

Returnosid.dictionary.DictionarySearchOrder the dictionary search order
Compliancemandatory This method must be implemented.
MethodgetDictionariesBySearch
Description

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

Parametersosid.dictionary.DictionaryQuerydictionaryQuery the dictionary search query
osid.dictionary.DictionarySearchdictionarySearch the dictionary search
Returnosid.dictionary.DictionarySearchResults the returned search results
ErrorsNULL_ARGUMENT dictionaryQuery or dictionarySearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED dictionarySearch or dictionaryQuery is not of this service
Compliancemandatory This method must be implemented.
MethodgetDictionaryQueryFromInspector
Description

Gets a dictionary query from an inspector. The inspector is available from a DictionarySearchResults.

Parametersosid.dictionary.DictionaryQueryInspectordictionaryQueryInspector a dictionary query inspector
Returnosid.dictionary.DictionaryQuery the dictionary query
ErrorsNULL_ARGUMENT dictionaryQueryInspector is null
UNSUPPORTED dictionaryQueryInspector is not of this service
Compliancemandatory This method must be implemented.