Class Answer
- java.lang.Object
-
- org.silverpeas.core.questioncontainer.answer.model.Answer
-
- All Implemented Interfaces:
Serializable
public class Answer extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Answer(AnswerPK pk, ResourceReference questionPK, String label, int nbPoints, boolean isSolution, String comment, int nbVoters, boolean isOpened, String image, String questionLink)
Answer(AnswerPK pk, ResourceReference questionPK, String label, int nbPointsPos, int nbPointsNeg, boolean isSolution, String comment, int nbVoters, boolean isOpened, String image)
Deprecated.Answer(AnswerPK pk, ResourceReference questionPK, String label, String comment, int nbVoters, boolean isOpened, String image, String questionLink)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getComment()
String
getImage()
String
getLabel()
int
getNbPoints()
int
getNbVoters()
BigDecimal
getPercent(int nbParticipants)
AnswerPK
getPK()
String
getQuestionLink()
ResourceReference
getQuestionPK()
boolean
isOpened()
boolean
isSolution()
void
setComment(String comment)
void
setImage(String image)
void
setIsOpened(boolean isOpened)
void
setIsSolution(boolean isSolution)
void
setLabel(String label)
void
setNbPoints(int nbPoints)
void
setNbVoters(int nbVoters)
void
setPK(AnswerPK pk)
void
setQuestionLink(String questionLink)
void
setQuestionPK(ResourceReference questionPK)
String
toString()
-
-
-
Constructor Detail
-
Answer
public Answer(AnswerPK pk, ResourceReference questionPK, String label, int nbPointsPos, int nbPointsNeg, boolean isSolution, String comment, int nbVoters, boolean isOpened, String image)
Deprecated.
-
Answer
public Answer(AnswerPK pk, ResourceReference questionPK, String label, int nbPoints, boolean isSolution, String comment, int nbVoters, boolean isOpened, String image, String questionLink)
-
-
Method Detail
-
setPK
public void setPK(AnswerPK pk)
-
setQuestionPK
public void setQuestionPK(ResourceReference questionPK)
-
setLabel
public void setLabel(String label)
-
setNbVoters
public void setNbVoters(int nbVoters)
-
setNbPoints
public void setNbPoints(int nbPoints)
-
setIsSolution
public void setIsSolution(boolean isSolution)
-
setComment
public void setComment(String comment)
-
setIsOpened
public void setIsOpened(boolean isOpened)
-
setImage
public void setImage(String image)
-
setQuestionLink
public void setQuestionLink(String questionLink)
-
getPK
public AnswerPK getPK()
-
getQuestionPK
public ResourceReference getQuestionPK()
-
getLabel
public String getLabel()
-
getNbVoters
public int getNbVoters()
-
getNbPoints
public int getNbPoints()
-
isSolution
public boolean isSolution()
-
getComment
public String getComment()
-
isOpened
public boolean isOpened()
-
getImage
public String getImage()
-
getQuestionLink
public String getQuestionLink()
-
getPercent
public BigDecimal getPercent(int nbParticipants)
-
-