java.lang.Object
fr.paris.lutece.plugins.wiki.modules.quiz.business.QuizAnswer
All Implemented Interfaces:
Serializable

public class QuizAnswer extends Object implements Serializable
Quiz answer entity representing a possible answer to a quiz question.
See Also:
  • 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

      public String getAnswerText()
      Gets the answer text.
      Returns:
      The answer text
    • setAnswerText

      public void setAnswerText(String strAnswerText)
      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

      public String getMatchTarget()
      Gets the match target for matching questions.
      Returns:
      The match target
    • setMatchTarget

      public void setMatchTarget(String strMatchTarget)
      Sets the match target for matching questions.
      Parameters:
      strMatchTarget - The match target
    • getCorrectOrder

      public Integer getCorrectOrder()
      Gets the correct order for ordering questions.
      Returns:
      The correct order
    • setCorrectOrder

      public void setCorrectOrder(Integer nCorrectOrder)
      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