|
||||||||||
| 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
org.sakaiproject.tool.assessment.qti.helper.item.ItemHelper20Impl
public class ItemHelper20Impl
Copyright: Copyright (c) 2004
Organization: Sakai Project
Version for QTI 2.0 item XML, significant differences between 1.2 and 2.0
| Field Summary |
|---|
| Fields inherited from class org.sakaiproject.tool.assessment.qti.helper.item.ItemHelperBase |
|---|
ITEM_AUDIO, ITEM_ESSAY, ITEM_FIB, ITEM_FILE, ITEM_FIN, ITEM_MATCHING, ITEM_MCMC, ITEM_MCMC_SS, ITEM_MCSC, ITEM_MXSURVEY, ITEM_SURVEY, ITEM_TF |
| Fields inherited from interface org.sakaiproject.tool.assessment.qti.helper.item.ItemHelperIfc |
|---|
ITEM_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 Summary | |
|---|---|
ItemHelper20Impl()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.sakaiproject.tool.assessment.qti.helper.item.ItemHelperBase |
|---|
makeItemNodeText, readTypeSurveyItem, readTypeXMLItem, readXMLDocument, updateItemXml |
| 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 |
|---|
readTypeSurveyItem, readTypeXMLItem, readXMLDocument, updateItemXml |
| Constructor Detail |
|---|
public ItemHelper20Impl()
| Method Detail |
|---|
protected AuthoringXml getAuthoringXml()
ItemHelperBase
getAuthoringXml in class ItemHelperBase
public 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 item
public void setFeedback(ArrayList itemTextList,
Item itemXml)
ItemHelperIfc
setFeedback in interface ItemHelperIfcitemTextList - the text(s) for itemprotected int getQtiVersion()
getQtiVersion in class ItemHelperBase
public void addIncorrectAnswer(String incorrectAnswerLabel,
Item itemXml)
ItemHelperIfc
addIncorrectAnswer in interface ItemHelperIfcincorrectAnswerLabel - itemXml -
public void setItemText(String itemText,
Item itemXml)
ItemHelperIfc
setItemText in interface ItemHelperIfc
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||