org.chorem.pollen.votecounting.dto
Class ChoiceDTO

java.lang.Object
  extended by org.chorem.pollen.votecounting.dto.ChoiceDTO

public class ChoiceDTO
extends java.lang.Object

Classe DTO représentant un choix et les valeurs du vote correspondant.

Version:
$Id: ChoiceDTO.java 2615 2009-07-01 13:47:45Z nrannou $

Constructor Summary
ChoiceDTO()
           
ChoiceDTO(java.lang.String idChoice, double value, double percentage, int nbVotes)
           
 
Method Summary
 java.lang.String getIdChoice()
           
 int getNbVotes()
           
 double getPercentage()
           
 double getValue()
           
 boolean isResult()
           
 void setIdChoice(java.lang.String idChoice)
           
 void setNbVotes(int nbVotes)
           
 void setPercentage(double percentage)
           
 void setResult(boolean result)
           
 void setValue(double value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChoiceDTO

public ChoiceDTO()

ChoiceDTO

public ChoiceDTO(java.lang.String idChoice,
                 double value,
                 double percentage,
                 int nbVotes)
Method Detail

getIdChoice

public java.lang.String getIdChoice()

setIdChoice

public void setIdChoice(java.lang.String idChoice)

getValue

public double getValue()

setValue

public void setValue(double value)

getPercentage

public double getPercentage()

setPercentage

public void setPercentage(double percentage)

getNbVotes

public int getNbVotes()

setNbVotes

public void setNbVotes(int nbVotes)

isResult

public boolean isResult()

setResult

public void setResult(boolean result)


Copyright © 2009 CodeLutin. All Rights Reserved.