OSID Logo
OSID Specifications
voting package
Version 3.0.0
Interfaceosid.voting.VoteForm
Implementsosid.OsidRelationshipForm
Implemented Byosid.voting.batch.VoteBatchForm
Used Byosid.voting.VotingSession
Description

This is the form for creating and updating Votes .

MethodgetVotesMetadata
Description

Gets the metadata for the number of votes.

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

Sets the votes.

Parametersintegervotesthe votes
ErrorsINVALID_ARGUMENTvotes is invalid
NO_ACCESSMetadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodclearVotes
Description

Clears the votes.

CompliancemandatoryThis method must be implemented.
MethodgetVoteFormRecord
Description

Gets the VoteFormRecord record corresponding to the given vote Type .

Parametersosid.type.TypevoteRecordTypethe vote record type
Returnosid.voting.records.VoteFormRecordthe vote form record
ErrorsNULL_ARGUMENTvoteRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(voteRecordType) is false
CompliancemandatoryThis method must be implemented.