Examples of parseXml()


Examples of beans.report.selectors.ReportTableFactory.parseXml()

    Lpu        lpu = cool.getLpu();
        DiseaseReport entity = getExistentEntity();
    ArrayList<Map<String, Object>>  mainData = new ArrayList<Map<String, Object>>();
    Element                    xml = entity.getDetails((RightChecker) this).getXml();
    ReportTableFactory              factory = new ReportTableFactory();
    ArrayList<AbstractReportTable<?>>      list = factory.parseXml(xml);
    DateRange                  range = new DateRange(year);
    for (int i = 0; i < list.size(); i++) {
      AbstractReportTable table = list.get(i);
      AbstractTablesSelector<?>        selector = createTableSelector(table, lpu, range, i);
      Collection<Map<String, Object>>      newData = selector.getDataList(year);
View Full Code Here

Examples of beans.report.selectors.ReportTableFactory.parseXml()

  }
 
  @Override
  public List<AbstractReportTable<?>> getTables() throws ClipsException{
    ReportTableFactory              factory = new ReportTableFactory();
    ArrayList<AbstractReportTable<?>>      list = factory.parseXml(getDetails().getXml());
    return list;
  }
 
  @Override
  public void setTables(List<AbstractReportTable<?>> tables) throws ClipsException{
View Full Code Here

Examples of com.avaje.ebeaninternal.server.lib.util.DnodeReader.parseXml()

    }
  }

  private Dnode readOrmXml(InputStream in) throws IOException {
    DnodeReader reader = new DnodeReader();
    Dnode ormXml = reader.parseXml(in);
    in.close();
    return ormXml;
  }

  /**
 
View Full Code Here

Examples of com.avaje.ebeaninternal.server.lib.util.DnodeReader.parseXml()

  public void testSimple() {

    String xmlString = "<doc><div class=\"hello\"><h1>heading</h1><p>paragraph</p></div></doc>";

    DnodeReader r = new DnodeReader();
    Dnode n = r.parseXml(xmlString);

    String convertedTo = n.toXml();

    Assert.assertEquals(xmlString, convertedTo);
View Full Code Here

Examples of com.avaje.ebeaninternal.server.lib.util.DnodeReader.parseXml()

  }

  private void processInputStream(ArrayList<Dnode> xmlList, InputStream is) throws IOException {

    DnodeReader reader = new DnodeReader();
    Dnode xmlDoc = reader.parseXml(is);
    is.close();

    xmlList.add(xmlDoc);
  }
}
View Full Code Here

Examples of com.dianping.cat.consumer.problem.ProblemDelegate.parseXml()

      ProblemAnalyzer problemAnalyzer = (ProblemAnalyzer) lookup(MessageAnalyzer.class, ProblemAnalyzer.ID);
      ProblemDelegate problemDelegate = (ProblemDelegate) lookup(ReportDelegate.class, "problem");
      MockProblemReportManager problemManager = (MockProblemReportManager) lookup(ReportManager.class, "problem");
      xml = Files.forIO().readFrom(ProblemAnalyzerTest.class.getResourceAsStream("problem-report.xml"), "utf-8");
      ProblemReport problemReport = problemDelegate.parseXml(xml);
      problemManager.setReport(problemReport);

      m_analyzer = (TopAnalyzer) lookup(MessageAnalyzer.class, TopAnalyzer.ID);

      m_analyzer.setTransactionAnalyzer(transactionAnalyzer);
View Full Code Here

Examples of com.dianping.cat.consumer.transaction.TransactionDelegate.parseXml()

      MockTransactionReportManager transactionManager = (MockTransactionReportManager) lookup(ReportManager.class,
            "transaction");

      String xml = Files.forIO().readFrom(TransactionAnalyzerTest.class.getResourceAsStream("transaction_real.xml"),
            "utf-8");
      TransactionReport transactionReport = transactionDelegate.parseXml(xml);
      rebuildTransactionReport(transactionReport);
      transactionManager.setReport(transactionReport);

      ProblemAnalyzer problemAnalyzer = (ProblemAnalyzer) lookup(MessageAnalyzer.class, ProblemAnalyzer.ID);
      ProblemDelegate problemDelegate = (ProblemDelegate) lookup(ReportDelegate.class, "problem");
View Full Code Here

Examples of com.haulmont.yarg.structure.xml.XmlReader.parseXml()

                    cmd.getOptionValue(PROPERTIES_PATH, DefaultPropertiesLoader.DEFAULT_PROPERTIES_PATH));

            Reporting reporting = createReportingEngine(propertiesLoader);

            XmlReader xmlReader = new DefaultXmlReader();
            Report report = xmlReader.parseXml(FileUtils.readFileToString(new File(cmd.getOptionValue(REPORT_PATH))));
            Map<String, Object> params = parseReportParams(cmd, report);

            reporting.runReport(new RunParams(report)
                    .templateCode(templateCode)
                    .params(params),
View Full Code Here

Examples of com.haulmont.yarg.structure.xml.impl.DefaultXmlReader.parseXml()

                    cmd.getOptionValue(PROPERTIES_PATH, DefaultPropertiesLoader.DEFAULT_PROPERTIES_PATH));

            Reporting reporting = createReportingEngine(propertiesLoader);

            XmlReader xmlReader = new DefaultXmlReader();
            Report report = xmlReader.parseXml(FileUtils.readFileToString(new File(cmd.getOptionValue(REPORT_PATH))));
            Map<String, Object> params = parseReportParams(cmd, report);

            reporting.runReport(new RunParams(report)
                    .templateCode(templateCode)
                    .params(params),
View Full Code Here

Examples of com.knowgate.dataobjs.DBPersist.parseXML()

         oCon = oDBB.getConnection("job_main");
         oCon.setAutoCommit(true);

         oJob = new DBPersist(DB.k_jobs, argv[1]);

         oJob.parseXML(argv[3]);

         if (argv.length==5)
           oJob.replace (DB.gu_job, argv[4]);

         else if (!oJob.getItemMap().containsKey(DB.gu_job))
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.