| java.lang.Object org.sakaiproject.tool.assessment.qti.helper.AuthoringHelper
AuthoringHelper | public class AuthoringHelper (Code) | | Copyright: Copyright (c) 2004
Organization: Sakai Project
author: Ed Smiley esmiley@stanford.edu author: Shastri, Rashmi version: $Id: AuthoringHelper.java 9274 2006-05-10 22:50:48Z daisyf@stanford.edu $ |
AuthoringHelper | public AuthoringHelper(int qtiVersion)(Code) | | QTI versioned constructor
Parameters: qtiVersion - either QTIVersion.VERSION_1_2 or QTIVersion.VERSION_2_0; |
changeDelimitedStringtoArray | public ArrayList changeDelimitedStringtoArray(String inputStr, String delimiter)(Code) | | Helper method.
Parameters: inputStr - Parameters: delimiter - |
createImportedAssessment | public AssessmentFacade createImportedAssessment(Document document)(Code) | | Import an assessment XML document in QTI format, extract & persist the data.
Parameters: document - the assessment XML document in QTI format a persisted assessment |
createImportedAssessment | public AssessmentFacade createImportedAssessment(Document document, String unzipLocation, String templateId)(Code) | | Import an assessment XML document in QTI format, extract & persist the data.
Parameters: document - the assessment XML document in QTI format a persisted assessment |
createImportedItem | public ItemFacade createImportedItem(Document document)(Code) | | Parameters: document - the item XML document in QTI format a persisted item |
createImportedQuestionPool | public QuestionPoolFacade createImportedQuestionPool(Document document)(Code) | | Import an assessment XML document in QTI format, extract & persist the data.
import process assumes assessment structure, not objectbank or itembank
Parameters: document - the assessment XML document in QTI format a persisted assessment |
createMultipleImportedAssessments | public AssessmentFacade[] createMultipleImportedAssessments(Document objectBank)(Code) | | Pull apart object bank into multiple assessments
Parameters: objectBank - an array of AssesmentFacades |
createMultipleImportedAssessments | public AssessmentFacade[] createMultipleImportedAssessments(Document[] documents)(Code) | | Import multiple assessment documents in QTI format, extract & persist.
Parameters: objectBank - an array of AssesmentFacades |
getAssessment | public Document getAssessment(String assessmentId)(Code) | | Get a published assessment in Document form.
Parameters: assessmentId - the published assessment's Id the Document with the published assessment data |
getAssessment | public Document getAssessment(String assessmentId, InputStream is)(Code) | | Get an assessment in Document form.
Parameters: assessmentId - the assessment's Id Parameters: is - a stream containing the unpopulated XML document the Document with the published assessment data |
getAssessmentBank | public Document getAssessmentBank(String[] assessmentIds)(Code) | | Get an object bank of asessments (asi) in Document form.
Parameters: assessmentIds - array of the the assessment ids the Document with the item bank data |
getBlankSectionTemplateFileStream | public InputStream getBlankSectionTemplateFileStream()(Code) | | Get an InputStream to an unpopulated section XML from file system.
InputStream to an unpopulated section XML |
getItem | public Document getItem(String itemId)(Code) | | Get an item in Document form.
Parameters: itemId - the item id the Document with the item data |
getItemBank | public Document getItemBank(String[] itemIds)(Code) | | Get an object bank of items in Document form.
Parameters: itemIds - array of the the item ids the Document with the item bank data |
getQtiVersion | public int getQtiVersion()(Code) | | |
readXMLDocument | public XmlStringBuffer readXMLDocument(InputStream inputStream)(Code) | | Create an XmlStringBuffer (base class for A,S,I XML classes)
Parameters: inputStream - the input stram an XmlStringBuffer (this is the base class for A,S,I XML classes) |
setQtiVersion | public void setQtiVersion(int qtiVersion)(Code) | | |
|
|