OSID Logo
OSID Specifications
control package
Version 3.1.0
Interfaceosid.control.DeviceQuery
Implementsosid.OsidObjectQuery
Used Byosid.control.DeviceQuerySession
osid.control.DeviceSearchSession
osid.control.DeviceSmartSystemSession
osid.control.InputQuery
osid.control.SystemQuery
osid.control.rules.DeviceEnablerQuery
Description

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

MethodmatchSystemId
Description

Sets the system Id for this query.

Parametersosid.id.IdsystemId the system Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT systemId is null
Compliancemandatory This method must be implemented.
MethodclearSystemIdTerms
Description

Clears the system Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsSystemQuery
Description

Tests if a SystemQuery is available.

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

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

Returnosid.control.SystemQuery the system query
ErrorsUNIMPLEMENTED supportsSystemQuery() is false
Complianceoptional This method must be implemented if supportsSystemQuery() is true.
MethodclearSystemTerms
Description

Clears the system query terms.

Compliancemandatory This method must be implemented.
MethodgetDeviceQueryRecord
Description

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

Parametersosid.type.TypedeviceRecordType a device record type
Returnosid.control.records.DeviceQueryRecord the device query record
ErrorsNULL_ARGUMENT deviceRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(deviceRecordType) is false
Compliancemandatory This method must be implemented.