OSID Logo
OSID Specifications
configuration package
Version 3.1.0
Interfaceosid.configuration.ParameterQuery
Implementsosid.OsidRuleQuery
Used Byosid.configuration.ConfigurationQuery
osid.configuration.ParameterQuerySession
osid.configuration.ParameterSearchSession
osid.configuration.ParameterSmartConfigurationSession
osid.configuration.ValueQuery
osid.configuration.rules.ParameterProcessorQuery
Description

The ParameterQuery is used to assemble search queries. A Parameter is available from a ParameterSearchSession and defines methods to query for a Parameter that includes setting a display name and a description. Once the desired parameters are set, the ParameterQuery is given to the designated search method. The same ParameterQuery returned from the session must be used in the search as the provider may utilize implementation-specific data wiithin the object.

If multiple data elements are set, the results matching all the given data (eg: AND) are returned. Search methods throughout the OSIDs accept multiple OsidQuery interfaces. Each ParameterQuery in the array behaves like an OR such that results are returned that match any of the given ParameterQuery objects.

Any match method inside a ParameterQuery may be invoked multiple times. In the case of a match method, each invocation adds an element to an OR expression. Any of these terms may also be negated through the match flag.

Parameter { ParameterQuery.matchDisplayName AND (ParameterQuery.matchDescription OR Parameter.matchDescription)} OR ParameterQuery
                

String searches are described using a string search Type that indicates the type of regular expression or wildcarding encoding. Compatibility with a strings search Type can be tested within this interface.

MethodmatchValueSyntax
Description

Adds a match for parameters of a given value syntax. Multiple matches can be added to perform a boolean OR among them.

Parametersosid.Syntaxsyntax the parameter value syntax
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT syntax is null
Compliancemandatory This method must be implemented.
MethodclearValueSyntaxTerms
Description

Clears the value syntax terms.

Compliancemandatory This method must be implemented.
MethodmatchValueCoordinateType
Description

Adds a match for parameters with a given coordinate type for a coordinate value. Multiple matches can be added to perform a boolean OR among them.

Parametersosid.type.TypecoordinateType the coordinate type
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT coordinateType is null
Compliancemandatory This method must be implemented.
MethodclearValueCoordinateTypeTerms
Description

Clears the coordinate type terms.

Compliancemandatory This method must be implemented.
MethodmatchValueHeadingType
Description

Adds a match for parameters with a given heading type for a coordinate value. Multiple matches can be added to perform a boolean OR among them.

Parametersosid.type.TypeheadingType the heading type
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT headingType is null
Compliancemandatory This method must be implemented.
MethodclearValueHeadingTypeTerms
Description

Clears the coorheadingdinate record type terms.

Compliancemandatory This method must be implemented.
MethodmatchValueObjectType
Description

Adds a match for parameters with a given object type for an object value. Multiple matches can be added to perform a boolean OR among them.

Parametersosid.type.TypeobjectType the object type
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT objectType is null
Compliancemandatory This method must be implemented.
MethodclearValueObjectTypeTerms
Description

Clears the object value type terms.

Compliancemandatory This method must be implemented.
MethodmatchValueSpatialUnitRecordType
Description

Adds a match for parameters with a given spatial unit record type for a coordinate value. Multiple matches can be added to perform a boolean OR among them.

Parametersosid.type.TypespatialUnitRecordType the spatial unit record type
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT spatialUnitRecordType is null
Compliancemandatory This method must be implemented.
MethodclearValueSpatialUnitRecordTypeTerms
Description

Clears the spatial unit record type terms.

Compliancemandatory This method must be implemented.
MethodmatchValueVersionScheme
Description

Adds a match for parameters with a given version type for a version value. Multiple matches can be added to perform a boolean OR among them.

Parametersosid.type.TypeversionType the version type
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT versionType is null
Compliancemandatory This method must be implemented.
MethodclearValueVersionSchemeTerms
Description

Clears the value type terms.

Compliancemandatory This method must be implemented.
MethodsupportsValueQuery
Description

Tests if a ValueQuery is available.

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

Gets the query for a value.

Returnosid.configuration.ValueQuery the value query
ErrorsUNIMPLEMENTED supportsValueQuery() is false
Complianceoptional This method must be implemented if supportsValueQuery() is true.
MethodmatchAnyValue
Description

Matches parameters that have any value.

Parametersbooleanmatch true to match parameters with any value, false to match parameters with no value
Compliancemandatory This method must be implemented.
MethodclearValueTerms
Description

Clears the value terms.

Compliancemandatory This method must be implemented.
MethodmatchValuesShuffled
Description

Matches shuffle order.

Parametersbooleanshuffle true to match shuffle by weight, false to match order by index
Compliancemandatory This method must be implemented.
MethodmatchAnyValuesShuffled
Description

Matches parameters that have any shuffle value.

Parametersbooleanmatch true to match parameters with any shuffle value, false to match parameters with no shuffle value
Compliancemandatory This method must be implemented.
MethodclearValuesShuffledTerms
Description

Clears the shuffle terms.

Compliancemandatory This method must be implemented.
MethodmatchConfigurationId
Description

Sets the configuration Id for this query.

Parametersosid.id.IdconfigurationId a configuration Id
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT configurationId is null
Compliancemandatory This method must be implemented.
MethodclearConfigurationIdTerms
Description

Clears the configuration Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsConfigurationQuery
Description

Tests if a ConfigurationQuery is available.

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

Gets the query for a configuration.

Returnosid.configuration.ConfigurationQuery the configuration query
ErrorsUNIMPLEMENTED supportsConfigurationQuery() is false
Complianceoptional This method must be implemented if supportsConfigurationQuery() is true.
MethodclearConfigurationTerms
Description

Clears the configuration terms.

Compliancemandatory This method must be implemented.
MethodgetParameterQueryRecord
Description

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

Parametersosid.type.TypeparameterRecordType a parameter record type
Returnosid.configuration.records.ParameterQueryRecord the parameter query record
ErrorsNULL_ARGUMENT parameterRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(parameterRecordType) is false
Compliancemandatory This method must be implemented.