OSID Logo
OSID Specifications
dictionary package
Version 3.0.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.IdentryIdan entry Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTentryId 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.

Returnbooleantrue 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
ErrorsUNIMPLEMENTEDsupportsEntryQuery() is false
ComplianceoptionalThis method must be implemented if supportsEntryQuery() is true .
MethodmatchAnyEntry
Description

Matches dictionaries with any entry.

Parametersbooleanmatchtrue 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
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTdictionaryId 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.

Returnbooleantrue 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
ErrorsUNIMPLEMENTEDsupportsAncestorDictionaryQuery() is false
ComplianceoptionalThis method must be implemented if supportsAncestorDictionaryQuery() is true .
MethodmatchAnyAncestorDictionary
Description

Matches a dictionary that has any ancestor.

Parametersbooleanmatchtrue 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
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTdictionaryId 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.

Returnbooleantrue 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
ErrorsUNIMPLEMENTEDsupportsDescendantDictionaryQuery() is false
ComplianceoptionalThis method must be implemented if supportsDescendantDictionaryQuery() is true .
MethodmatchAnyDescendantDictionary
Description

Matches a dictionary that has any descendant.

Parametersbooleanmatchtrue 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_ARGUMENTdictionaryRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(dictionaryRecordType) is false
CompliancemandatoryThis method must be implemented.