OSID Logo
OSID Specifications
metering package
Version 3.1.0
Interfaceosid.metering.UtilityQuery
Implementsosid.OsidCatalogQuery
Used Byosid.metering.MeterQuery
osid.metering.UtilityQuery
osid.metering.UtilityQuerySession
osid.metering.UtilitySearchSession
Description

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

MethodmatchMeterId
Description

Sets a meter Id.

Parametersosid.id.IdmeterId a meter Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT meterId is null
Compliancemandatory This method must be implemented.
MethodclearMeterIdTerms
Description

Clears the meter Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsMeterQuery
Description

Tests if a meter query is available.

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

Gets the query for a meter.

Returnosid.metering.MeterQuery the meter query
ErrorsUNIMPLEMENTED supportsMeterQuery() is false
Complianceoptional This method must be implemented if supportsMeterQuery() is true.
MethodmatchAnyMeter
Description

Matches utilities with any meter.

Parametersbooleanmatch true to match utilities with any meter, false to match utilities with no meters
Compliancemandatory This method must be implemented.
MethodclearMeterTerms
Description

Clears the meter query terms.

Compliancemandatory This method must be implemented.
MethodmatchAncestorUtilityId
Description

Sets the utility Id for this query to match utilities that have the specified utility as an ancestor.

Parametersosid.id.IdutilityId a utility Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT utilityId is null
Compliancemandatory This method must be implemented.
MethodclearAncestorUtilityIdTerms
Description

Clears the ancestor utility Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsAncestorUtilityQuery
Description

Tests if a UtilityQuery is available.

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

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

Returnosid.metering.UtilityQuery the utility query
ErrorsUNIMPLEMENTED supportsAncestorUtilityQuery() is false
Complianceoptional This method must be implemented if supportsAncestorUtilityQuery() is true.
MethodclearAncestorUtilityTerms
Description

Clears the ancestor utility query terms.

Compliancemandatory This method must be implemented.
MethodmatchAnyAncestorUtility
Description

Matches utilities with any ancestor.

Parametersbooleanmatch true to match utilities with any ancestor, false to match root utilities
Compliancemandatory This method must be implemented.
MethodmatchDescendantUtilityId
Description

Sets the utility Id for this query to match utilities that have the specified utility as a descendant.

Parametersosid.id.IdutilityId a utility Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT utilityId is null
Compliancemandatory This method must be implemented.
MethodclearDescendantUtilityIdTerms
Description

Clears the descendant utility Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsDescendantUtilityQuery
Description

Tests if a UtilityQuery is available.

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

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

Returnosid.metering.UtilityQuery the utility query
ErrorsUNIMPLEMENTED supportsDescendantUtilityQuery() is false
Complianceoptional This method must be implemented if supportsDescendantUtilityQuery() is true.
MethodmatchAnyDescendantUtility
Description

Matches utilities with any descendant.

Parametersbooleanmatch true to match utilities with any descendant, false to match leaf utilities
Compliancemandatory This method must be implemented.
MethodclearDescendantUtilityTerms
Description

Clears the descendant utility query terms.

Compliancemandatory This method must be implemented.
MethodgetUtilityQueryRecord
Description

Gets the utility query record corresponding to the given Utility record Type .Multiple record retrievals produce a nested boolean OR term.

Parametersosid.type.TypeutilityRecordType a utility record type
Returnosid.metering.records.UtilityQueryRecord the utility query record
ErrorsNULL_ARGUMENT utilityRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(utilityRecordType) is false
Compliancemandatory This method must be implemented.