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

java.lang.Object
  extended by org.sakaiproject.tool.assessment.ui.bean.delivery.SectionContentsBean
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
SectionContentsBean

public class SectionContentsBean
extends Object
implements Serializable

This bean represents a Part in an assessment

See Also:
Serialized Form

Constructor Summary
SectionContentsBean()
           
SectionContentsBean(SectionDataIfc section)
           
 
Method Summary
 List getAttachmentList()
           
 String getDescription()
           
 boolean getHasAttachment()
           
 ArrayList getItemContents()
          Contents of part.
 ArrayList getItemContentsForRandomDraw()
           
 ArrayList getItemContentsForRandomQuestionOrdering()
           
 String getItemContentsSize()
          Get the size of the contents
 float getMaxPoints()
          Total points the part is worth.
 String getNonDefaultText()
           
 boolean getNoQuestions()
           
 String getNumber()
          Display part number.
 int getNumbering()
          Total number of questions to list, based on numbering scheme
 Integer getNumberToBeDrawn()
           
 String getNumberToBeDrawnString()
           
 String getNumParts()
           
 float getPoints()
          Points earned thus far for part.
 String getPointsDisplayString()
          If we display the score, return it, followed by a slash.
 Long getPoolIdToBeDrawn()
           
 String getPoolIdToBeDrawnString()
           
 String getPoolNameToBeDrawn()
           
 ArrayList getQuestionNumbers()
           
 Integer getQuestionOrdering()
           
 String getQuestionOrderingString()
           
 int getQuestions()
          Total number of questions.
 String getRandomQuestionsDrawDate()
           
 String getRandomQuestionsDrawTime()
           
 float getRoundedMaxPoints()
           
 Integer getSectionAuthorType()
           
 String getSectionAuthorTypeString()
           
 String getSectionId()
           
 String getText()
          Part description.
 String getTitle()
           
 int getUnansweredQuestions()
          Number unanswered.
 boolean isShowStudentQuestionScore()
          Show the student score currently earned?
static float roundTo2Decimals(float points)
           
 void setAttachmentList(List attachmentList)
           
 void setDescription(String newDesc)
           
 void setItemContents(ArrayList itemContents)
          Contents of part.
 void setItemContentsSize(String dummy)
          Set the size of the contents
 void setMaxPoints(float maxPoints)
          Total points the part is worth.
 void setMetaData(SectionDataIfc section)
           
 void setNoQuestions(boolean noQuestions)
           
 void setNumber(String number)
          Display part number.
 void setNumbering(int newNumbering)
          Total number of questions to list, based on numbering scheme
 void setNumberToBeDrawn(Integer param)
           
 void setNumParts(String newNum)
           
 void setPoints(float points)
          Points earned thus far for part.
 void setPoolIdToBeDrawn(Long param)
           
 void setPoolNameToBeDrawn(String param)
           
 void setQuestionNumbers()
           
 void setQuestionOrdering(Integer param)
           
 void setQuestions(int questions)
          Total number of questions.
 void setRandomQuestionsDrawDate(String randomQuestionsDrawDate)
           
 void setRandomQuestionsDrawTime(String randomQuestionsDrawTime)
           
 void setSectionAuthorType(Integer param)
           
 void setSectionId(String sectionId)
          Part description.
 void setShowStudentQuestionScore(boolean showStudentQuestionScore)
          Set the student score currently earned.
 void setText(String text)
          Part description.
 void setTitle(String title)
           
 void setUnansweredQuestions(int unansweredQuestions)
          Number unanswered.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SectionContentsBean

public SectionContentsBean()

SectionContentsBean

public SectionContentsBean(SectionDataIfc section)
Method Detail

getText

public String getText()
Part description.

Returns:
Part description.

getNonDefaultText

public String getNonDefaultText()

setText

public void setText(String text)
Part description.

Parameters:
text - Part description.

getPoints

public float getPoints()
Points earned thus far for part.

Returns:
the points

setPoints

public void setPoints(float points)
Points earned thus far for part.

Parameters:
points -

getUnansweredQuestions

public int getUnansweredQuestions()
Number unanswered.

Returns:
total unanswered.

setUnansweredQuestions

public void setUnansweredQuestions(int unansweredQuestions)
Number unanswered.

Parameters:
unansweredQuestions -

getMaxPoints

public float getMaxPoints()
Total points the part is worth.

Returns:
max total points for part

getRoundedMaxPoints

public float getRoundedMaxPoints()

setMaxPoints

public void setMaxPoints(float maxPoints)
Total points the part is worth.

Parameters:
maxPoints - points the part is worth.

getQuestions

public int getQuestions()
Total number of questions.

Returns:
total number of questions

setQuestions

public void setQuestions(int questions)
Total number of questions.

Parameters:
questions - number of questions

getNumbering

public int getNumbering()
Total number of questions to list, based on numbering scheme

Returns:
total number of questions

setNumbering

public void setNumbering(int newNumbering)
Total number of questions to list, based on numbering scheme

Parameters:
questions - number of questions

getItemContents

public ArrayList getItemContents()
Contents of part.

Returns:
item contents of part.

getItemContentsForRandomDraw

public ArrayList getItemContentsForRandomDraw()

getItemContentsForRandomQuestionOrdering

public ArrayList getItemContentsForRandomQuestionOrdering()

setItemContents

public void setItemContents(ArrayList itemContents)
Contents of part.

Parameters:
itemContents - item contents of part.

getItemContentsSize

public String getItemContentsSize()
Get the size of the contents


setItemContentsSize

public void setItemContentsSize(String dummy)
Set the size of the contents


getNumber

public String getNumber()
Display part number.

Returns:
display numbering

setNumber

public void setNumber(String number)
Display part number.

Parameters:
number - display numbering

getTitle

public String getTitle()

setTitle

public void setTitle(String title)

getQuestionNumbers

public ArrayList getQuestionNumbers()

setQuestionNumbers

public void setQuestionNumbers()

setMetaData

public void setMetaData(SectionDataIfc section)

getSectionId

public String getSectionId()

setSectionId

public void setSectionId(String sectionId)
Part description.

Parameters:
text - Part description.

getNumParts

public String getNumParts()

setNumParts

public void setNumParts(String newNum)

getDescription

public String getDescription()

setDescription

public void setDescription(String newDesc)

getSectionAuthorType

public Integer getSectionAuthorType()

getSectionAuthorTypeString

public String getSectionAuthorTypeString()

setSectionAuthorType

public void setSectionAuthorType(Integer param)

getQuestionOrdering

public Integer getQuestionOrdering()

getQuestionOrderingString

public String getQuestionOrderingString()

setQuestionOrdering

public void setQuestionOrdering(Integer param)

getNumberToBeDrawn

public Integer getNumberToBeDrawn()

getNumberToBeDrawnString

public String getNumberToBeDrawnString()

setNumberToBeDrawn

public void setNumberToBeDrawn(Integer param)

getPoolIdToBeDrawn

public Long getPoolIdToBeDrawn()

getPoolIdToBeDrawnString

public String getPoolIdToBeDrawnString()

setPoolIdToBeDrawn

public void setPoolIdToBeDrawn(Long param)

setPoolNameToBeDrawn

public void setPoolNameToBeDrawn(String param)

getPoolNameToBeDrawn

public String getPoolNameToBeDrawn()

isShowStudentQuestionScore

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

Returns:
the score

setShowStudentQuestionScore

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

Parameters:
setShowStudentQuestionScore - 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)

roundTo2Decimals

public static float roundTo2Decimals(float points)

getAttachmentList

public List getAttachmentList()

setAttachmentList

public void setAttachmentList(List attachmentList)

getHasAttachment

public boolean getHasAttachment()

getNoQuestions

public boolean getNoQuestions()

setNoQuestions

public void setNoQuestions(boolean noQuestions)

getRandomQuestionsDrawDate

public String getRandomQuestionsDrawDate()

setRandomQuestionsDrawDate

public void setRandomQuestionsDrawDate(String randomQuestionsDrawDate)

getRandomQuestionsDrawTime

public String getRandomQuestionsDrawTime()

setRandomQuestionsDrawTime

public void setRandomQuestionsDrawTime(String randomQuestionsDrawTime)


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