OSID Logo
OSID Specifications
voting rules package
Version 3.1.0
Interfaceosid.voting.rules.RaceConstrainerEnablerQuery
Implementsosid.OsidEnablerQuery
Used Byosid.voting.rules.RaceConstrainerEnablerQuerySession
osid.voting.rules.RaceConstrainerEnablerSearchSession
osid.voting.rules.RaceConstrainerEnablerSmartPollsSession
Description

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

MethodmatchRuledRaceConstrainerId
Description

Matches enablers mapped to the race constrainer.

Parametersosid.id.IdraceConstrainerId the race constrainer Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT raceConstrainerId is null
Compliancemandatory This method must be implemented.
MethodclearRuledRaceConstrainerIdTerms
Description

Clears the race constrainer Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsRuledRaceConstrainerQuery
Description

Tests if a RaceConstrainerQuery is available.

Returnboolean true if a race constrainer query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetRuledRaceConstrainerQuery
Description

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

Returnosid.voting.rules.RaceConstrainerQuery the race constrainer query
ErrorsUNIMPLEMENTED supportsRuledRaceConstrainerQuery() is false
Complianceoptional This method must be implemented if supportsRuledRaceConstrainerQuery() is true.
MethodmatchAnyRuledRaceConstrainer
Description

Matches enablers mapped to any race constrainer.

Parametersbooleanmatch true for enablers mapped to any race constrainer, false to match enablers mapped to no race constrainers
Compliancemandatory This method must be implemented.
MethodclearRuledRaceConstrainerTerms
Description

Clears the race constrainer query terms.

Compliancemandatory This method must be implemented.
MethodmatchPollsId
Description

Matches enablers mapped to the polls.

Parametersosid.id.IdpollsId the polls Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT pollsId is null
Compliancemandatory This method must be implemented.
MethodclearPollsIdTerms
Description

Clears the polls Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsPollsQuery
Description

Tests if a PollsQuery is available.

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

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

Returnosid.voting.PollsQuery the polls query
ErrorsUNIMPLEMENTED supportsPollsQuery() is false
Complianceoptional This method must be implemented if supportsPollsQuery() is true.
MethodclearPollsTerms
Description

Clears the polls query terms.

Compliancemandatory This method must be implemented.
MethodgetRaceConstrainerEnablerQueryRecord
Description

Gets the race constrainer enabler query record corresponding to the given RaceConstrainerEnabler record Type.Multiple record retrievals produce a nested OR term.

Parametersosid.type.TyperaceConstrainerEnablerRecordType a race constrainer enabler record type
Returnosid.voting.rules.records.RaceConstrainerEnablerQueryRecord the race constrainer enabler query record
ErrorsNULL_ARGUMENT raceConstrainerEnablerRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(raceConstrainerEnablerRecordType) is false
Compliancemandatory This method must be implemented.