|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sakaiproject.tool.assessment.qti.helper.item.ItemHelperBase
public abstract class ItemHelperBase
| Field Summary | |
|---|---|
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
|
| Fields inherited from interface org.sakaiproject.tool.assessment.qti.helper.item.ItemHelperIfc |
|---|
itemTypes |
| Constructor Summary | |
|---|---|
ItemHelperBase()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.sakaiproject.tool.assessment.qti.helper.item.ItemHelperIfc |
|---|
addCorrectAnswer, addIncorrectAnswer, addMaxScore, addMinScore, getItemType, getMetaLabelXPath, getMetaXPath, getText, setAnswers, setFeedback, setItemText, setItemTexts |
| Field Detail |
|---|
protected 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
| Constructor Detail |
|---|
public ItemHelperBase()
| Method Detail |
|---|
protected abstract AuthoringXml getAuthoringXml()
protected abstract int getQtiVersion()
public Item readXMLDocument(InputStream inputStream)
readXMLDocument in interface ItemHelperIfcinputStream - XML document stream
public Item readTypeXMLItem(Long type)
readTypeXMLItem in interface ItemHelperIfctype - item type as a TypeIfc
public 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 set
protected String makeItemNodeText(Item itemXml,
String xpath)
itemXml - xpath -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||