OSID Logo
OSID Specifications
voting package
Version 3.0.0
Release Candidate Preview
Interfaceosid.voting.BallotForm
Implementsosid.OsidGovernatorForm
osid.OsidTemporalForm
Description

This is the form for creating and updating Ballots. Like all OsidForm objects, various data elements may be set here for use in the create and update methods in the BallotAdminSession. For each data element that may be set, metadata may be examined to provide display hints or data constraints.

MethodgetRevoteMetadata
Description

Gets the metadata for the revote flag.

Returnosid.Metadatametadata for the revote flag
CompliancemandatoryThis method must be implemented.
MethodsetRevote
Description

Sets the revote flag.

Parametersbooleanrevotethe revote flag
ErrorsINVALID_ARGUMENT revote is invalid
NO_ACCESS Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodclearRevote
Description

Clears the revote flag.

CompliancemandatoryThis method must be implemented.
MethodgetBallotFormRecord
Description

Gets the BallotFormRecord corresponding to the given Ballot record Type.

Parametersosid.type.TypecandidateRecordTypethe ballot record type
Returnosid.voting.records.BallotFormRecordthe ballot form record
ErrorsNULL_ARGUMENT ballotRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(ballotRecordType) is false
CompliancemandatoryThis method must be implemented.