public abstract class ItemHelperBase extends Object implements ItemHelperIfc
| Modifier and Type | Field and Description |
|---|---|
protected static long |
ITEM_AUDIO |
protected static long |
ITEM_ESSAY |
protected static long |
ITEM_FIB |
protected static long |
ITEM_FILE |
protected static long |
ITEM_FIN |
protected static long |
ITEM_MATCHING |
protected static long |
ITEM_MCMC |
protected static long |
ITEM_MCMC_SS |
protected static long |
ITEM_MCSC |
protected static long |
ITEM_MXSURVEY |
protected static long |
ITEM_SURVEY |
protected static long |
ITEM_TF |
itemTypes| Constructor and Description |
|---|
ItemHelperBase() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract AuthoringXml |
getAuthoringXml()
We will have a versioned AuthoringXml in subclasses.
|
protected abstract int |
getQtiVersion()
Get the QTI version for each subclass.
|
protected String |
makeItemNodeText(Item itemXml,
String xpath)
Concatenate nodes for xpath
|
Item |
readTypeSurveyItem(String scaleName)
Get Item Xml for a given survey item scale name.
|
Item |
readTypeXMLItem(Long type)
Get Item Xml for a given item type as a TypeIfc.
|
Item |
readXMLDocument(InputStream inputStream)
Read an item XML document from a stream into an Item XML object
|
Item |
updateItemXml(Item itemXml,
String xpath,
String value)
Update path with value
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddCorrectAnswer, addIncorrectAnswer, addMaxScore, addMinScore, getItemType, getMetaLabelXPath, getMetaXPath, getText, setAnswers, setFeedback, setItemText, setItemTextsprotected static final long ITEM_AUDIO
protected static final long ITEM_ESSAY
protected static final long ITEM_FILE
protected static final long ITEM_FIB
protected static final long ITEM_FIN
protected static final long ITEM_MCSC
protected static final long ITEM_SURVEY
protected static final long ITEM_MCMC
protected static final long ITEM_MCMC_SS
protected static final long ITEM_TF
protected static final long ITEM_MATCHING
protected static final long ITEM_MXSURVEY
protected abstract AuthoringXml getAuthoringXml()
protected abstract int getQtiVersion()
public Item readXMLDocument(InputStream inputStream)
readXMLDocument in interface ItemHelperIfcinputStream - XML document streampublic Item readTypeXMLItem(Long type)
readTypeXMLItem in interface ItemHelperIfctype - item type as a TypeIfcpublic Item readTypeSurveyItem(String scaleName)
readTypeSurveyItem in interface ItemHelperIfcscaleName - public Item updateItemXml(Item itemXml, String xpath, String value)
updateItemXml in interface ItemHelperIfcitemXml - the item xmlxpath - the xpathvalue - the value to setCopyright © 2005-2014 Sakai Project. All Rights Reserved.