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

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

public class Answer
extends Object

This is the business class for the object Answer


Constructor Summary
Answer()
           
 
Method Summary
 int getIdAnswer()
          Returns the IdAnswer
 int getIdProfile()
           
 int getIdQuestion()
          Returns the IdQuestion
 String getLabelAnswer()
          Returns the LabelAnswer
 String getProfil()
           
 int getValid()
          Returns the IsValid
 boolean isCorrect()
          Returns true if it is the correct answer
 void setIdAnswer(int nIdAnswer)
          Sets the IdAnswer
 void setIdProfile(int nIdProfile)
           
 void setIdQuestion(int nIdQuestion)
          Sets the IdQuestion
 void setLabelAnswer(String strLabelAnswer)
          Sets the LabelAnswer
 void setProfil(String strProfil)
           
 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 String getLabelAnswer()
Returns the LabelAnswer

Returns:
The LabelAnswer

setLabelAnswer

public void setLabelAnswer(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

getIdProfile

public int getIdProfile()
Returns:
the _nIdProfil

setIdProfile

public void setIdProfile(int nIdProfile)
Parameters:
nIdProfile - the _nIdProfil to set

getProfil

public String getProfil()
Returns:
the _strProfil

setProfil

public void setProfil(String strProfil)
Parameters:
strProfil - the _strProfil to set


Copyright © 2014 Mairie de Paris. All Rights Reserved.