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

Clears the commissioner Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsCommissionerQuery
Description

Tests if a ResourceQuery is available.

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

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

Returnosid.resource.ResourceQuery the commissioner query
ErrorsUNIMPLEMENTED supportsCommissionerQuery() is false
Complianceoptional This method must be implemented if supportsCommissionerQuery() is true.
MethodmatchAnyCommissioner
Description

Matches objects with any commissioner.

Parametersbooleanmatch true to match objects with any commissioner, false to match objects with no commissioner
Compliancemandatory This method must be implemented.
MethodclearCommissionerTerms
Description

Clears the commissioner query terms.

Compliancemandatory This method must be implemented.
MethodmatchRevote
Description

Matches ballots that allow vote modification.

Parametersbooleanmatch true for a positive match, false for a negative match
Compliancemandatory This method must be implemented.
MethodclearRevoteTerms
Description

Clears the revote ballot terms.

Compliancemandatory This method must be implemented.
MethodmatchRaceId
Description

Sets the race Id for this query.

Parametersosid.id.IdraceId the race Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT raceId is null
Compliancemandatory This method must be implemented.
MethodclearRaceIdTerms
Description

Clears the race Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsRaceQuery
Description

Tests if a RaceQuery is available.

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

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

Returnosid.voting.RaceQuery the race query
ErrorsUNIMPLEMENTED supportsRaceQuery() is false
Complianceoptional This method must be implemented if supportsRaceQuery() is true.
MethodmatchAnyRace
Description

Matches ballots with any race.

Parametersbooleanmatch true to match any race, false to match ballots with no races
Compliancemandatory This method must be implemented.
MethodclearRaceTerms
Description

Clears the race terms.

Compliancemandatory This method must be implemented.
MethodmatchPollsId
Description

Sets the polls Id for this query.

Parametersosid.id.IdpollsId the 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.
MethodgetBallotQueryRecord
Description

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

Parametersosid.type.TypeballotRecordType a ballot record type
Returnosid.voting.records.BallotQueryRecord the ballot query record
ErrorsNULL_ARGUMENT ballotRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(ballotRecordType) is false
Compliancemandatory This method must be implemented.