org.directdemocracyportal.democracy.model.world
Class VoteResult

Package class diagram package VoteResult
java.lang.Object
  extended by org.directdemocracyportal.democracy.model.core.BaseEntity
      extended by org.directdemocracyportal.democracy.model.core.Resource
          extended by org.directdemocracyportal.democracy.model.world.Document
              extended by org.directdemocracyportal.democracy.model.world.VoteResult
All Implemented Interfaces:
java.io.Serializable

@Entity
public class VoteResult
extends Document

The Class VoteResult.

See Also:
Serialized Form

Constructor Summary
Constructor and Description
VoteResult()
           
 
Method Summary
Modifier and Type Method and Description
 boolean containsVote(java.lang.String name)
          Contains vote.
 Vote.Position getFinalPosition()
          Gets the final position.
 java.lang.String getHref()
          Gets the href.
 Issue getIssue()
          Gets the issue.
 java.util.Set<Vote> getVotes()
          Gets the votes.
 void setFinalPosition(Vote.Position finalPosition)
          Sets the final position.
 void setHref(java.lang.String href)
          Sets the href.
 void setIssue(Issue issue)
          Sets the issue.
 void setVotes(java.util.Set<Vote> votes)
          Sets the votes.
 
Methods inherited from class org.directdemocracyportal.democracy.model.core.Resource
getId, getName, getOwner, setId, setName, setOwner
 
Methods inherited from class org.directdemocracyportal.democracy.model.core.BaseEntity
isNew
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VoteResult

public VoteResult()
Method Detail

getFinalPosition

public Vote.Position getFinalPosition()
Gets the final position.

Returns:
the final position

setFinalPosition

public void setFinalPosition(Vote.Position finalPosition)
Sets the final position.

Parameters:
finalPosition - the new final position

getHref

public java.lang.String getHref()
Gets the href.

Returns:
the href

setHref

public void setHref(java.lang.String href)
Sets the href.

Parameters:
href - the new href

getIssue

public Issue getIssue()
Gets the issue.

Returns:
the issue

setIssue

public void setIssue(Issue issue)
Sets the issue.

Parameters:
issue - the new issue

getVotes

public java.util.Set<Vote> getVotes()
Gets the votes.

Returns:
the votes

setVotes

public void setVotes(java.util.Set<Vote> votes)
Sets the votes.

Parameters:
votes - the new votes

containsVote

public boolean containsVote(java.lang.String name)
Contains vote.

Parameters:
name - the name
Returns:
true, if successful


Copyright © 2004-2010 www.DirectDemocracyPortal.org. All Rights Reserved.