public class ItemHelper20Impl extends ItemHelperBase implements ItemHelperIfc
Copyright: Copyright (c) 2004
Organization: Sakai Project
Version for QTI 2.0 item XML, significant differences between 1.2 and 2.0
ITEM_AUDIO, ITEM_ESSAY, ITEM_FIB, ITEM_FILE, ITEM_FIN, ITEM_MATCHING, ITEM_MCMC, ITEM_MCMC_SS, ITEM_MCSC, ITEM_MXSURVEY, ITEM_SURVEY, ITEM_TFITEM_AUDIO, ITEM_ESSAY, ITEM_FIB, ITEM_FILE, ITEM_FIN, ITEM_MATCHING, ITEM_MCMC, ITEM_MCMC_SS, ITEM_MCSC, ITEM_MXSURVEY, ITEM_SURVEY, ITEM_TF, itemTypes| Constructor and Description |
|---|
ItemHelper20Impl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCorrectAnswer(String correctAnswerLabel,
Item itemXml)
Flags an answer as correct.
|
void |
addIncorrectAnswer(String incorrectAnswerLabel,
Item itemXml)
Flags an answer as NOT correct.
|
void |
addMaxScore(Float score,
Item itemXml)
Add maximum score to item XML.
|
void |
addMinScore(Float score,
Item itemXml)
Add minimum score to item XML
|
protected AuthoringXml |
getAuthoringXml()
We will have a versioned AuthoringXml in subclasses.
|
String |
getItemType(Item itemXml)
get item type string
we use title for this for now
|
String |
getMetaLabelXPath(String fieldlabel)
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
|
String |
getMetaXPath()
assessmentItem/qtiMetadata not be permissible in QTI 2.0
this this should be used by manifest
Get the metadata field entry XPath
|
protected int |
getQtiVersion()
get QTI version
|
String |
getText(Item itemXml)
Get the text for the item
|
void |
setAnswers(ArrayList itemTextList,
Item itemXml)
Set the answer texts for item.
|
void |
setFeedback(ArrayList itemTextList,
Item itemXml)
Set the feedback texts for item.
|
void |
setItemText(String itemText,
Item itemXml)
Set the (usually instructional text) for trhe item.
|
void |
setItemTexts(ArrayList itemTextList,
Item itemXml)
Set the (one or more) item texts.
|
makeItemNodeText, readTypeSurveyItem, readTypeXMLItem, readXMLDocument, updateItemXmlclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadTypeSurveyItem, readTypeXMLItem, readXMLDocument, updateItemXmlprotected AuthoringXml getAuthoringXml()
ItemHelperBasegetAuthoringXml in class ItemHelperBasepublic void addMaxScore(Float score, Item itemXml)
addMaxScore in interface ItemHelperIfcscore - itemXml - public void addMinScore(Float score, Item itemXml)
addMinScore in interface ItemHelperIfcscore - itemXml - public void addCorrectAnswer(String correctAnswerLabel, Item itemXml)
addCorrectAnswer in interface ItemHelperIfccorrectAnswerLabel - public String getMetaXPath()
getMetaXPath in interface ItemHelperIfcpublic String getMetaLabelXPath(String fieldlabel)
getMetaLabelXPath in interface ItemHelperIfcfieldlabel - public String getText(Item itemXml)
getText in interface ItemHelperIfcitemXml - public void setItemTexts(ArrayList itemTextList, Item itemXml)
setItemTexts in interface ItemHelperIfcitemXml - itemText - text to be updatedpublic String getItemType(Item itemXml)
getItemType in interface ItemHelperIfcitemXml - public void setAnswers(ArrayList itemTextList, Item itemXml)
setAnswers in interface ItemHelperIfcitemTextList - the text(s) for itempublic void setFeedback(ArrayList itemTextList, Item itemXml)
ItemHelperIfcsetFeedback in interface ItemHelperIfcitemTextList - the text(s) for itemprotected int getQtiVersion()
getQtiVersion in class ItemHelperBasepublic void addIncorrectAnswer(String incorrectAnswerLabel, Item itemXml)
ItemHelperIfcaddIncorrectAnswer in interface ItemHelperIfcincorrectAnswerLabel - itemXml - public void setItemText(String itemText, Item itemXml)
ItemHelperIfcsetItemText in interface ItemHelperIfcCopyright © 2005-2014 Sakai Project. All Rights Reserved.