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

public class QuizQuestion extends Object implements Serializable
Quiz question entity representing a question within a quiz.
See Also:
  • Constructor Details

    • QuizQuestion

      public QuizQuestion()
      Default constructor.
  • Method Details

    • getId

      public int getId()
      Gets the question ID.
      Returns:
      The question ID
    • setId

      public void setId(int nId)
      Sets the question ID.
      Parameters:
      nId - The question ID
    • getIdQuiz

      public int getIdQuiz()
      Gets the associated quiz ID.
      Returns:
      The quiz ID
    • setIdQuiz

      public void setIdQuiz(int nIdQuiz)
      Sets the associated quiz ID.
      Parameters:
      nIdQuiz - The quiz ID
    • getQuestionType

      public QuestionType getQuestionType()
      Gets the question type.
      Returns:
      The question type
    • setQuestionType

      public void setQuestionType(QuestionType questionType)
      Sets the question type.
      Parameters:
      questionType - The question type
    • setQuestionTypeCode

      public void setQuestionTypeCode(String strQuestionType)
      Sets the question type from a code string.
      Parameters:
      strQuestionType - The question type code
    • getQuestionText

      public String getQuestionText()
      Gets the question text.
      Returns:
      The question text
    • setQuestionText

      public void setQuestionText(String strQuestionText)
      Sets the question text.
      Parameters:
      strQuestionText - The question text
    • getExplanation

      public String getExplanation()
      Gets the question explanation.
      Returns:
      The explanation
    • setExplanation

      public void setExplanation(String strExplanation)
      Sets the question explanation.
      Parameters:
      strExplanation - The explanation
    • getPoints

      public int getPoints()
      Gets the point value for this question.
      Returns:
      The points
    • setPoints

      public void setPoints(int nPoints)
      Sets the point value for this question.
      Parameters:
      nPoints - The points
    • getDisplayOrder

      public int getDisplayOrder()
      Gets the display order of this question.
      Returns:
      The display order
    • setDisplayOrder

      public void setDisplayOrder(int nDisplayOrder)
      Sets the display order of this question.
      Parameters:
      nDisplayOrder - The display order
    • getAnswers

      public List<QuizAnswer> getAnswers()
      Gets the list of answers for this question.
      Returns:
      The list of answers
    • setAnswers

      public void setAnswers(List<QuizAnswer> listAnswers)
      Sets the list of answers for this question.
      Parameters:
      listAnswers - The list of answers
    • getSourcePageIds

      public List<Integer> getSourcePageIds()
      Gets the list of source page IDs for this question.
      Returns:
      The list of source page IDs
    • setSourcePageIds

      public void setSourcePageIds(List<Integer> listSourcePageIds)
      Sets the list of source page IDs for this question.
      Parameters:
      listSourcePageIds - The list of source page IDs