| Interface | osid.voting.BallotQuery | ||
|---|---|---|---|
| Implements | osid.OsidGovernatorQuery | ||
osid.OsidTemporalQuery | |||
| Description |
This is the query for searching ballots. Each method
specifies an | ||
| Method | matchRevote | ||
| Description |
Matches ballots that allow vote modification. | ||
| Parameters | boolean | match | true for a positive match, false for a
negative match |
| Compliance | mandatory | This method must be implemented. | |
| Method | clearRevoteTerms | ||
| Description |
Clears the revote ballot terms. | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | matchRaceId | ||
| Description |
Sets the race | ||
| Parameters | osid.id.Id | raceId | the race Id |
boolean | match | true for a positive match, false for a
negative match | |
| Errors | NULL_ARGUMENT | raceId is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | clearRaceIdTerms | ||
| Description |
Clears the race | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | supportsRaceQuery | ||
| Description |
Tests if a | ||
| Return | boolean | true if a race query is available, false
otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getRaceQuery | ||
| Description |
Gets the query for a race. Multiple retrievals produce
a nested | ||
| Return | osid.voting.RaceQuery | the race query | |
| Errors | UNIMPLEMENTED | supportsRaceQuery() is false | |
| Compliance | optional | This method must be implemented if supportsRaceQuery() is
true. | |
| Method | matchAnyRace | ||
| Description |
Matches ballots with any race. | ||
| Parameters | boolean | match | true to match any race, false to match
ballots with no races |
| Compliance | mandatory | This method must be implemented. | |
| Method | clearRaceTerms | ||
| Description |
Clears the race terms. | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | matchPollsId | ||
| Description |
Sets the polls | ||
| Parameters | osid.id.Id | pollsId | the polls Id |
boolean | match | true for a positive match, false for a
negative match | |
| Errors | NULL_ARGUMENT | pollsId is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | clearPollsIdTerms | ||
| Description |
Clears the polls | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | supportsPollsQuery | ||
| Description |
Tests if a | ||
| Return | boolean | true if a polls query is available, false
otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getPollsQuery | ||
| Description |
Gets the query for a polls. Multiple retrievals produce
a nested | ||
| Return | osid.voting.PollsQuery | the polls query | |
| Errors | UNIMPLEMENTED | supportsPollsQuery() is false | |
| Compliance | optional | This method must be implemented if supportsPollsQuery() is
true. | |
| Method | clearPollsTerms | ||
| Description |
Clears the polls terms. | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getBallotQueryRecord | ||
| Description |
Gets the ballot query record corresponding to the given
| ||
| Parameters | osid.type.Type | ballotRecordType | a ballot record type |
| Return | osid.voting.records.BallotQueryRecord | the ballot query record | |
| Errors | NULL_ARGUMENT | ballotRecordType is null | |
| OPERATION_FAILED | unable to complete request | ||
| UNSUPPORTED | hasRecordType(ballotRecordType) is false | ||
| Compliance | mandatory | This method must be implemented. | |