org.sakaiproject.tool.assessment.ui.bean.delivery
Class ItemContentsBean

java.lang.Object
  extended by org.sakaiproject.tool.assessment.ui.bean.delivery.ItemContentsBean
All Implemented Interfaces:
Serializable

public class ItemContentsBean
extends Object
implements Serializable

This bean represents an item

See Also:
Serialized Form

Constructor Summary
ItemContentsBean()
           
ItemContentsBean(ItemDataIfc itemData)
           
 
Method Summary
 boolean getAddComment()
           
 String getAnswerKeyTF()
           
 ArrayList getAnswers()
           
 Integer getAttemptsRemaining()
           
 String[] getColumnArray()
           
 List<Integer> getColumnIndexList()
           
 String getCommentField()
           
 float getDiscount()
          String representation of the rounded discount.
 String getDiscountForEdit()
          String representation of the rounded Discount.
 Integer getDuration()
           
 float getExactDiscount()
          String representation of the exact points (unrounded discount)
 float getExactPoints()
          String representation of the exact points (unrounded points)
 String getFeedback()
          item level feedback
 boolean getFeedbackIsNotEmpty()
           
 ArrayList getFibArray()
           
 ArrayList getFinArray()
           
 boolean getForceRanking()
           
 String getGradingComment()
          grading comment
 boolean getGradingCommentIsNotEmpty()
           
 boolean getHasAttachment()
           
 boolean getHasItemGradingAttachment()
           
 boolean getHasNoMedia()
           
 String getInstruction()
           
 boolean getIsInvalidFinInput()
           
 boolean getIsInvalidSALengthInput()
           
 boolean getIsTrue()
          If this is a true-false question return true if it is true, else false.
 ItemDataIfc getItemData()
          the item data itself
 List getItemGradingAttachmentList()
           
 ArrayList getItemGradingDataArray()
           
 Long getItemGradingIdForFilePicker()
           
 String getKey()
           
 String getKeyInUnicode()
           
 ArrayList getMatchingArray()
           
 ArrayList getMatrixArray()
           
 float getMaxPoints()
          String representation of the max points available for this question.
 ArrayList getMediaArray()
           
 boolean getModelAnswerIsNotEmpty()
           
 int getNumber()
          question number
 float getPoints()
          String representation of the rounded points.
 String getPointsDisplayString()
          If we display the score, return it, followed by a slash.
 String getPointsForEdit()
          String representation of the rounded points.
 String getRationale()
           
 String getRationaleForDisplay()
           
 int getRelativeWidth()
           
 String getResponseId()
           
 String[] getResponseIds()
           
 String getResponseText()
           
 String getResponseTextForDisplay()
           
 String getResponseTextPlain()
           
 boolean getReview()
           
 float getRoundedMaxPoints()
          String representation of the max points available for this question.
 String getSaCharCount()
           
 ArrayList getSelectionArray()
           
 String getSequence()
           
 ArrayList getShuffledAnswers()
           
 String getStrippedKey()
           
 String getStrippedText()
          This strips text of tags for the table of contents.
 String getStudentComment()
           
 String getText()
          In the case of an ordinary question, this will obtain the a set of text with one element and return it; in FIB return multiple elements separated by underscores.
 Integer getTriesAllowed()
           
 boolean getUnanswered()
           
 Float getUpdatedScore()
           
 boolean isNotEmpty(String wyzText)
           
 boolean isShowStudentQuestionScore()
          Show the student question score currently earned?
 boolean isShowStudentScore()
          Show the student score currently earned?
 boolean isUnanswered()
          unanswered?
 void setAddComment(boolean param)
           
 void setAnswers(ArrayList list)
           
 void setAttachment(Long itemGradingId)
           
 void setAttemptsRemaining(Integer param)
           
 void setColumnArray(String[] columnArray)
           
 void setColumnIndexList(List<Integer> columnIndexList)
           
 void setCommentField(String param)
           
 void setDiscount(float discount)
          String representation of the Discount.
 void setDiscountForEdit(String discountForEdit)
          String representation of the discount.
 void setDuration(Integer param)
           
 void setFeedback(String feedback)
          item level feedback
 void setFibArray(ArrayList newArray)
           
 void setFinArray(ArrayList newArray)
           
 void setForceRanking(boolean forceRanking)
           
 void setGradingComment(String gradingComment)
          grading comment
 void setInstruction(String instruction)
           
 void setIsInvalidFinInput(boolean isInvalidFinInput)
           
 void setIsInvalidSALengthInput(boolean isInvalidSALengthInput)
           
 void setItemData(ItemDataIfc itemData)
          the item data itself
 void setItemGradingAttachmentList(List itemGradingAttachmentList)
           
 void setItemGradingDataArray(ArrayList newArray)
           
 void setItemGradingIdForFilePicker(Long itemGradingIdForFilePicker)
           
 void setKey(String newKey)
           
 void setMatchingArray(ArrayList newArray)
           
 void setMatrixArray(ArrayList newArray)
           
 void setMaxPoints(float maxPoints)
          String representation of the max points available for this question.
 void setNumber(int number)
          question number
 void setPoints(float points)
          String representation of the points.
 void setPointsForEdit(String pointsForEdit)
          String representation of the points.
 void setRationale(String newRationale)
           
 void setRelativeWidth(int param)
           
 void setResponseId(String presponseId)
           
 void setResponseIds(String[] presponseIds)
           
 void setResponseText(String presponseId)
           
 void setResponseTextPlain(String presponseId)
           
 void setReview(boolean preview)
          Does this need review?
 void setSaCharCount(String saCharCount)
           
 void setSelectionArray(ArrayList newArray)
           
 void setSequence(String newSequence)
           
 void setShowStudentQuestionScore(boolean param)
          Set the student question score currently earned.
 void setShowStudentScore(boolean showStudentScore)
          Set the student score currently earned.
 void setShuffledAnswers(ArrayList newAnswers)
           
 void setStudentComment(String param)
           
 void setTriesAllowed(Integer param)
           
 void setUnanswered(boolean unanswered)
          unanswered?
 void setUpdatedScore(Float score)
           
 String strip(String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItemContentsBean

public ItemContentsBean()

ItemContentsBean

public ItemContentsBean(ItemDataIfc itemData)
Method Detail

getText

public String getText()
In the case of an ordinary question, this will obtain the a set of text with one element and return it; in FIB return multiple elements separated by underscores.

Returns:
text of question

getStrippedText

public String getStrippedText()
This strips text of tags for the table of contents.


getModelAnswerIsNotEmpty

public boolean getModelAnswerIsNotEmpty()

getFeedbackIsNotEmpty

public boolean getFeedbackIsNotEmpty()

getGradingCommentIsNotEmpty

public boolean getGradingCommentIsNotEmpty()

getStrippedKey

public String getStrippedKey()

getPoints

public float getPoints()
String representation of the rounded points.

Returns:
String representation of the points.

getExactPoints

public float getExactPoints()
String representation of the exact points (unrounded points)

Returns:
String representation of the points.

setPoints

public void setPoints(float points)
String representation of the points.

Parameters:
points - String representation of the points.

getPointsForEdit

public String getPointsForEdit()
String representation of the rounded points.

Returns:
String representation of the points.

setPointsForEdit

public void setPointsForEdit(String pointsForEdit)
String representation of the points.

Parameters:
points - String representation of the points.

getDiscount

public float getDiscount()
String representation of the rounded discount.

Returns:
String representation of the discount.

getExactDiscount

public float getExactDiscount()
String representation of the exact points (unrounded discount)

Returns:
String representation of the discount.

setDiscount

public void setDiscount(float discount)
String representation of the Discount.

Parameters:
discount - String representation of the Discount.

getDiscountForEdit

public String getDiscountForEdit()
String representation of the rounded Discount.

Returns:
String representation of the Discount.

setDiscountForEdit

public void setDiscountForEdit(String discountForEdit)
String representation of the discount.

Parameters:
discount - String representation of the discount.

getReview

public boolean getReview()

setReview

public void setReview(boolean preview)
Does this need review?

Parameters:
review - if true mark for review

isUnanswered

public boolean isUnanswered()
unanswered?

Returns:

setUnanswered

public void setUnanswered(boolean unanswered)
unanswered?

Parameters:
unanswered -

getUnanswered

public boolean getUnanswered()

getMaxPoints

public float getMaxPoints()
String representation of the max points available for this question.

Returns:
String representation of the max points.

getRoundedMaxPoints

public float getRoundedMaxPoints()
String representation of the max points available for this question.

Returns:
String representation of the max points.

setMaxPoints

public void setMaxPoints(float maxPoints)
String representation of the max points available for this question.

Parameters:
maxPoints - String representation of the max points available

getNumber

public int getNumber()
question number

Returns:

setNumber

public void setNumber(int number)
question number

Parameters:
number -

getItemData

public ItemDataIfc getItemData()
the item data itself

Returns:

setItemData

public void setItemData(ItemDataIfc itemData)
the item data itself

Parameters:
itemData -

getGradingComment

public String getGradingComment()
grading comment

Returns:
grading comment

setGradingComment

public void setGradingComment(String gradingComment)
grading comment

Parameters:
gradingComment - grading comment

getFeedback

public String getFeedback()
item level feedback

Returns:
the item level feedback

setFeedback

public void setFeedback(String feedback)
item level feedback

Parameters:
feedback - the item level feedback

getIsTrue

public boolean getIsTrue()
If this is a true-false question return true if it is true, else false. If it is not a true-false question return false.

Returns:
true if this is a true true-false question

getItemGradingDataArray

public ArrayList getItemGradingDataArray()

setItemGradingDataArray

public void setItemGradingDataArray(ArrayList newArray)

getResponseId

public String getResponseId()

setResponseId

public void setResponseId(String presponseId)

getResponseIds

public String[] getResponseIds()

setResponseIds

public void setResponseIds(String[] presponseIds)

getResponseText

public String getResponseText()

getResponseTextPlain

public String getResponseTextPlain()

getResponseTextForDisplay

public String getResponseTextForDisplay()

setResponseTextPlain

public void setResponseTextPlain(String presponseId)

setResponseText

public void setResponseText(String presponseId)

getMatchingArray

public ArrayList getMatchingArray()

setMatchingArray

public void setMatchingArray(ArrayList newArray)

getFibArray

public ArrayList getFibArray()

setFibArray

public void setFibArray(ArrayList newArray)

getFinArray

public ArrayList getFinArray()

setFinArray

public void setFinArray(ArrayList newArray)

getSelectionArray

public ArrayList getSelectionArray()

setSelectionArray

public void setSelectionArray(ArrayList newArray)

getMatrixArray

public ArrayList getMatrixArray()

setMatrixArray

public void setMatrixArray(ArrayList newArray)

getColumnIndexList

public List<Integer> getColumnIndexList()

setColumnIndexList

public void setColumnIndexList(List<Integer> columnIndexList)

getColumnArray

public String[] getColumnArray()

setColumnArray

public void setColumnArray(String[] columnArray)

getForceRanking

public boolean getForceRanking()

setForceRanking

public void setForceRanking(boolean forceRanking)

getRelativeWidth

public int getRelativeWidth()

setRelativeWidth

public void setRelativeWidth(int param)

getAddComment

public boolean getAddComment()

setAddComment

public void setAddComment(boolean param)

getCommentField

public String getCommentField()

setCommentField

public void setCommentField(String param)

getStudentComment

public String getStudentComment()

setStudentComment

public void setStudentComment(String param)

getAnswers

public ArrayList getAnswers()

setAnswers

public void setAnswers(ArrayList list)

setInstruction

public void setInstruction(String instruction)

getInstruction

public String getInstruction()

setRationale

public void setRationale(String newRationale)

getRationale

public String getRationale()

getRationaleForDisplay

public String getRationaleForDisplay()

getKey

public String getKey()

setKey

public void setKey(String newKey)

getSequence

public String getSequence()

setSequence

public void setSequence(String newSequence)

getShuffledAnswers

public ArrayList getShuffledAnswers()

setShuffledAnswers

public void setShuffledAnswers(ArrayList newAnswers)

getTriesAllowed

public Integer getTriesAllowed()

setTriesAllowed

public void setTriesAllowed(Integer param)

getAttemptsRemaining

public Integer getAttemptsRemaining()

setAttemptsRemaining

public void setAttemptsRemaining(Integer param)

getDuration

public Integer getDuration()

setDuration

public void setDuration(Integer param)

getMediaArray

public ArrayList getMediaArray()

isShowStudentScore

public boolean isShowStudentScore()
Show the student score currently earned?

Returns:
the score

setShowStudentScore

public void setShowStudentScore(boolean showStudentScore)
Set the student score currently earned.

Parameters:
showStudentScore - true/false Show the student score currently earned?

isShowStudentQuestionScore

public boolean isShowStudentQuestionScore()
Show the student question score currently earned?

Returns:
the score

setShowStudentQuestionScore

public void setShowStudentQuestionScore(boolean param)
Set the student question score currently earned.

Parameters:
param - true/false Show the student score currently earned?

getPointsDisplayString

public String getPointsDisplayString()
If we display the score, return it, followed by a slash.

Returns:
either, a) the score followed by a slash, or, b) "" (empty string)

strip

public String strip(String text)

isNotEmpty

public boolean isNotEmpty(String wyzText)

getKeyInUnicode

public String getKeyInUnicode()

getHasAttachment

public boolean getHasAttachment()

getUpdatedScore

public Float getUpdatedScore()

setUpdatedScore

public void setUpdatedScore(Float score)

getHasNoMedia

public boolean getHasNoMedia()

getAnswerKeyTF

public String getAnswerKeyTF()

setAttachment

public void setAttachment(Long itemGradingId)

getItemGradingAttachmentList

public List getItemGradingAttachmentList()

setItemGradingAttachmentList

public void setItemGradingAttachmentList(List itemGradingAttachmentList)

getHasItemGradingAttachment

public boolean getHasItemGradingAttachment()

getItemGradingIdForFilePicker

public Long getItemGradingIdForFilePicker()

setItemGradingIdForFilePicker

public void setItemGradingIdForFilePicker(Long itemGradingIdForFilePicker)

setIsInvalidFinInput

public void setIsInvalidFinInput(boolean isInvalidFinInput)

getIsInvalidFinInput

public boolean getIsInvalidFinInput()

setIsInvalidSALengthInput

public void setIsInvalidSALengthInput(boolean isInvalidSALengthInput)

getIsInvalidSALengthInput

public boolean getIsInvalidSALengthInput()

getSaCharCount

public String getSaCharCount()

setSaCharCount

public void setSaCharCount(String saCharCount)


Copyright © 2005-2012 Sakai Project. All Rights Reserved.