OSID Logo
OSID Specifications
voting rules package
Version 3.0.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.IdraceConstrainerIdthe race constrainer Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTraceConstrainerId is null
CompliancemandatoryThis method must be implemented.
MethodclearRuledRaceConstrainerIdTerms
Description

Clears the race constrainer Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsRuledRaceConstrainerQuery
Description

Tests if a RaceConstrainerQuery is available.

Returnbooleantrue if a race constrainer query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetRuledRaceConstrainerQuery
Description

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

Returnosid.voting.rules.RaceConstrainerQuerythe race constrainer query
ErrorsUNIMPLEMENTEDsupportsRuledRaceConstrainerQuery() is false
ComplianceoptionalThis method must be implemented if supportsRuledRaceConstrainerQuery() is true .
MethodmatchAnyRuledRaceConstrainer
Description

Matches enablers mapped to any race constrainer.

Parametersbooleanmatchtrue for enablers mapped to any race constrainer, false to match enablers mapped to no race constrainers
CompliancemandatoryThis method must be implemented.
MethodclearRuledRaceConstrainerTerms
Description

Clears the race constrainer query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchPollsId
Description

Matches enablers mapped to the polls.

Parametersosid.id.IdpollsIdthe polls Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTpollsId is null
CompliancemandatoryThis method must be implemented.
MethodclearPollsIdTerms
Description

Clears the polls Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsPollsQuery
Description

Tests if a PollsQuery is available.

Returnbooleantrue if a polls query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetPollsQuery
Description

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

Returnosid.voting.PollsQuerythe polls query
ErrorsUNIMPLEMENTEDsupportsPollsQuery() is false
ComplianceoptionalThis method must be implemented if supportsPollsQuery() is true .
MethodclearPollsTerms
Description

Clears the polls query terms.

CompliancemandatoryThis 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.TyperaceConstrainerEnablerRecordTypea race constrainer enabler record type
Returnosid.voting.rules.records.RaceConstrainerEnablerQueryRecordthe race constrainer enabler query record
ErrorsNULL_ARGUMENTraceConstrainerEnablerRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(raceConstrainerEnablerRecordType) is false
CompliancemandatoryThis method must be implemented.