OSID Logo
OSID Specifications
voting package
Version 3.0.0
Release Candidate Preview
Interfaceosid.voting.RaceQuery
Implementsosid.OsidGovernatorQuery
osid.OsidSubjugateableQuery
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
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT ballotId 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.

Returnboolean true 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
ErrorsUNIMPLEMENTED supportsBallotQuery() 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
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT candidateId 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.

Returnboolean true 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
ErrorsUNIMPLEMENTED supportsCandidateQuery() is false
ComplianceoptionalThis method must be implemented if supportsCandidateQuery() is true.
MethodmatchAnyCandidate
Description

Matches polls with any candidate.

Parametersbooleanmatch true 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
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT pollsId 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.

Returnboolean true 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
ErrorsUNIMPLEMENTED supportsPollsQuery() 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_ARGUMENT raceRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(raceRecordType) is false
CompliancemandatoryThis method must be implemented.