| java.lang.Object org.sakaiproject.tool.assessment.qti.helper.ExtractionHelper
ExtractionHelper | public class ExtractionHelper (Code) | | Has helper methods for data extraction (import) from QTI
Copyright: Copyright (c) 2005 Sakai
author: Ed Smiley esmiley@stanford.edu version: $Id: ExtractionHelper.java 9274 2006-05-10 22:50:48Z daisyf@stanford.edu $ |
ExtractionHelper | public ExtractionHelper()(Code) | | |
ExtractionHelper | public ExtractionHelper(int qtiVersion)(Code) | | Get ExtractionHelper for QTIVersion.VERSION_1_2
or QTIVersion.VERSION_2_0
Parameters: qtiVersion - |
getItemXmlList | public List getItemXmlList(Section sectionXml)(Code) | | Look up a List of Item XML from Section Xml
Parameters: Section - sectionXml a List of Item XML objects |
getOverridePath | public String getOverridePath()(Code) | | Primarily for testing purposes.
an overridden path if not null |
getQtiVersion | public int getQtiVersion()(Code) | | Get QTI version flag.
Either QTIVersion.VERSION_1_2 or QTIVersion.VERSION_2_0;
QTI version flag |
getSectionXmlList | public List getSectionXmlList(Assessment assessmentXml)(Code) | | Look up a List of Section XML from Assessment Xml
a List of Section XML objects |
getTransformDocument | public Document getTransformDocument(String template)(Code) | | Get an XML document for the transform
Parameters: template - |
getTransformPath | public String getTransformPath()(Code) | | Path to XSL transform code.
context-relative path to XSL transform code. |
makeAssessmentAttachmentSet | public void makeAssessmentAttachmentSet(AssessmentFacade assessment)(Code) | | the ip address is in a newline delimited string
Parameters: assessment - |
makeFCKAttachment | public String makeFCKAttachment(String text)(Code) | | the ip address is in a newline delimited string
Parameters: assessment - |
makeItemAttachmentSet | public void makeItemAttachmentSet(ItemFacade item)(Code) | | the ip address is in a newline delimited string
Parameters: assessment - |
makeSectionAttachmentSet | public void makeSectionAttachmentSet(SectionFacade section, Map sectionMap)(Code) | | the ip address is in a newline delimited string
Parameters: assessment - |
makeSecuredIPAddressSet | public void makeSecuredIPAddressSet(AssessmentFacade assessment, String ipList)(Code) | | the ip address is in a newline delimited string
Parameters: assessment - |
mapAssessment | public Map mapAssessment(Assessment assessmentXml)(Code) | | Get map of data to set from assessment XML
Parameters: assessmentXml - a Map |
mapItem | public Map mapItem(Item itemXml)(Code) | | Get map of data to set from item XML
Parameters: itemXml - a Map |
mapSection | public Map mapSection(Section sectionXml)(Code) | | Get map of data to set from section XML
Parameters: sectionXml - a Map |
renameDuplicate | public String renameDuplicate(String title)(Code) | | Append " - 2", " - 3", etc. incrementing as you go.
Parameters: title - the original the title with versioning appended |
setOverridePath | public void setOverridePath(String overridePath)(Code) | | Primarily for testing purposes.
Parameters: overridePath - an overriding path |
setQtiVersion | public void setQtiVersion(int qtiVersion)(Code) | | Set QTI version flag.
Either QTIVersion.VERSION_1_2 or QTIVersion.VERSION_2_0;
Parameters: qtiVersion - |
setUnzipLocation | public void setUnzipLocation(String unzipLocation)(Code) | | |
updateAssessment | public void updateAssessment(AssessmentFacade assessment, Map assessmentMap)(Code) | | Update assessment from the extracted properties.
Note: you need to do a save when you are done.
Parameters: assessment - the assessment, which will be persisted Parameters: assessmentMap - the extracted properties |
updateItem | public void updateItem(ItemFacade item, Map itemMap)(Code) | | Update item from the extracted properties.
Note: you need to do a save when you are done.
Parameters: item - the item, which will be persisted Parameters: itemMap - the extracted properties |
updateQuestionPool | public void updateQuestionPool(QuestionPoolFacade questionpool, Map assessmentMap)(Code) | | Update questionpool from the extracted properties.
Note: you need to do a save when you are done.
questionpool, which will be persisted assessmentMap, the extracted properties |
updateSection | public void updateSection(SectionFacade section, Map sectionMap)(Code) | | Update section from the extracted properties.
Note: you need to do a save when you are done.
Parameters: section - the section, which will be persisted Parameters: sectionMap - the extracted properties |
|
|