OSID Logo
OSID Specifications
voting package
Version 3.0.0
Interfaceosid.voting.PollsQuery
Implementsosid.OsidCatalogQuery
Used Byosid.voting.BallotQuery
osid.voting.CandidateQuery
osid.voting.PollsQuery
osid.voting.PollsQuerySession
osid.voting.PollsSearchSession
osid.voting.RaceQuery
osid.voting.VoteQuery
osid.voting.rules.BallotConstrainerEnablerQuery
osid.voting.rules.BallotConstrainerQuery
osid.voting.rules.RaceConstrainerEnablerQuery
show 4 more…
osid.voting.rules.RaceConstrainerQuery
osid.voting.rules.RaceProcessorEnablerQuery
osid.voting.rules.RaceProcessorQuery
osid.voting.rules.VoteEnablerQuery
Description

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

MethodmatchCandidateId
Description

Sets the candidate Id for this query.

Parametersosid.id.IdcandidateIda candidate Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTcandidateId 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.

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

Matches polls with any candidate.

Parametersbooleanmatchtrue 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.
MethodmatchAncestorPollsId
Description

Sets the polls Id for this query to match polls that have the specified polls as an ancestor.

Parametersosid.id.Idpollsida polls Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTpollsId is null
CompliancemandatoryThis method must be implemented.
MethodclearAncestorPollsIdTerms
Description

Clears the ancestor polls Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsAncestorPollsQuery
Description

Tests if a PollsQuery is available.

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

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

Returnosid.voting.PollsQuerythe polls query
ErrorsUNIMPLEMENTEDsupportsAncestorPollsQuery() is false
ComplianceoptionalThis method must be implemented if supportsAncestorPollsQuery() is true .
MethodmatchAnyAncestorPolls
Description

Matches polls with any ancestor.

Parametersbooleanmatchtrue to match polls with any ancestor, false to match root polls
CompliancemandatoryThis method must be implemented.
MethodclearAncestorPollsTerms
Description

Clears the ancestor polls terms.

CompliancemandatoryThis method must be implemented.
MethodmatchDescendantPollsId
Description

Sets the polls Id for this query to match polls that have the specified polls as a descendant.

Parametersosid.id.Idpollsida polls Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTpollsId is null
CompliancemandatoryThis method must be implemented.
MethodclearDescendantPollsIdTerms
Description

Clears the descendant polls Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsDescendantPollsQuery
Description

Tests if a PollsQuery is available.

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

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

Returnosid.voting.PollsQuerythe polls query
ErrorsUNIMPLEMENTEDsupportsDescendantPollsQuery() is false
ComplianceoptionalThis method must be implemented if supportsDescendantPollsQuery() is true .
MethodmatchAnyDescendantPolls
Description

Matches polls with any descendant.

Parametersbooleanmatchtrue to match polls with any descendant, false to match leaf polls
CompliancemandatoryThis method must be implemented.
MethodclearDescendantPollsTerms
Description

Clears the descendant polls terms.

CompliancemandatoryThis method must be implemented.
MethodgetPollsQueryRecord
Description

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

Parametersosid.type.TypepollsRecordTypea polls record type
Returnosid.voting.records.PollsQueryRecordthe polls query record
ErrorsNULL_ARGUMENTpollsRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(pollsRecordType) is false
CompliancemandatoryThis method must be implemented.