OSID Logo
OSID Specifications
dictionary package
Version 3.0.0
Release Candidate Preview
Interfaceosid.dictionary.DictionaryQuery
Implementsosid.OsidCatalogQuery
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.IdentryIdan entry Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT entryId is null
CompliancemandatoryThis method must be implemented.
MethodclearEntryIdTerms
Description

Clears the entry Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsEntryQuery
Description

Tests if an EntryQuery is available.

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

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

Returnosid.dictionary.EntryQuerythe entry query
ErrorsUNIMPLEMENTED supportsEntryQuery() is false
ComplianceoptionalThis 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
CompliancemandatoryThis method must be implemented.
MethodclearEntryTerms
Description

Clears the entry terms.

CompliancemandatoryThis method must be implemented.
MethodmatchAncestorDictionaryId
Description

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

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

Clears the ancestor dictionary Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsAncestorDictionaryQuery
Description

Tests if a DictionaryQuery is available.

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

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

Returnosid.dictionary.DictionaryQuerythe dictionary query
ErrorsUNIMPLEMENTED supportsAncestorDictionaryQuery() is false
ComplianceoptionalThis 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
CompliancemandatoryThis method must be implemented.
MethodclearAncestorDictionaryTerms
Description

Clears the ancestor dictionary terms.

CompliancemandatoryThis method must be implemented.
MethodmatchDescendantDictionaryId
Description

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

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

Clears the dictionary Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsDescendantDictionaryQuery
Description

Tests if a DictionaryQuery is available.

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

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

Returnosid.dictionary.DictionaryQuerythe dictionary query
ErrorsUNIMPLEMENTED supportsDescendantDictionaryQuery() is false
ComplianceoptionalThis 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
CompliancemandatoryThis method must be implemented.
MethodclearDescendantDictionaryTerms
Description

Clears the dictionary terms.

CompliancemandatoryThis 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.TypedictionaryRecordTypea dictionary record type
Returnosid.dictionary.records.DictionaryQueryRecordthe dictionary query record
ErrorsNULL_ARGUMENT dictionaryRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(dictionaryRecordType) is false
CompliancemandatoryThis method must be implemented.