Class Question
- java.lang.Object
-
- org.silverpeas.core.questioncontainer.question.model.Question
-
- All Implemented Interfaces:
Serializable
public class Question extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Question(QuestionPK pk, String fatherId, String label, String description, String clue, String image, boolean isQCM, int type, boolean open)
Question(QuestionPK pk, String fatherId, String label, String description, String clue, String image, boolean isQCM, int type, boolean open, int cluePenalty, int maxTime, int displayOrder, int nbPointsMin, int nbPointsMax)
Question(QuestionPK pk, String fatherId, String label, String description, String clue, String image, boolean isQCM, int type, boolean open, int cluePenalty, int maxTime, int displayOrder, int nbPointsMin, int nbPointsMax, String style)
Question(QuestionPK pk, String fatherId, String label, String description, String clue, String image, int type, String style, int cluePenalty, int maxTime, int displayOrder, int nbPointsMin, int nbPointsMax)
Question(QuestionPK pk, String fatherId, String label, String description, String clue, String image, String style, int type)
Question constructor
-
Method Summary
-
-
-
Constructor Detail
-
Question
public Question(QuestionPK pk, String fatherId, String label, String description, String clue, String image, String style, int type)
Question constructor- Parameters:
pk
-fatherId
-label
-description
-clue
-image
-style
-type
-
-
Question
public Question(QuestionPK pk, String fatherId, String label, String description, String clue, String image, boolean isQCM, int type, boolean open)
- Parameters:
pk
-fatherId
-label
-description
-clue
-image
-isQCM
-type
-open
-
-
Question
public Question(QuestionPK pk, String fatherId, String label, String description, String clue, String image, int type, String style, int cluePenalty, int maxTime, int displayOrder, int nbPointsMin, int nbPointsMax)
- Parameters:
pk
-fatherId
-label
-description
-clue
-image
-type
-style
-cluePenalty
-maxTime
-displayOrder
-nbPointsMin
-nbPointsMax
-
-
Question
public Question(QuestionPK pk, String fatherId, String label, String description, String clue, String image, boolean isQCM, int type, boolean open, int cluePenalty, int maxTime, int displayOrder, int nbPointsMin, int nbPointsMax)
-
-
Method Detail
-
setPK
public void setPK(QuestionPK pk)
-
setFatherId
public void setFatherId(String fatherId)
-
setLabel
public void setLabel(String label)
-
setDescription
public void setDescription(String description)
-
setClue
public void setClue(String clue)
-
setImage
public void setImage(String image)
-
setAnswers
public void setAnswers(Collection<Answer> answers)
-
setQCM
public void setQCM(boolean isQCM)
-
setType
public void setType(int type)
-
setOpen
public void setOpen(boolean open)
-
setCluePenalty
public void setCluePenalty(int cluePenalty)
-
setMaxTime
public void setMaxTime(int maxTime)
-
setDisplayOrder
public void setDisplayOrder(int displayOrder)
-
setNbPointsMin
public void setNbPointsMin(int nbPointsMin)
-
setNbPointsMax
public void setNbPointsMax(int nbPointsMax)
-
setQuestionResults
public void setQuestionResults(Collection<QuestionResult> results)
-
setStyle
public void setStyle(String style)
-
getPK
public QuestionPK getPK()
-
getFatherId
public String getFatherId()
-
getLabel
public String getLabel()
-
getDescription
public String getDescription()
-
getClue
public String getClue()
-
getImage
public String getImage()
-
getAnswers
public Collection<Answer> getAnswers()
-
getType
public int getType()
-
getCluePenalty
public int getCluePenalty()
-
getMaxTime
public int getMaxTime()
-
getDisplayOrder
public int getDisplayOrder()
-
getNbPointsMin
public int getNbPointsMin()
-
getNbPointsMax
public int getNbPointsMax()
-
getAverageScore
public float getAverageScore()
-
getStyle
public String getStyle()
-
isQCM
public boolean isQCM()
-
isOpen
public boolean isOpen()
-
getQuestionResults
public Collection<QuestionResult> getQuestionResults()
-
isOpenStyle
public boolean isOpenStyle()
-
-