OSID Logo
OSID Specifications
configuration package
Version 3.0.0
Release Candidate Preview
Interfaceosid.configuration.ConfigurationQuery
Implementsosid.OsidCatalogQuery
Description

This is the query for searching configurations. Each method match request produces an AND term while multiple invocations of a method produces a nested OR, except for accessing the ConfigurationQuery subinterface.

MethodmatchRegistry
Description

Matches configurations which are parameter registries.

Parametersbooleanmatch true for a positive match, false otherwise
CompliancemandatoryThis method must be implemented.
MethodclearRegistryTerms
Description

Clears the registry terms.

CompliancemandatoryThis method must be implemented.
MethodmatchParameterId
Description

Adds a parameter Id for this query.

Parametersosid.id.IdparameterIda parameter Id
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT parameterId is null
CompliancemandatoryThis method must be implemented.
MethodclearParameterIdTerms
Description

Clears the parameter Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsParameterQuery
Description

Tests if a ParameterQuery is available.

Returnboolean true if a parameter query interface is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetParameterQuery
Description

Gets the query interface for a parameter.

Returnosid.configuration.ParameterQuerythe parameter query
ErrorsUNIMPLEMENTED supportsParameterQuery() is false
ComplianceoptionalThis method must be implemented if supportsParameterQuery() is true.
MethodmatchAnyParameter
Description

Matches configurations that have any parameter.

Parametersbooleanmatch true to match configurations with any parameter, false to match configurations with no parameter
CompliancemandatoryThis method must be implemented.
MethodclearParameterTerms
Description

Clears the parameter terms.

CompliancemandatoryThis method must be implemented.
MethodmatchAncestorConfigurationId
Description

Adds a configuration Id for this query to match configurations which have as an ancestor the specified configuration.

Parametersosid.id.IdconfigurationIda configuration Id
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT configurationId is null
CompliancemandatoryThis method must be implemented.
MethodclearAncestorConfigurationIdTerms
Description

Clears the ancestor configuration Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsAncestorConfigurationQuery
Description

Tests if a ConfigurationQuery is available.

Returnboolean true if a configuration query interface is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetAncestorConfigurationQuery
Description

Gets the query interface for a configuration.

Returnosid.configuration.ConfigurationQuerythe configuration query
ErrorsUNIMPLEMENTED supportsAncestorConfigurationQuery() is false
ComplianceoptionalThis method must be implemented if supportsAncestorConfigurationQuery() is true.
MethodmatchAnyAncestorConfiguration
Description

Matches configurations that have any ancestor.

Parametersbooleanmatch true to match configurations with any ancestor, false to match root configurations
CompliancemandatoryThis method must be implemented.
MethodclearAncestorConfigurationTerms
Description

Clears the ancestor configuration terms.

CompliancemandatoryThis method must be implemented.
MethodmatchDescendantConfigurationId
Description

Adds a configuration Id for this query to match configurations which have as a descendant the specified configuration.

Parametersosid.id.IdconfigurationIda configuration Id
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT configurationId is null
CompliancemandatoryThis method must be implemented.
MethodclearDescendantConfigurationIdTerms
Description

Clears the descendant configuration Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsDescendantConfigurationQuery
Description

Tests if a ConfigurationQuery is available.

Returnboolean true if a configuration query interface is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetDescendantConfigurationQuery
Description

Gets the query interface for a configuration.

Returnosid.configuration.ConfigurationQuerythe configuration query
ErrorsUNIMPLEMENTED supportsDescendantConfigurationQuery() is false
ComplianceoptionalThis method must be implemented if supportsDescendantConfigurationQuery() is true.
MethodmatchAnyDescendantConfiguration
Description

Matches configurations that have any descendant.

Parametersbooleanmatch true to match configurations with any descendant, false to match leaf configurations
CompliancemandatoryThis method must be implemented.
MethodclearDescendantConfigurationTerms
Description

Clears the descendant configuration terms.

CompliancemandatoryThis method must be implemented.
MethodgetConfigurationQueryRecord
Description

Gets the configuration query record corresponding to the given Configuration record Type. Multiple record retrievals produce a nested OR term.

Parametersosid.type.TypeconfigurationRecordTypea configuration record type
Returnosid.configuration.records.ConfigurationQueryRecordthe configuration query record
ErrorsNULL_ARGUMENT configurationRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(configurationRecordType) is false
CompliancemandatoryThis method must be implemented.