Package net.sf.chellow.monad

Examples of net.sf.chellow.monad.XmlTree


  private Document document() throws HttpException {
    Document doc = MonadUtils.newSourceDocument();
    Element sourceElement = doc.getDocumentElement();
    sourceElement.appendChild(toXml(doc,
        new XmlTree("channel", new XmlTree("supplyGeneration",
            new XmlTree("supply").put("hhdcContract")))));
    return doc;
  }
View Full Code Here


    Document doc = MonadUtils.newSourceDocument();
    Element source = doc.getDocumentElement();
    Element generationsElement = toXml(doc);
    source.appendChild(generationsElement);
    generationsElement.appendChild(supply.toXml(doc,
        new XmlTree("gspGroup")));
    for (SupplyGeneration supplyGeneration : supply.getGenerations()) {
      generationsElement.appendChild(supplyGeneration.toXml(
          doc,
          new XmlTree("mpans", new XmlTree("core").put("llfc")).put(
              "mtc").put("pc")));
    }
    source.appendChild(new MonadDate().toXml(doc));
    source.appendChild(MonadDate.getMonthsXml(doc));
    source.appendChild(MonadDate.getDaysXml(doc));
View Full Code Here

  }

  private Document document() throws HttpException {
    Document doc = MonadUtils.newSourceDocument();
    Element sourceElement = doc.getDocumentElement();
    sourceElement.appendChild(toXml(doc, new XmlTree("site")));
    return doc;
  }
View Full Code Here

    for (Mtc mtc : (List<Mtc>) Hiber
        .session()
        .createQuery(
            "select mtc from Mtc mtc left outer join mtc.dno dno order by mtc.code, dno.code")
        .list()) {
      mtcsElement.appendChild(mtc.toXml(doc, new XmlTree("dno").put(
          "meterType").put("paymentType")));
    }
    inv.sendOk(doc);
  }
View Full Code Here

  }

  private Document document(String message) throws HttpException {
    Document doc = MonadUtils.newSourceDocument();
    Element source = doc.getDocumentElement();
    source.appendChild(toXml(doc, new XmlTree("channel", new XmlTree(
        "supplyGeneration", new XmlTree("supply")))));
    if (message != null) {
      source.appendChild(new MonadMessage(message).toXml(doc));
    }
    return doc;
  }
View Full Code Here

  }

  public void httpGet(Invocation inv) throws HttpException {
    Document doc = MonadUtils.newSourceDocument();
    Element source = doc.getDocumentElement();
    source.appendChild(toXml(doc, new XmlTree("measurementRequirements",
        new XmlTree("ssc")).put("clockIntervals")));
    inv.sendOk(doc);
  }
View Full Code Here

  private Document document() throws HttpException {
    Document doc = MonadUtils.newSourceDocument();
    Element source = doc.getDocumentElement();
    Element generationElement = (Element) toXml(
        doc,
        new XmlTree("siteSupplyGenerations", new XmlTree("site"))
            .put("pc").put("mtc").put("cop").put("ssc")
            .put("supply", new XmlTree("source").put("gspGroup"))
            .put("mopContract", new XmlTree("party"))
            .put("hhdcContract", new XmlTree("party")));
    source.appendChild(generationElement);
    for (Mpan mpan : mpans) {
      Element mpanElement = (Element) mpan.toXml(doc, new XmlTree("core")
          .put("llfc").put("supplierContract", new XmlTree("party")));
      generationElement.appendChild(mpanElement);
    }
    source.appendChild(MonadDate.getMonthsXml(doc));
    source.appendChild(MonadDate.getDaysXml(doc));
    source.appendChild(MonadDate.getHoursXml(doc));
View Full Code Here

TOP

Related Classes of net.sf.chellow.monad.XmlTree

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.