OSID Logo
OSID Specifications
voting package
Version 3.0.0
Interfaceosid.voting.VoterAllocationForm
Implementsosid.OsidObjectForm
Used Byosid.voting.VoterAllocationAdminSession
Description

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

MethodgetTotalVotesMetadata
Description

Gets the metadata for the total votes.

Returnosid.Metadatametadata for the total votes
CompliancemandatoryThis method must be implemented.
MethodsetTotalVotes
Description

Sets the total votes.

Parameterscardinalvotesthe total votes
ErrorsINVALID_ARGUMENTvotes is invalid
NO_ACCESSMetadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodclearTotalVotes
Description

Clears the total votes.

CompliancemandatoryThis method must be implemented.
MethodgetMaxVotesPerCandidateMetadata
Description

Gets the metadata for the max votes per candidate.

Returnosid.Metadatametadata for the max votes per candidate
CompliancemandatoryThis method must be implemented.
MethodsetMaxVotesPerCandidate
Description

Sets the max votes per candidate.

Parameterscardinalvotesthe max votes
ErrorsINVALID_ARGUMENTvotes is invalid
NO_ACCESSMetadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodclearMaxVotesPerCandidate
Description

Clears the max votes per candidate.

CompliancemandatoryThis method must be implemented.
MethodgetMaxCandidatesMetadata
Description

Gets the metadata for the max candidates.

Returnosid.Metadatametadata for the max candidates
CompliancemandatoryThis method must be implemented.
MethodsetMaxCandidates
Description

Sets the max candidates.

Parameterscardinalcandidatesthe max candidates
ErrorsINVALID_ARGUMENTcandidates is invalid
NO_ACCESSMetadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodclearMaxCandidates
Description

Clears the max candidates.

CompliancemandatoryThis method must be implemented.
MethodgetCandidateFormRecord
Description

Gets the CandidateFormRecord corresponding to the given Candidate record Type .

Parametersosid.type.TypecandidateRecordTypethe candidate record type
Returnosid.voting.records.CandidateFormRecordthe candidate form record
ErrorsNULL_ARGUMENTcandidateRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(candidateRecordType) is false
CompliancemandatoryThis method must be implemented.