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

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

public class UserAnswer
extends Object

InvalidAnswer


Constructor Summary
UserAnswer()
           
 
Method Summary
 String getAnswer()
           
 String getExplaination()
           
 boolean getIsValid()
          Check if this answer is a valid answer
 String getQuestion()
           
 int getQuestionId()
           
 String getValidAnswer()
           
 void setAnswer(String strAnswer)
           
 void setExplaination(String strExplaination)
           
 void setIsValid(boolean bIsValid)
          Set this answer valid or invalid
 void setQuestion(String strQuestion)
           
 void setQuestionId(int nQuestionId)
           
 void setValidAnswer(String strValidAnswer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserAnswer

public UserAnswer()
Method Detail

getQuestionId

public int getQuestionId()
Returns:
the questionId

setQuestionId

public void setQuestionId(int nQuestionId)
Parameters:
nQuestionId - the questionId to set

getQuestion

public String getQuestion()
Returns:
the question

setQuestion

public void setQuestion(String strQuestion)
Parameters:
strQuestion - the question to set

getExplaination

public String getExplaination()
Returns:
the Explaination

setExplaination

public void setExplaination(String strExplaination)
Parameters:
strExplaination - the Explaination to set

getAnswer

public String getAnswer()
Returns:
the invalidAnswer

setAnswer

public void setAnswer(String strAnswer)
Parameters:
strAnswer - the answer to set

getValidAnswer

public String getValidAnswer()
Returns:
the validAnswer

setValidAnswer

public void setValidAnswer(String strValidAnswer)
Parameters:
strValidAnswer - the validAnswer to set

getIsValid

public boolean getIsValid()
Check if this answer is a valid answer

Returns:
True if this answer is valid, false otherwise

setIsValid

public void setIsValid(boolean bIsValid)
Set this answer valid or invalid

Parameters:
bIsValid - True if this answer is valid, false otherwise


Copyright © 2014 Mairie de Paris. All Rights Reserved.