Class QuizAnswer
java.lang.Object
fr.paris.lutece.plugins.wiki.modules.quiz.business.QuizAnswer
- All Implemented Interfaces:
Serializable
Quiz answer entity representing a possible answer to a quiz question.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the answer text.Gets the correct order for ordering questions.intGets the display order of this answer.intgetId()Gets the answer ID.intGets the associated question ID.booleanGets whether this answer is correct.Gets the match target for matching questions.voidsetAnswerText(String strAnswerText) Sets the answer text.voidsetCorrectOrder(Integer nCorrectOrder) Sets the correct order for ordering questions.voidsetDisplayOrder(int nDisplayOrder) Sets the display order of this answer.voidsetId(int nId) Sets the answer ID.voidsetIdQuestion(int nIdQuestion) Sets the associated question ID.voidsetIsCorrect(boolean bIsCorrect) Sets whether this answer is correct.voidsetMatchTarget(String strMatchTarget) Sets the match target for matching questions.
-
Constructor Details
-
QuizAnswer
public QuizAnswer()Default constructor.
-
-
Method Details
-
getId
public int getId()Gets the answer ID.- Returns:
- The answer ID
-
setId
public void setId(int nId) Sets the answer ID.- Parameters:
nId- The answer ID
-
getIdQuestion
public int getIdQuestion()Gets the associated question ID.- Returns:
- The question ID
-
setIdQuestion
public void setIdQuestion(int nIdQuestion) Sets the associated question ID.- Parameters:
nIdQuestion- The question ID
-
getAnswerText
Gets the answer text.- Returns:
- The answer text
-
setAnswerText
Sets the answer text.- Parameters:
strAnswerText- The answer text
-
getIsCorrect
public boolean getIsCorrect()Gets whether this answer is correct.- Returns:
- True if the answer is correct
-
setIsCorrect
public void setIsCorrect(boolean bIsCorrect) Sets whether this answer is correct.- Parameters:
bIsCorrect- True if the answer is correct
-
getMatchTarget
Gets the match target for matching questions.- Returns:
- The match target
-
setMatchTarget
Sets the match target for matching questions.- Parameters:
strMatchTarget- The match target
-
getCorrectOrder
Gets the correct order for ordering questions.- Returns:
- The correct order
-
setCorrectOrder
Sets the correct order for ordering questions.- Parameters:
nCorrectOrder- The correct order
-
getDisplayOrder
public int getDisplayOrder()Gets the display order of this answer.- Returns:
- The display order
-
setDisplayOrder
public void setDisplayOrder(int nDisplayOrder) Sets the display order of this answer.- Parameters:
nDisplayOrder- The display order
-