| org.sakaiproject.tool.assessment.qti.helper.item.ItemHelperIfc
All known Subclasses: org.sakaiproject.tool.assessment.qti.helper.item.ItemHelper20Impl, org.sakaiproject.tool.assessment.qti.helper.item.ItemHelper12Impl, org.sakaiproject.tool.assessment.qti.helper.item.ItemHelperBase,
ItemHelperIfc | public interface ItemHelperIfc (Code) | | Interface for QTI-versioned item helper implementation.
Copyright: Copyright (c) 2005
Organization: Sakai Project
author: Ed Smiley esmiley@stanford.edu version: $Id: ItemHelperIfc.java 9274 2006-05-10 22:50:48Z daisyf@stanford.edu $ |
Method Summary | |
public void | addCorrectAnswer(String correctAnswerLabel, Item itemXml) Flags an answer as correct. | public void | addIncorrectAnswer(String incorrectAnswerLabel, Item itemXml) Flags an answer as NOT correct. | public void | addMaxScore(Float score, Item itemXml) Add minimum score to item XML. | public void | addMinScore(Float score, Item itemXml) | public String | getItemType(Item itemXml) | public String | getItemTypeString(TypeIfc type) | public String | getMetaLabelXPath(String fieldlabel) | public String | getMetaXPath() | public String | getText(Item itemXml) | public Item | readTypeSurveyItem(String scaleName) Get Item Xml for a given survey item scale name. | public Item | readTypeXMLItem(Long type) Get Item Xml for a given item type as a Long . | public Item | readXMLDocument(InputStream inputStream) | public void | setAnswers(ArrayList itemTextList, Item itemXml) Set the answer texts for item. | public void | setFeedback(ArrayList itemTextList, Item itemXml) Set the feedback texts for item. | public void | setItemText(String itemText, Item itemXml) Set the (usually instructional text) for trhe item. | public void | setItemTexts(ArrayList itemTextList, Item itemXml) Set the (one or more) item texts. | public Item | updateItemXml(Item itemXml, String xpath, String value) |
ITEM_AUDIO | final public static long ITEM_AUDIO(Code) | | |
ITEM_ESSAY | final public static long ITEM_ESSAY(Code) | | |
ITEM_FIB | final public static long ITEM_FIB(Code) | | |
ITEM_FILE | final public static long ITEM_FILE(Code) | | |
ITEM_FIN | final public static long ITEM_FIN(Code) | | |
ITEM_MATCHING | final public static long ITEM_MATCHING(Code) | | |
ITEM_MCMC | final public static long ITEM_MCMC(Code) | | |
ITEM_MCSC | final public static long ITEM_MCSC(Code) | | |
ITEM_SURVEY | final public static long ITEM_SURVEY(Code) | | |
ITEM_TF | final public static long ITEM_TF(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) | | Flags an answer as NOT correct.
Parameters: correctAnswerLabel - |
addMaxScore | public void addMaxScore(Float score, Item itemXml)(Code) | | Add minimum score to item XML.
Parameters: score - Parameters: itemXml - |
addMinScore | public void addMinScore(Float score, Item itemXml)(Code) | | Add maximum score to item XML
Parameters: score - Parameters: itemXml - |
getItemType | public String getItemType(Item itemXml)(Code) | | Parameters: itemXml - type as string |
getItemTypeString | public String getItemTypeString(TypeIfc type)(Code) | | Get item type string which is used for the title of a given item type
Parameters: type - |
getMetaLabelXPath | public String getMetaLabelXPath(String fieldlabel)(Code) | | Get the metadata field entry XPath for a given label
Parameters: fieldlabel - the XPath |
getMetaXPath | public String getMetaXPath()(Code) | | Get the metadata field entry XPath
the XPath |
getText | public String getText(Item itemXml)(Code) | | Get the text for the item
Parameters: itemXml - the text |
readTypeSurveyItem | public Item readTypeSurveyItem(String scaleName)(Code) | | Get Item Xml for a given survey item scale name.
Parameters: scaleName - |
readTypeXMLItem | public Item readTypeXMLItem(Long type)(Code) | | Get Item Xml for a given item type as a Long .
Parameters: type - item type as a Long |
readXMLDocument | public Item readXMLDocument(InputStream inputStream)(Code) | | Read XML document from input stream
Parameters: inputStream - XML docuemnt stream item XML |
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) | | Set the feedback texts for item.
Parameters: itemTextList - the text(s) for item |
setItemText | public void setItemText(String itemText, Item itemXml)(Code) | | Set the (usually instructional text) for trhe item.
Parameters: itemText - Parameters: itemXml - |
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 |
updateItemXml | public Item updateItemXml(Item itemXml, String xpath, String value)(Code) | | DOCUMENTATION PENDING
Parameters: itemXml - item xml to update Parameters: xpath - the XPath Parameters: value - value to set the item xml |
|
|