com.stratelia.webactiv.util.question.model
Class Question

java.lang.Object
  extended by com.stratelia.webactiv.util.question.model.Question
All Implemented Interfaces:
Serializable

public class Question
extends Object
implements Serializable

See Also:
Serialized Form

Constructor Summary
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
 Answer getAnswer(String answerId)
           
 Collection<Answer> getAnswers()
           
 float getAverageScore()
           
 String getClue()
           
 int getCluePenalty()
           
 String getDescription()
           
 int getDisplayOrder()
           
 String getFatherId()
           
 String getImage()
           
 String getLabel()
           
 int getMaxTime()
           
 int getNbPointsMax()
           
 int getNbPointsMin()
           
 QuestionPK getPK()
           
 Collection<QuestionResult> getQuestionResults()
           
 String getStyle()
           
 int getType()
           
 boolean isOpen()
           
 boolean isOpenStyle()
           
 boolean isQCM()
           
 void setAnswers(Collection<Answer> answers)
           
 void setClue(String clue)
           
 void setCluePenalty(int cluePenalty)
           
 void setDescription(String description)
           
 void setDisplayOrder(int displayOrder)
           
 void setFatherId(String fatherId)
           
 void setImage(String image)
           
 void setLabel(String label)
           
 void setMaxTime(int maxTime)
           
 void setNbPointsMax(int nbPointsMax)
           
 void setNbPointsMin(int nbPointsMin)
           
 void setOpen(boolean open)
           
 void setPK(QuestionPK pk)
           
 void setQCM(boolean isQCM)
           
 void setQuestionResults(Collection<QuestionResult> results)
           
 void setStyle(String style)
           
 void setType(int type)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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)

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,
                String style)
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()

getAnswer

public Answer getAnswer(String answerId)

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()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2016 Silverpeas. All Rights Reserved.