Interface VoteForm

All Superinterfaces:
Extensible, Identifiable, OsidBrowsableForm, OsidExtensibleForm, OsidForm, OsidIdentifiableForm, OsidObjectForm, OsidRelationshipForm, OsidTemporalForm, Suppliable
All Known Subinterfaces:
VoteBatchForm

public interface VoteForm extends OsidRelationshipForm

This is the form for creating and updating Votes .

  • Method Details

    • getVotesMetadata

      Metadata getVotesMetadata()
      Gets the metadata for the number of votes.
      Returns:
      metadata for the votes
      Compliance:
      mandatory - This method must be implemented.
    • setVotes

      void setVotes(long votes)
      Sets the votes.
      Parameters:
      votes - the votes
      Throws:
      InvalidArgumentException - votes is invalid
      NoAccessException - Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • clearVotes

      void clearVotes()
      Clears the votes.
      Compliance:
      mandatory - This method must be implemented.
    • getVoteFormRecord

      VoteFormRecord getVoteFormRecord(Type voteRecordType) throws OperationFailedException
      Gets the VoteFormRecord record corresponding to the given vote Type .
      Parameters:
      voteRecordType - the vote record type
      Returns:
      the vote form record
      Throws:
      NullArgumentException - voteRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(voteRecordType) is false
      Compliance:
      mandatory - This method must be implemented.