OSID Logo
OSID Specifications
voting package
Version 3.0.0
Interfaceosid.voting.RaceQuery
Implementsosid.OsidGovernatorQuery
osid.OsidSubjugateableQuery
Used Byosid.voting.BallotQuery
osid.voting.CandidateQuery
osid.voting.RaceQuerySession
osid.voting.RaceSearchSession
osid.voting.RaceSmartPollsSession
osid.voting.rules.RaceConstrainerQuery
osid.voting.rules.RaceProcessorQuery
Description

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

MethodmatchBallotId
Description

Sets the ballot Id for this query.

Parametersosid.id.IdballotIda ballot Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTballotId is null
CompliancemandatoryThis method must be implemented.
MethodclearBallotIdTerms
Description

Clears the ballot Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsBallotQuery
Description

Tests if a BallotQuery is available.

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

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

Returnosid.voting.BallotQuerythe ballot query
ErrorsUNIMPLEMENTEDsupportsBallotQuery() is false
ComplianceoptionalThis method must be implemented if supportsBallotQuery() is true .
MethodclearBallotTerms
Description

Clears the ballot terms.

CompliancemandatoryThis method must be implemented.
MethodmatchCandidateId
Description

Sets the candidate Id for this query.

Parametersosid.id.IdcandidateIda candidate Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTcandidateId is null
CompliancemandatoryThis method must be implemented.
MethodclearCandidateIdTerms
Description

Clears the candidate Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsCandidateQuery
Description

Tests if a CandidateQuery is available.

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

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

Returnosid.voting.CandidateQuerythe candidate query
ErrorsUNIMPLEMENTEDsupportsCandidateQuery() is false
ComplianceoptionalThis method must be implemented if supportsCandidateQuery() is true .
MethodmatchAnyCandidate
Description

Matches polls with any candidate.

Parametersbooleanmatchtrue to match polls with any candidate, false to match polls with no candidates
CompliancemandatoryThis method must be implemented.
MethodclearCandidateTerms
Description

Clears the candidate terms.

CompliancemandatoryThis method must be implemented.
MethodmatchPollsId
Description

Sets the polls Id for this query.

Parametersosid.id.Idpollsida 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 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 terms.

CompliancemandatoryThis method must be implemented.
MethodgetRaceQueryRecord
Description

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

Parametersosid.type.TyperaceRecordTypea race record type
Returnosid.voting.records.RaceQueryRecordthe race query record
ErrorsNULL_ARGUMENTraceRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(raceRecordType) is false
CompliancemandatoryThis method must be implemented.