OSID Logo
OSID Specifications
voting package
Version 3.1.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.IdballotId a ballot Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT ballotId is null
Compliancemandatory This method must be implemented.
MethodclearBallotIdTerms
Description

Clears the ballot Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsBallotQuery
Description

Tests if a BallotQuery is available.

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

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

Returnosid.voting.BallotQuery the ballot query
ErrorsUNIMPLEMENTED supportsBallotQuery() is false
Complianceoptional This method must be implemented if supportsBallotQuery() is true.
MethodclearBallotTerms
Description

Clears the ballot terms.

Compliancemandatory This method must be implemented.
MethodmatchCandidateId
Description

Sets the candidate Id for this query.

Parametersosid.id.IdcandidateId a candidate Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT candidateId is null
Compliancemandatory This method must be implemented.
MethodclearCandidateIdTerms
Description

Clears the candidate Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsCandidateQuery
Description

Tests if a CandidateQuery is available.

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

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

Returnosid.voting.CandidateQuery the candidate query
ErrorsUNIMPLEMENTED supportsCandidateQuery() is false
Complianceoptional This 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
Compliancemandatory This method must be implemented.
MethodclearCandidateTerms
Description

Clears the candidate terms.

Compliancemandatory This method must be implemented.
MethodmatchPollsId
Description

Sets the polls Id for this query.

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

Compliancemandatory This 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.TyperaceRecordType a race record type
Returnosid.voting.records.RaceQueryRecord the race query record
ErrorsNULL_ARGUMENT raceRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(raceRecordType) is false
Compliancemandatory This method must be implemented.