Class QuizQuestion
java.lang.Object
fr.paris.lutece.plugins.wiki.modules.quiz.business.QuizQuestion
- All Implemented Interfaces:
Serializable
Quiz question entity representing a question within a quiz.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the list of answers for this question.intGets the display order of this question.Gets the question explanation.intgetId()Gets the question ID.intGets the associated quiz ID.intGets the point value for this question.Gets the question text.Gets the question type.Gets the list of source page IDs for this question.voidsetAnswers(List<QuizAnswer> listAnswers) Sets the list of answers for this question.voidsetDisplayOrder(int nDisplayOrder) Sets the display order of this question.voidsetExplanation(String strExplanation) Sets the question explanation.voidsetId(int nId) Sets the question ID.voidsetIdQuiz(int nIdQuiz) Sets the associated quiz ID.voidsetPoints(int nPoints) Sets the point value for this question.voidsetQuestionText(String strQuestionText) Sets the question text.voidsetQuestionType(QuestionType questionType) Sets the question type.voidsetQuestionTypeCode(String strQuestionType) Sets the question type from a code string.voidsetSourcePageIds(List<Integer> listSourcePageIds) Sets the list of source page IDs for this question.
-
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
Gets the question type.- Returns:
- The question type
-
setQuestionType
Sets the question type.- Parameters:
questionType- The question type
-
setQuestionTypeCode
Sets the question type from a code string.- Parameters:
strQuestionType- The question type code
-
getQuestionText
Gets the question text.- Returns:
- The question text
-
setQuestionText
Sets the question text.- Parameters:
strQuestionText- The question text
-
getExplanation
Gets the question explanation.- Returns:
- The explanation
-
setExplanation
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
Gets the list of answers for this question.- Returns:
- The list of answers
-
setAnswers
Sets the list of answers for this question.- Parameters:
listAnswers- The list of answers
-
getSourcePageIds
Gets the list of source page IDs for this question.- Returns:
- The list of source page IDs
-
setSourcePageIds
Sets the list of source page IDs for this question.- Parameters:
listSourcePageIds- The list of source page IDs
-