public class Item extends ASIBaseClass
Copyright: Copyright (c) 2004
Organization: Sakai Project
| Constructor and Description |
|---|
Item(Document document,
int qtiVersion)
Creates a new Item object.
|
Item(int qtiVersion)
Creates a new Item object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
createFieldentry(String fieldlabel)
Create a metadata field entry
|
String |
getBasePath() |
String |
getFieldentry(String fieldlabel)
method for meta data
|
String |
getItemText()
Get the text for the item
|
String |
getItemType() |
boolean |
isAudio() |
boolean |
isCalculatedQuestion() |
boolean |
isEMI() |
boolean |
isEssay() |
boolean |
isFIB() |
boolean |
isFile() |
boolean |
isFIN() |
boolean |
isImageMapQuestion() |
boolean |
isMatching() |
boolean |
isMCMC() |
boolean |
isMCMCSS() |
boolean |
isMCSC() |
boolean |
isMXSURVEY() |
boolean |
isSurvey() |
void |
setAnswers(List<ItemTextIfc> itemTextList)
Set the answer texts for item.
|
void |
setAnswerTrueFalse(boolean isTrue)
Set the answer texts for item.
|
void |
setBasePath(String basePath) |
void |
setFeedback(List<ItemTextIfc> itemTextList)
Set the feedback texts for item.
|
void |
setFieldentry(String fieldlabel,
String setValue)
method for meta data
|
void |
setIdent(String ident)
set identity attribute (ident/identity)
|
void |
setItemTexts(List<ItemTextIfc> itemTextList)
Set the item texts.
|
void |
setTitle(String title)
set title attribute
|
void |
update(ItemDataIfc item)
Update XML from persistence
|
createFieldentry, escapeXml, extractString, getAllSections, getIdString, getNumOfSections, removeSections, setFieldentry, setIdString, wrappingMattextadd, addAttribute, addElement, addJDOMElement, clear, createChildElement, getDocument, getValueOf, insertElement, isEmpty, removeElement, replace, selectNodes, selectSingleValue, stringValue, update, updatepublic Item(int qtiVersion)
public Item(Document document, int qtiVersion)
document - an item XML documentpublic void setIdent(String ident)
ident - the valuepublic void setTitle(String title)
ident - the valuepublic void update(ItemDataIfc item)
item - public void setAnswerTrueFalse(boolean isTrue)
itemTextList - the text(s) for itempublic String getFieldentry(String fieldlabel)
getFieldentry in class ASIBaseClassfieldlabel - to getpublic void setFieldentry(String fieldlabel, String setValue)
setFieldentry in class ASIBaseClassfieldlabel - to getsetValue - the valuepublic void createFieldentry(String fieldlabel)
fieldlabel - the field labelpublic String getItemType()
public void setItemTexts(List<ItemTextIfc> itemTextList)
itemText - text to be updatedpublic boolean isEssay()
public boolean isSurvey()
public boolean isMXSURVEY()
public boolean isAudio()
public boolean isFile()
public boolean isMatching()
public boolean isFIB()
public boolean isFIN()
public boolean isMCMC()
public boolean isMCMCSS()
public boolean isMCSC()
public boolean isEMI()
public boolean isCalculatedQuestion()
public boolean isImageMapQuestion()
public void setAnswers(List<ItemTextIfc> itemTextList)
itemTextList - the text(s) for itempublic void setFeedback(List<ItemTextIfc> itemTextList)
itemTextList - the text(s) for itempublic String getItemText()
public String getBasePath()
public void setBasePath(String basePath)
Copyright © 2005–2019 Sakai Project. All rights reserved.