| java.lang.Object org.sakaiproject.tool.assessment.qti.helper.item.ItemHelperBase org.sakaiproject.tool.assessment.qti.helper.item.ItemHelper20Impl
ItemHelper20Impl | public class ItemHelper20Impl extends ItemHelperBase implements ItemHelperIfc(Code) | | Copyright: Copyright (c) 2004
Organization: Sakai Project
Version for QTI 2.0 item XML, significant differences between 1.2 and 2.0
author: Ed Smiley esmiley@stanford.edu version: $Id: ItemHelper20Impl.java 9274 2006-05-10 22:50:48Z daisyf@stanford.edu $ |
ItemHelper20Impl | public ItemHelper20Impl()(Code) | | |
addCorrectAnswer | public void addCorrectAnswer(String correctAnswerLabel, Item itemXml)(Code) | | Flags an answer as correct.
Parameters: correctAnswerLabel - |
addIncorrectAnswer | public void addIncorrectAnswer(String incorrectAnswerLabel, Item itemXml)(Code) | | Parameters: incorrectAnswerLabel - Parameters: itemXml - |
addMaxScore | public void addMaxScore(Float score, Item itemXml)(Code) | | Add maximum score to item XML.
Parameters: score - Parameters: itemXml - |
addMinScore | public void addMinScore(Float score, Item itemXml)(Code) | | Add minimum score to item XML
Parameters: score - Parameters: itemXml - |
getItemType | public String getItemType(Item itemXml)(Code) | | get item type string
we use title for this for now
Parameters: itemXml - type as string |
getMetaLabelXPath | public String getMetaLabelXPath(String fieldlabel)(Code) | | assessmentItem/qtiMetadata not be permissible in QTI 2.0
this this should be used by manifest
Get the metadata field entry XPath for a given label
Parameters: fieldlabel - the XPath |
getMetaXPath | public String getMetaXPath()(Code) | | assessmentItem/qtiMetadata not be permissible in QTI 2.0
this this should be used by manifest
Get the metadata field entry XPath
the XPath |
getQtiVersion | protected int getQtiVersion()(Code) | | get QTI version
|
getText | public String getText(Item itemXml)(Code) | | Get the text for the item
Parameters: itemXml - the text |
setAnswers | public void setAnswers(ArrayList itemTextList, Item itemXml)(Code) | | Set the answer texts for item.
Parameters: itemTextList - the text(s) for item |
setFeedback | public void setFeedback(ArrayList itemTextList, Item itemXml)(Code) | | Parameters: itemTextList - the text(s) for item |
setItemTexts | public void setItemTexts(ArrayList itemTextList, Item itemXml)(Code) | | Set the (one or more) item texts.
Valid for single and multiple texts.
Parameters: itemXml - Parameters: itemText - text to be updated |
|
|