public interface ItemHelperIfc
Copyright: Copyright (c) 2005
Organization: Sakai Project
| Modifier and Type | Field and Description |
|---|---|
static long |
ITEM_AUDIO |
static long |
ITEM_CALCQ |
static long |
ITEM_EMI |
static long |
ITEM_ESSAY |
static long |
ITEM_FIB |
static long |
ITEM_FILE |
static long |
ITEM_FIN |
static long |
ITEM_IMAGMQ |
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 |
| Modifier and Type | Method and Description |
|---|---|
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(Double score,
Item itemXml)
Add minimum score to item XML.
|
void |
addMinScore(Double 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(List<ItemTextIfc> itemTextList,
Item itemXml)
Set the answer texts for item.
|
void |
setAttachments(Set<? extends AttachmentIfc> attachmentSet,
Item item) |
void |
setFeedback(List<ItemTextIfc> itemTextList,
Item itemXml)
Set the feedback texts for item.
|
void |
setItemLabel(String itemLabel,
Item itemXml)
Set the label for the item.
|
void |
setItemText(String itemText,
Item itemXml)
Set the (usually instructional text) for trhe item.
|
void |
setItemText(String itemText,
String flowClass,
Item itemXml)
Set the (usually instructional text) for the item for the specified flow.
|
void |
setItemTexts(List<ItemTextIfc> itemTextList,
Item itemXml)
Set the (one or more) item texts.
|
void |
setPresentationFlowResponseIdent(String presentationFlowResponseIdent,
Item itemXml)
Set the public void Presentation Flow Response Ident
|
void |
setPresentationLabel(String presentationLabel,
Item itemXml)
Set the presentation label.
|
Item |
updateItemXml(Item itemXml,
String xpath,
String value)
DOCUMENTATION PENDING
|
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_EMI
static final long ITEM_MXSURVEY
static final long ITEM_CALCQ
static final long ITEM_IMAGMQ
static final String[] itemTypes
Item readTypeXMLItem(Long type)
type - item type as a LongItem readTypeSurveyItem(String scaleName)
scaleName - Item readXMLDocument(InputStream inputStream)
inputStream - XML docuemnt streamItem updateItemXml(Item itemXml, String xpath, String value)
itemXml - item xml to updatexpath - the XPathvalue - value to setvoid addMaxScore(Double score, Item itemXml)
score - itemXml - void addMinScore(Double 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(List<ItemTextIfc> itemTextList, Item itemXml)
itemXml - itemText - text to be updatedvoid setItemLabel(String itemLabel, Item itemXml)
itemLabel - itemXml - void setItemText(String itemText, Item itemXml)
itemText - itemXml - void setItemText(String itemText, String flowClass, Item itemXml)
itemText - itemXml - void setPresentationLabel(String presentationLabel, Item itemXml)
presentationLabel - itemXml - void setPresentationFlowResponseIdent(String presentationFlowResponseIdent, Item itemXml)
presentationFlowResponseIdent - itemXml - void setAnswers(List<ItemTextIfc> itemTextList, Item itemXml)
itemTextList - the text(s) for itemvoid setFeedback(List<ItemTextIfc> itemTextList, Item itemXml)
itemTextList - the text(s) for itemvoid setAttachments(Set<? extends AttachmentIfc> attachmentSet, Item item)
Copyright © 2005–2017 Sakai Project. All rights reserved.