|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sakaiproject.tool.assessment.qti.helper.ExtractionHelper
public class ExtractionHelper
Has helper methods for data extraction (import) from QTI
Copyright: Copyright (c) 2005 Sakai
| Field Summary | |
|---|---|
static String |
REMOVE_NAMESPACE_TRANSFORM
|
| Constructor Summary | |
|---|---|
ExtractionHelper()
Deprecated. |
|
ExtractionHelper(int qtiVersion)
Get ExtractionHelper for QTIVersion.VERSION_1_2 or QTIVersion.VERSION_2_0 |
|
| Method Summary | |
|---|---|
List |
getItemXmlList(Section sectionXml)
Look up a List of Item XML from Section Xml |
String |
getOverridePath()
Primarily for testing purposes. |
int |
getQtiVersion()
Get QTI version flag. |
List |
getSectionXmlList(Assessment assessmentXml)
Look up a List of Section XML from Assessment Xml |
Document |
getTransformDocument(String template)
|
Document |
getTransformDocument(String template,
boolean isRespondus)
Get an XML document for the transform |
String |
getTransformPath()
Path to XSL transform code. |
String |
getTransformPath(boolean isRespondus)
|
void |
makeAssessmentAttachmentSet(AssessmentFacade assessment)
the ip address is in a newline delimited string |
String |
makeFCKAttachment(List respondueTextList)
|
String |
makeFCKAttachment(String text)
the ip address is in a newline delimited string |
String |
makeFCKAttachmentFromRespondus(String text)
|
void |
makeItemAttachmentSet(ItemFacade item)
the ip address is in a newline delimited string |
void |
makeSectionAttachmentSet(SectionFacade section,
Map sectionMap)
the ip address is in a newline delimited string |
void |
makeSecuredIPAddressSet(AssessmentFacade assessment,
String ipList)
the ip address is in a newline delimited string |
Map |
mapAssessment(Assessment assessmentXml)
Get map of data to set from assessment XML |
Map |
mapAssessment(Assessment assessmentXml,
boolean isRespondus)
|
Map |
mapItem(Item itemXml)
Get map of data to set from item XML |
Map |
mapItem(Item itemXml,
boolean isRespondus)
|
Map |
mapSection(Section sectionXml)
|
Map |
mapSection(Section sectionXml,
boolean isRespondus)
Get map of data to set from section XML |
String |
renameDuplicate(String title)
Append " - 2", " - 3", etc. incrementing as you go. |
void |
setOverridePath(String overridePath)
Primarily for testing purposes. |
void |
setQtiVersion(int qtiVersion)
Set QTI version flag. |
void |
setUnzipLocation(String unzipLocation)
|
void |
updateAssessment(AssessmentFacade assessment,
Map assessmentMap)
Update assessment from the extracted properties. |
void |
updateItem(ItemFacade item,
Map itemMap)
Update item from the extracted properties. |
void |
updateItem(ItemFacade item,
Map itemMap,
boolean isRespondus)
|
void |
updateQuestionPool(QuestionPoolFacade questionpool,
Map assessmentMap)
Update questionpool from the extracted properties. |
void |
updateSection(SectionFacade section,
Map sectionMap)
Update section from the extracted properties. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String REMOVE_NAMESPACE_TRANSFORM
| Constructor Detail |
|---|
public ExtractionHelper()
public ExtractionHelper(int qtiVersion)
qtiVersion - | Method Detail |
|---|
public String getTransformPath()
public String getTransformPath(boolean isRespondus)
public int getQtiVersion()
public void setQtiVersion(int qtiVersion)
qtiVersion -
public Document getTransformDocument(String template,
boolean isRespondus)
template -
public Document getTransformDocument(String template)
public Map mapAssessment(Assessment assessmentXml)
assessmentXml -
public Map mapAssessment(Assessment assessmentXml,
boolean isRespondus)
public Map mapSection(Section sectionXml,
boolean isRespondus)
sectionXml -
public Map mapSection(Section sectionXml)
public Map mapItem(Item itemXml)
itemXml -
public Map mapItem(Item itemXml,
boolean isRespondus)
public List getSectionXmlList(Assessment assessmentXml)
public List getItemXmlList(Section sectionXml)
Section - sectionXml
public void updateAssessment(AssessmentFacade assessment,
Map assessmentMap)
assessment - the assessment, which will be persistedassessmentMap - the extracted properties
public void makeSecuredIPAddressSet(AssessmentFacade assessment,
String ipList)
assessment - public void makeAssessmentAttachmentSet(AssessmentFacade assessment)
assessment -
public void makeSectionAttachmentSet(SectionFacade section,
Map sectionMap)
assessment - public void makeItemAttachmentSet(ItemFacade item)
assessment - public String makeFCKAttachment(String text)
assessment - public String makeFCKAttachmentFromRespondus(String text)
public String makeFCKAttachment(List respondueTextList)
public void updateQuestionPool(QuestionPoolFacade questionpool,
Map assessmentMap)
questionpool, - which will be persistedassessmentMap, - the extracted properties
public void updateSection(SectionFacade section,
Map sectionMap)
section - the section, which will be persistedsectionMap - the extracted properties
public void updateItem(ItemFacade item,
Map itemMap)
item - the item, which will be persisteditemMap - the extracted properties
public void updateItem(ItemFacade item,
Map itemMap,
boolean isRespondus)
public String renameDuplicate(String title)
title - the original
public String getOverridePath()
public void setOverridePath(String overridePath)
overridePath - an overriding pathpublic void setUnzipLocation(String unzipLocation)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||