|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ItemHelperIfc
Interface for QTI-versioned item helper implementation.
Copyright: Copyright (c) 2005
Organization: Sakai Project
| Field Summary | |
|---|---|
static long |
ITEM_AUDIO
|
static long |
ITEM_ESSAY
|
static long |
ITEM_FIB
|
static long |
ITEM_FILE
|
static long |
ITEM_FIN
|
static long |
ITEM_MATCHING
|
static long |
ITEM_MCMC
|
static long |
ITEM_MCMC_SS
|
static long |
ITEM_MCSC
|
static long |
ITEM_MXSURVEY
|
static long |
ITEM_SURVEY
|
static long |
ITEM_TF
|
static String[] |
itemTypes
|
| 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 minimum score to item XML. |
void |
addMinScore(Float score,
Item itemXml)
Add maximum score to item XML |
String |
getItemType(Item itemXml)
|
String |
getMetaLabelXPath(String fieldlabel)
Get the metadata field entry XPath for a given label |
String |
getMetaXPath()
Get the metadata field entry XPath |
String |
getText(Item itemXml)
Get the text for the item |
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 Long . |
Item |
readXMLDocument(InputStream inputStream)
Read XML document from input stream |
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. |
Item |
updateItemXml(Item itemXml,
String xpath,
String value)
DOCUMENTATION PENDING |
| Field Detail |
|---|
static final long ITEM_AUDIO
static final long ITEM_ESSAY
static final long ITEM_FILE
static final long ITEM_FIB
static final long ITEM_FIN
static final long ITEM_MCSC
static final long ITEM_SURVEY
static final long ITEM_MCMC
static final long ITEM_MCMC_SS
static final long ITEM_TF
static final long ITEM_MATCHING
static final long ITEM_MXSURVEY
static final String[] itemTypes
| Method Detail |
|---|
Item readTypeXMLItem(Long type)
type - item type as a Long
Item readTypeSurveyItem(String scaleName)
scaleName -
Item readXMLDocument(InputStream inputStream)
inputStream - XML docuemnt stream
Item updateItemXml(Item itemXml,
String xpath,
String value)
itemXml - item xml to updatexpath - the XPathvalue - value to set
void addMaxScore(Float score,
Item itemXml)
score - itemXml -
void addMinScore(Float score,
Item itemXml)
score - itemXml -
void addCorrectAnswer(String correctAnswerLabel,
Item itemXml)
correctAnswerLabel -
void addIncorrectAnswer(String incorrectAnswerLabel,
Item itemXml)
correctAnswerLabel - String getMetaXPath()
String getMetaLabelXPath(String fieldlabel)
fieldlabel -
String getText(Item itemXml)
itemXml -
void setItemTexts(ArrayList itemTextList,
Item itemXml)
itemXml - itemText - text to be updated
void setItemText(String itemText,
Item itemXml)
itemText - itemXml - String getItemType(Item itemXml)
itemXml -
void setAnswers(ArrayList itemTextList,
Item itemXml)
itemTextList - the text(s) for item
void setFeedback(ArrayList itemTextList,
Item itemXml)
itemTextList - the text(s) for item
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||