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

java.lang.Object
  extended by fr.paris.lutece.plugins.quiz.business.Answer

public class Answer
extends java.lang.Object

This is the business class for the object Answer


Constructor Summary
Answer()
           
 
Method Summary
 int getIdAnswer()
          Returns the IdAnswer
 int getIdQuestion()
          Returns the IdQuestion
 java.lang.String getLabelAnswer()
          Returns the LabelAnswer
 int getValid()
          Returns the IsValid
 boolean isCorrect()
          Returns true if it is the correct answer
 void setIdAnswer(int nIdAnswer)
          Sets the IdAnswer
 void setIdQuestion(int nIdQuestion)
          Sets the IdQuestion
 void setLabelAnswer(java.lang.String strLabelAnswer)
          Sets the LabelAnswer
 void setValid(int nIsValid)
          Sets the IsValid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Answer

public Answer()
Method Detail

getIdAnswer

public int getIdAnswer()
Returns the IdAnswer

Returns:
The IdAnswer

setIdAnswer

public void setIdAnswer(int nIdAnswer)
Sets the IdAnswer

Parameters:
nIdAnswer - The IdAnswer

getIdQuestion

public int getIdQuestion()
Returns the IdQuestion

Returns:
The IdQuestion

setIdQuestion

public void setIdQuestion(int nIdQuestion)
Sets the IdQuestion

Parameters:
nIdQuestion - The IdQuestion

getLabelAnswer

public java.lang.String getLabelAnswer()
Returns the LabelAnswer

Returns:
The LabelAnswer

setLabelAnswer

public void setLabelAnswer(java.lang.String strLabelAnswer)
Sets the LabelAnswer

Parameters:
strLabelAnswer - The LabelAnswer

getValid

public int getValid()
Returns the IsValid

Returns:
The IsValid

isCorrect

public boolean isCorrect()
Returns true if it is the correct answer

Returns:
true if it is the correct answer

setValid

public void setValid(int nIsValid)
Sets the IsValid

Parameters:
nIsValid - The IsValid


Copyright © 2012 Mairie de Paris. All Rights Reserved.