Package org.openntf.domino

Examples of org.openntf.domino.DxlExporter


  public AbstractDesignNoteBase(final Document document) {
    database_ = document.getAncestorDatabase();
    noteId_ = document.getNoteID();

    DxlExporter exporter = document.getAncestorSession().createDxlExporter();
    exporter.setForceNoteFormat(true);
    exporter.setOutputDOCTYPE(false);
    loadDxl(exporter.exportDxl(document));
  }
View Full Code Here


      noteId_ = importer.getFirstImportedNoteID();

      // Reset the DXL so that it can pick up new noteinfo
      Document document = database.getDocumentByID(noteId_);
      DxlExporter exporter = getAncestorSession().createDxlExporter();
      exporter.setForceNoteFormat(true);
      exporter.setOutputDOCTYPE(false);
      loadDxl(exporter.exportDxl(document));
    } catch (IOException e) {
      DominoUtils.handleException(e);
      if (importer != null) {
        System.out.println(importer.getLog());
      }
View Full Code Here

  }

  protected XMLDocument getDxl() {
    if (dxl_ == null) {

      DxlExporter exporter = database_.getAncestorSession().createDxlExporter();
      exporter.setOutputDOCTYPE(false);
      // TODO: You will get an exporter error, if the design is protected. This should be handled correctly
      if (document_ != null) {
        loadDxl(exporter.exportDxl(document_));
      } else {
        loadDxl(exporter.exportDxl(database_));
      }
    }
    return dxl_;
  }
View Full Code Here

TOP

Related Classes of org.openntf.domino.DxlExporter

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.