com.stratelia.webactiv.util.answer.model
Class Answer

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

public class Answer
extends Object
implements Serializable

See Also:
Serialized Form

Constructor Summary
Answer(AnswerPK pk, ForeignPK questionPK, String label, int nbPoints, boolean isSolution, String comment, int nbVoters, boolean isOpened, String image, String questionLink)
           
Answer(AnswerPK pk, ForeignPK questionPK, String label, int nbPointsPos, int nbPointsNeg, boolean isSolution, String comment, int nbVoters, boolean isOpened, String image)
           
Answer(AnswerPK pk, ForeignPK questionPK, String label, String comment, int nbVoters, boolean isOpened, String image, String questionLink)
           
 
Method Summary
 String getComment()
           
 String getImage()
           
 String getLabel()
           
 int getNbPoints()
           
 int getNbVoters()
           
 AnswerPK getPK()
           
 String getQuestionLink()
           
 ForeignPK 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(ForeignPK questionPK)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Answer

public Answer(AnswerPK pk,
              ForeignPK questionPK,
              String label,
              int nbPointsPos,
              int nbPointsNeg,
              boolean isSolution,
              String comment,
              int nbVoters,
              boolean isOpened,
              String image)

Answer

public Answer(AnswerPK pk,
              ForeignPK questionPK,
              String label,
              int nbPoints,
              boolean isSolution,
              String comment,
              int nbVoters,
              boolean isOpened,
              String image,
              String questionLink)

Answer

public Answer(AnswerPK pk,
              ForeignPK questionPK,
              String label,
              String comment,
              int nbVoters,
              boolean isOpened,
              String image,
              String questionLink)
Method Detail

setPK

public void setPK(AnswerPK pk)

setQuestionPK

public void setQuestionPK(ForeignPK 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 ForeignPK 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()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2016 Silverpeas. All Rights Reserved.