OSID Logo
OSID Specifications
dictionary package
Version 3.1.0
Interfaceosid.dictionary.EntryQuery
Implementsosid.OsidObjectQuery
Used Byosid.dictionary.DictionaryQuery
osid.dictionary.EntryQuerySession
osid.dictionary.EntrySearchSession
osid.dictionary.EntrySmartDictionarySession
Description

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

MethodmatchKeyType
Description

Sets the Type for querying keys of a given type.

Parametersosid.type.TypekeyType the key Type
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT keyType is null
Compliancemandatory This method must be implemented.
MethodclearKeyTypeTerms
Description

Clears the key type terms.

Compliancemandatory This method must be implemented.
MethodmatchKey
Description

Matches entries of this key.

Parametersobjectkey the key
osid.type.TypekeyType the key Type
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT key or keyType is null
Compliancemandatory This method must be implemented.
MethodclearKeyTerms
Description

Clears the key terms.

Compliancemandatory This method must be implemented.
MethodmatchValueType
Description

Sets the Type of this entry value.

Parametersosid.type.TypevalueType the value Type
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT valueType is null
Compliancemandatory This method must be implemented.
MethodclearValueTypeTerms
Description

Clears the value type terms.

Compliancemandatory This method must be implemented.
MethodmatchValue
Description

Sets the value in this entry.

Parametersobjectvalue the value
osid.type.TypevalueType the value Type
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT value or valueType is null
Compliancemandatory This method must be implemented.
MethodclearValueTerms
Description

Clears the value terms.

Compliancemandatory This method must be implemented.
MethodmatchDictionaryId
Description

Sets the dictionary Id for this query.

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.
MethodclearDictionaryIdTerms
Description

Clears the dictionary Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsDictionaryQuery
Description

Tests if a DictionaryQuery is available.

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

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

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

Clears the dictionary terms.

Compliancemandatory This method must be implemented.
MethodgetEntryQueryRecord
Description

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

Parametersosid.type.TypeentryRecordType an entry record type
Returnosid.dictionary.records.EntryQueryRecord the entry query record
ErrorsNULL_ARGUMENT entryRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(entryRecordType) is false
Compliancemandatory This method must be implemented.