OSID Logo
OSID Specifications
control rules package
Version 3.1.0
Interfaceosid.control.rules.InputEnablerQuery
Implementsosid.OsidEnablerQuery
Used Byosid.control.rules.InputEnablerQuerySession
osid.control.rules.InputEnablerSearchSession
osid.control.rules.InputEnablerSmartSystemSession
Description

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

MethodmatchRuledInputId
Description

Matches enablers mapped to the input.

Parametersosid.id.IdinputId the device Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT inputId is null
Compliancemandatory This method must be implemented.
MethodclearRuledInputIdTerms
Description

Clears the input Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsRuledInputQuery
Description

Tests if an InputQuery is available.

Returnboolean true if an input query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetRuledInputQuery
Description

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

Returnosid.control.InputQuery the input query
ErrorsUNIMPLEMENTED supportsRuledInputQuery() is false
Complianceoptional This method must be implemented if supportsRuledInputQuery() is true.
MethodmatchAnyRuledInput
Description

Matches enablers mapped to any input.

Parametersbooleanmatch true for enablers mapped to any input, false to match enablers mapped to no inputs
Compliancemandatory This method must be implemented.
MethodclearRuledInputTerms
Description

Clears the input query terms.

Compliancemandatory This method must be implemented.
MethodmatchSystemId
Description

Matches enablers mapped to the system.

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

Gets the input enabler query record corresponding to the given InputEnabler record Type. Multiple record retrievals produce a nested OR term.

Parametersosid.type.TypeinputEnablerRecordType an input enabler record type
Returnosid.control.rules.records.InputEnablerQueryRecord the input enabler query record
ErrorsNULL_ARGUMENT inputEnablerRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(inputEnablerRecordType) is false
Compliancemandatory This method must be implemented.