OSID Logo
OSID Specifications
voting package
Version 3.0.0
Interfaceosid.voting.BallotQuery
Implementsosid.OsidGovernatorQuery
osid.OsidTemporalQuery
Used Byosid.voting.BallotQuerySession
osid.voting.BallotSearchSession
osid.voting.BallotSmartPollsSession
osid.voting.RaceQuery
osid.voting.rules.BallotConstrainerQuery
Description

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

MethodmatchCommissionerId
Description

Sets a commissioner Id for this query.

Parametersosid.id.IdcommissionerIda commissioner Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTcommissionerId is null
CompliancemandatoryThis method must be implemented.
MethodclearCommissionerIdTerms
Description

Clears the commissioner Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsCommissionerQuery
Description

Tests if a ResourceQuery is available.

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

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

Returnosid.resource.ResourceQuerythe commissioner query
ErrorsUNIMPLEMENTEDsupportsCommissionerQuery() is false
ComplianceoptionalThis method must be implemented if supportsCommissionerQuery() is true .
MethodmatchAnyCommissioner
Description

Matches objects with any commissioner.

Parametersbooleanmatchtrue to match objects with any commissioner, false to match objects with no commissioner
CompliancemandatoryThis method must be implemented.
MethodclearCommissionerTerms
Description

Clears the commissioner query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchRevote
Description

Matches ballots that allow vote modification.

Parametersbooleanmatchtrue for a positive match, false for a negative match
CompliancemandatoryThis method must be implemented.
MethodclearRevoteTerms
Description

Clears the revote ballot terms.

CompliancemandatoryThis method must be implemented.
MethodmatchRaceId
Description

Sets the race Id for this query.

Parametersosid.id.IdraceIdthe race Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTraceId is null
CompliancemandatoryThis method must be implemented.
MethodclearRaceIdTerms
Description

Clears the race Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsRaceQuery
Description

Tests if a RaceQuery is available.

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

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

Returnosid.voting.RaceQuerythe race query
ErrorsUNIMPLEMENTEDsupportsRaceQuery() is false
ComplianceoptionalThis method must be implemented if supportsRaceQuery() is true .
MethodmatchAnyRace
Description

Matches ballots with any race.

Parametersbooleanmatchtrue to match any race, false to match ballots with no races
CompliancemandatoryThis method must be implemented.
MethodclearRaceTerms
Description

Clears the race terms.

CompliancemandatoryThis method must be implemented.
MethodmatchPollsId
Description

Sets the polls Id for this query.

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 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.
MethodgetBallotQueryRecord
Description

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

Parametersosid.type.TypeballotRecordTypea ballot record type
Returnosid.voting.records.BallotQueryRecordthe ballot query record
ErrorsNULL_ARGUMENTballotRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(ballotRecordType) is false
CompliancemandatoryThis method must be implemented.