Examples of writeElement()


Examples of org.olat.core.util.servlets.XMLWriter.writeElement()

        generatedXML.writeElement(null, "lockdiscovery",
                                  XMLWriter.OPENING);

        lock.toXML(generatedXML, true);

        generatedXML.writeElement(null, "lockdiscovery",
                                  XMLWriter.CLOSING);

        generatedXML.writeElement(null, "prop", XMLWriter.CLOSING);

        resp.setStatus(WebdavStatus.SC_OK);
View Full Code Here

Examples of org.olat.core.util.servlets.XMLWriter.writeElement()

        lock.toXML(generatedXML, true);

        generatedXML.writeElement(null, "lockdiscovery",
                                  XMLWriter.CLOSING);

        generatedXML.writeElement(null, "prop", XMLWriter.CLOSING);

        resp.setStatus(WebdavStatus.SC_OK);
        resp.setContentType("text/xml; charset=UTF-8");
        Writer writer = resp.getWriter();
        writer.write(generatedXML.toString());
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.BundleElementWriteHandler.writeElement()

                                 final BundleWriterState state,
                                 final XmlWriter xmlWriter, final Element re)
      throws IOException, BundleWriterException
  {
    final BundleElementWriteHandler writeHandler = BundleElementWriterFactory.createHandler(re);
    writeHandler.writeElement(bundle, state, xmlWriter, re);
  }


  private void writePreProcessor(final XmlWriter writer,
                                 final ReportPreProcessor preProcessor) throws IntrospectionException, BeanException, IOException
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.BundleElementWriteHandler.writeElement()

      {
        throw new IllegalStateException("Cannot write custom implementations of report-element.");
      }
      final Element e = (Element) re;
      final BundleElementWriteHandler writeHandler = BundleElementWriterFactory.createHandler(e);
      writeHandler.writeElement(bundle, state, xmlWriter, e);
    }
  }

  protected void writeRootSubReports(final WriteableDocumentBundle bundle,
                                     final BundleWriterState state,
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.elements.ReportDefinitionWriteHandler.writeElement()

        ClassicEngineBoot.getInstance().getGlobalConfig(), BundleXmlModule.TAG_DEF_PREFIX);
    final XmlWriter writer = new XmlWriter(new OutputStreamWriter(outputStream, "UTF-8"), tagDescription, "  ", "\n");
    writer.writeXmlDeclaration("UTF-8");

    final ReportDefinitionWriteHandler writeHandler = new ReportDefinitionWriteHandler();
    writeHandler.writeElement(bundle, layoutFileState, writer, report);

    writer.close();
    return layoutFileState.getFileName();
  }
}
View Full Code Here

Examples of org.sbml.jsbml.xml.parsers.WritingParser.writeElement()

          elementIsNested = true;
        }

        // Writing the element, starting by the indent
        streamWriter.writeCharacters(whiteSpaces);
        childParser.writeElement(childXmlObject, nextObjectToWrite);
        childParser.writeNamespaces(childXmlObject, nextObjectToWrite);
        childParser.writeAttributes(childXmlObject, nextObjectToWrite);

        if (!childXmlObject.isSetName()) {
          // TODO: add a log message that this is ignored ??
View Full Code Here

Examples of sos.scheduler.editor.conf.SchedulerDom.writeElement()

      SchedulerDom dom = new SchedulerDom(SchedulerDom.DIRECTORY);
      // dom.setInit(true);

      new File(originalFilename).delete();

      dom.writeElement(filename, doc);

      if (!new File(filename).renameTo(new File(originalFilename))) {
        MainWindow.message(MainWindow.getSShell(),
            "could not rename file in " + filename,
            SWT.ICON_WARNING | SWT.OK | SWT.CANCEL);
View Full Code Here

Examples of sos.scheduler.editor.conf.SchedulerDom.writeElement()

                XPath x3 = XPath.newInstance("//job");
                List listOfElement3  = x3.selectNodes(currDom.getDoc());
                if(!listOfElement3.isEmpty()) {
                  Element job = (Element)listOfElement3.get(0);
                  addMonitoring(job, currDom);
                  currDom.writeElement(currDom.getFilename(), currDom.getDoc());
                  MainWindow.getContainer().getCurrentTab().setData("ftp_details_parameter_file", hotFolderfilename);
                  MainWindow.saveFTP(new java.util.HashMap());
                }

              }
View Full Code Here

Examples of sos.scheduler.editor.conf.SchedulerDom.writeElement()

              XPath x3 = XPath.newInstance("//job");
              List listOfElement3  = x3.selectNodes(currDom.getDoc());
              if(!listOfElement3.isEmpty()) {
                Element job = (Element)listOfElement3.get(0);
                addMonitoring(job, currDom);
                currDom.writeElement(currDom.getFilename(), currDom.getDoc());
              }

            }
          }
        } else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.