fr.paris.lutece.plugins.quiz.business
Class QuizQuestion

java.lang.Object
  extended byfr.paris.lutece.plugins.quiz.business.QuizQuestion

public class QuizQuestion
extends java.lang.Object

This class represents business object QuizQuestion


Constructor Summary
QuizQuestion()
          Creates a new QuizQuestion object.
 
Method Summary
 int getAnswer()
          Return The Answer
 java.lang.String getChoice(int i)
          Return The choice of the response
 int getId()
          Returns the identifier of this QuizQuestion.
 int getIdQuiz()
          Return the identifier of the quiz
 java.lang.String getQuestion()
          Return The Question
 void setAnswer(int nAnswer)
          Sets The Answers in the specified String
 void setChoice(int i, java.lang.String strChoice)
          Sets the Choice indexer
 void setId(int nIdQuestion)
          Sets the identifier of the question to the specified integer.
 void setIdQuiz(int nIdQuiz)
          Sets the identifier of the quiz to the specifies integer
 void setQuestion(java.lang.String strQuestion)
          Set the Question to the specified string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuizQuestion

public QuizQuestion()
Creates a new QuizQuestion object.

Method Detail

getId

public int getId()
Returns the identifier of this QuizQuestion.

Returns:
_nIdQuestion The Question identifier

setId

public void setId(int nIdQuestion)
Sets the identifier of the question to the specified integer.

Parameters:
nIdQuestion - The Question identifier

getIdQuiz

public int getIdQuiz()
Return the identifier of the quiz

Returns:
_nIdQuiz The Quiz identifier

setIdQuiz

public void setIdQuiz(int nIdQuiz)
Sets the identifier of the quiz to the specifies integer

Parameters:
nIdQuiz - The Quiz identifier

getQuestion

public java.lang.String getQuestion()
Return The Question

Returns:
_strQuestion The Question

setQuestion

public void setQuestion(java.lang.String strQuestion)
Set the Question to the specified string

Parameters:
strQuestion - The Question

getChoice

public java.lang.String getChoice(int i)
Return The choice of the response

Parameters:
i - The index
Returns:
_strChoice The Choice

setChoice

public void setChoice(int i,
                      java.lang.String strChoice)
Sets the Choice indexer

Parameters:
i - The index
strChoice - The Choice

getAnswer

public int getAnswer()
Return The Answer

Returns:
_nAnswer The Answer

setAnswer

public void setAnswer(int nAnswer)
Sets The Answers in the specified String

Parameters:
nAnswer - The Answer