Package org.olat.ims.qti.editor.beecom.objects

Examples of org.olat.ims.qti.editor.beecom.objects.QTIDocument


public class QTIDocumentParser implements IParser {
  private ParserManager parserManager = new ParserManager();
 
  public Object parse(Element element) {
    //assert element.getName().equalsIgnoreCase("questestinterop");
    QTIDocument qtiDocument= new QTIDocument();
   
    Object tmp = null;
    Element qticomment = element.element("qticomment");
    qtiDocument.setQticomment((QTIObject)parserManager.parse(qticomment));
   
    Element objectbank = element.element("objectbank");
    tmp = parserManager.parse(objectbank);
    if(tmp!=null) {
      qtiDocument.setObjectbank((QTIObject)tmp);
    }
    Element assesment = element.element("assessment");
    tmp = parserManager.parse(assesment)
    if(tmp!=null) {
      qtiDocument.setAssessment((Assessment)tmp);
    }
    return qtiDocument;   
  }
View Full Code Here


   * @param locale
   */
  public QTIEditorPackage(String title, String type, Locale locale) {
    // create new qti document
    translator = new PackageTranslator("org.olat.ims.qti", locale);
    qtiDocument = new QTIDocument();
    Assessment assessment = QTIEditHelper.createAssessment(title, type);
    qtiDocument.setAssessment(assessment);
    Section section = QTIEditHelper.createSection(translator);
    List sectionList = new ArrayList();
    sectionList.add(section);
View Full Code Here

TOP

Related Classes of org.olat.ims.qti.editor.beecom.objects.QTIDocument

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.