OSID Logo
OSID Specifications
dictionary package
Version 3.1.0
Interfaceosid.dictionary.DictionaryQuery
Implementsosid.OsidCatalogQuery
Used Byosid.dictionary.DictionaryQuery
osid.dictionary.DictionaryQuerySession
osid.dictionary.DictionarySearchSession
osid.dictionary.EntryQuery
Description

This is the query for searching dictionaries. Each method specifies an AND term while multiple invocations of the same method produce a nested OR.

MethodmatchEntryId
Description

Sets the entry Id.

Parametersosid.id.IdentryId an entry Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT entryId is null
Compliancemandatory This method must be implemented.
MethodclearEntryIdTerms
Description

Clears the entry Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsEntryQuery
Description

Tests if an EntryQuery is available.

Returnboolean true if an entry query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetEntryQuery
Description

Gets the query for an entry. Multiple retrievale produce a nested boolean OR term.

Returnosid.dictionary.EntryQuery the entry query
ErrorsUNIMPLEMENTED supportsEntryQuery() is false
Complianceoptional This method must be implemented if supportsEntryQuery() is true.
MethodmatchAnyEntry
Description

Matches dictionaries with any entry.

Parametersbooleanmatch true to match dictionaries with any entry, false to match dictionaries with no entry
Compliancemandatory This method must be implemented.
MethodclearEntryTerms
Description

Clears the entry terms.

Compliancemandatory This method must be implemented.
MethodmatchAncestorDictionaryId
Description

Sets the dictionary Id for to match dictionaries in which the specified dictionary is an acestor.

Parametersosid.id.IddictionaryId a dictionary Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT dictionaryId is null
Compliancemandatory This method must be implemented.
MethodclearAncestorDictionaryIdTerms
Description

Clears the ancestor dictionary Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsAncestorDictionaryQuery
Description

Tests if a DictionaryQuery is available.

Returnboolean true if a dictionary query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetAncestorDictionaryQuery
Description

Gets the query for an ancestor dictionary. Multiple retrievals produce a nested OR term.

Returnosid.dictionary.DictionaryQuery the dictionary query
ErrorsUNIMPLEMENTED supportsAncestorDictionaryQuery() is false
Complianceoptional This method must be implemented if supportsAncestorDictionaryQuery() is true.
MethodmatchAnyAncestorDictionary
Description

Matches a dictionary that has any ancestor.

Parametersbooleanmatch true to match dictionaries with any ancestor dictionaries, false to match root dictionaries
Compliancemandatory This method must be implemented.
MethodclearAncestorDictionaryTerms
Description

Clears the ancestor dictionary terms.

Compliancemandatory This method must be implemented.
MethodmatchDescendantDictionaryId
Description

Sets the dictionary Id for to match dictionaries in which the specified dictionary is a descendant.

Parametersosid.id.IddictionaryId a dictionary Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT dictionaryId is null
Compliancemandatory This method must be implemented.
MethodclearDescendantDictionaryIdTerms
Description

Clears the dictionary Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsDescendantDictionaryQuery
Description

Tests if a DictionaryQuery is available.

Returnboolean true if a dictionary query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetDescendantDictionaryQuery
Description

Gets the query for a descendant dictioonary. Multiple retrievals produce a nested OR term.

Returnosid.dictionary.DictionaryQuery the dictionary query
ErrorsUNIMPLEMENTED supportsDescendantDictionaryQuery() is false
Complianceoptional This method must be implemented if supportsDescendantDictionaryQuery() is true.
MethodmatchAnyDescendantDictionary
Description

Matches a dictionary that has any descendant.

Parametersbooleanmatch true to match dictionaries with any descendant dictionaries, false to match leaf dictionaries
Compliancemandatory This method must be implemented.
MethodclearDescendantDictionaryTerms
Description

Clears the dictionary terms.

Compliancemandatory This method must be implemented.
MethodgetDictionaryQueryRecord
Description

Gets the dictionary query record corresponding to the given Dictionary record Type. Multiple retrievale produce a nested boolean OR term.

Parametersosid.type.TypedictionaryRecordType a dictionary record type
Returnosid.dictionary.records.DictionaryQueryRecord the dictionary query record
ErrorsNULL_ARGUMENT dictionaryRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(dictionaryRecordType) is false
Compliancemandatory This method must be implemented.