org.sakaiproject.tool.assessment.data.dao.assessment
Class Answer

java.lang.Object
  extended byorg.sakaiproject.tool.assessment.data.dao.assessment.Answer
All Implemented Interfaces:
AnswerIfc, Comparable, Serializable

public class Answer
extends Object
implements Serializable, AnswerIfc, Comparable

See Also:
Serialized Form

Constructor Summary
Answer()
           
Answer(ItemTextIfc itemText, String text, Long sequence, String label, Boolean isCorrect, String grade, Float score)
           
Answer(ItemTextIfc itemText, String text, Long sequence, String label, Boolean isCorrect, String grade, Float score, Set answerFeedbackSet)
           
 
Method Summary
 int compareTo(Object o)
           
 String getAnswerFeedback(String typeId)
           
 ArrayList getAnswerFeedbackArray()
           
 HashMap getAnswerFeedbackMap()
           
 Set getAnswerFeedbackSet()
           
 boolean getCorrectAnswerFbIsNotEmpty()
           
 String getCorrectAnswerFeedback()
           
 boolean getGeneralAnswerFbIsNotEmpty()
           
 String getGeneralAnswerFeedback()
           
 String getGrade()
           
 Long getId()
           
 boolean getIncorrectAnswerFbIsNotEmpty()
           
 String getInCorrectAnswerFeedback()
           
 Boolean getIsCorrect()
           
 ItemDataIfc getItem()
           
 ItemTextIfc getItemText()
           
 String getLabel()
           
 Float getScore()
           
 Long getSequence()
           
 String getText()
           
 boolean getTextIsNotEmpty()
           
 String getTheAnswerFeedback()
           
 void setAnswerFeedbackSet(Set answerFeedbackSet)
           
 void setGrade(String grade)
           
 void setId(Long id)
           
 void setIsCorrect(Boolean isCorrect)
           
 void setItem(ItemDataIfc item)
           
 void setItemText(ItemTextIfc itemText)
           
 void setLabel(String label)
           
 void setScore(Float score)
           
 void setSequence(Long sequence)
           
 void setText(String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Answer

public Answer()

Answer

public Answer(ItemTextIfc itemText,
              String text,
              Long sequence,
              String label,
              Boolean isCorrect,
              String grade,
              Float score)

Answer

public Answer(ItemTextIfc itemText,
              String text,
              Long sequence,
              String label,
              Boolean isCorrect,
              String grade,
              Float score,
              Set answerFeedbackSet)
Method Detail

getId

public Long getId()
Specified by:
getId in interface AnswerIfc

setId

public void setId(Long id)
Specified by:
setId in interface AnswerIfc

getItemText

public ItemTextIfc getItemText()
Specified by:
getItemText in interface AnswerIfc

setItemText

public void setItemText(ItemTextIfc itemText)
Specified by:
setItemText in interface AnswerIfc

getItem

public ItemDataIfc getItem()
Specified by:
getItem in interface AnswerIfc

setItem

public void setItem(ItemDataIfc item)
Specified by:
setItem in interface AnswerIfc

getText

public String getText()
Specified by:
getText in interface AnswerIfc

setText

public void setText(String text)
Specified by:
setText in interface AnswerIfc

getSequence

public Long getSequence()
Specified by:
getSequence in interface AnswerIfc

setSequence

public void setSequence(Long sequence)
Specified by:
setSequence in interface AnswerIfc

getLabel

public String getLabel()
Specified by:
getLabel in interface AnswerIfc

setLabel

public void setLabel(String label)
Specified by:
setLabel in interface AnswerIfc

getIsCorrect

public Boolean getIsCorrect()
Specified by:
getIsCorrect in interface AnswerIfc

setIsCorrect

public void setIsCorrect(Boolean isCorrect)
Specified by:
setIsCorrect in interface AnswerIfc

getGrade

public String getGrade()
Specified by:
getGrade in interface AnswerIfc

setGrade

public void setGrade(String grade)
Specified by:
setGrade in interface AnswerIfc

getScore

public Float getScore()
Specified by:
getScore in interface AnswerIfc

setScore

public void setScore(Float score)
Specified by:
setScore in interface AnswerIfc

getAnswerFeedbackSet

public Set getAnswerFeedbackSet()
Specified by:
getAnswerFeedbackSet in interface AnswerIfc

getAnswerFeedbackArray

public ArrayList getAnswerFeedbackArray()
Specified by:
getAnswerFeedbackArray in interface AnswerIfc

setAnswerFeedbackSet

public void setAnswerFeedbackSet(Set answerFeedbackSet)
Specified by:
setAnswerFeedbackSet in interface AnswerIfc

getAnswerFeedback

public String getAnswerFeedback(String typeId)
Specified by:
getAnswerFeedback in interface AnswerIfc

getAnswerFeedbackMap

public HashMap getAnswerFeedbackMap()
Specified by:
getAnswerFeedbackMap in interface AnswerIfc

getCorrectAnswerFeedback

public String getCorrectAnswerFeedback()
Specified by:
getCorrectAnswerFeedback in interface AnswerIfc

getInCorrectAnswerFeedback

public String getInCorrectAnswerFeedback()
Specified by:
getInCorrectAnswerFeedback in interface AnswerIfc

getGeneralAnswerFeedback

public String getGeneralAnswerFeedback()
Specified by:
getGeneralAnswerFeedback in interface AnswerIfc

getTheAnswerFeedback

public String getTheAnswerFeedback()

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable

getGeneralAnswerFbIsNotEmpty

public boolean getGeneralAnswerFbIsNotEmpty()

getCorrectAnswerFbIsNotEmpty

public boolean getCorrectAnswerFbIsNotEmpty()

getIncorrectAnswerFbIsNotEmpty

public boolean getIncorrectAnswerFbIsNotEmpty()

getTextIsNotEmpty

public boolean getTextIsNotEmpty()