fr.paris.lutece.plugins.poll.business
Class PollQuestion

java.lang.Object
  extended by fr.paris.lutece.plugins.poll.business.PollQuestion

public class PollQuestion
extends java.lang.Object

This class represents business object PollQuestion


Constructor Summary
PollQuestion()
           
 
Method Summary
 java.util.List<PollChoice> getChoices()
          Returns the list of avaiable choices
 int getId()
          Returns the identifier of this question of the poll
 int getIdPoll()
          Returns the identifier of the poll
 java.lang.String getLabel()
          Returns the label of the question
 int getVotesCount()
          Returns the count of votes for the question
 void setId(int nIdQuestion)
          Sets the identifier with the specified integer
 void setIdPoll(int nIdPoll)
          Sets the identifier of the poll with the specified integer
 void setLabel(java.lang.String strLabelQuestion)
          Sets the label of the question with the specified string
 void setVotesCount(int nVotesCount)
          Sets the count of votes for the question
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PollQuestion

public PollQuestion()
Method Detail

getId

public int getId()
Returns the identifier of this question of the poll

Returns:
the identifier as an integer

setId

public void setId(int nIdQuestion)
Sets the identifier with the specified integer

Parameters:
nIdQuestion - The identifier of the question

getIdPoll

public int getIdPoll()
Returns the identifier of the poll

Returns:
The identifier of the poll as an integer.

setIdPoll

public void setIdPoll(int nIdPoll)
Sets the identifier of the poll with the specified integer

Parameters:
nIdPoll - The identifier

getLabel

public java.lang.String getLabel()
Returns the label of the question

Returns:
_strLabelQuestion The label of the question

setLabel

public void setLabel(java.lang.String strLabelQuestion)
Sets the label of the question with the specified string

Parameters:
strLabelQuestion - The String label

getChoices

public java.util.List<PollChoice> getChoices()
Returns the list of avaiable choices

Returns:
_choices The list of choices

getVotesCount

public int getVotesCount()
Returns the count of votes for the question

Returns:
_nVotesCount the votes count

setVotesCount

public void setVotesCount(int nVotesCount)
Sets the count of votes for the question

Parameters:
nVotesCount - the votes count


Copyright © 2010 Mairie de Paris. All Rights Reserved.