Examples of XMLTree


Examples of net.sf.chellow.monad.XmlTree

    for (Provider provider : (List<Provider>) Hiber
        .session()
        .createQuery(
            "from Provider provider where provider.role.code = :roleCode order by provider.participant.code")
        .setCharacter("roleCode", MarketRole.HHDC).list()) {
      source.appendChild(provider.toXml(doc, new XmlTree("participant")));
    }
    source.appendChild(MonadDate.getMonthsXml(doc));
    source.appendChild(MonadDate.getDaysXml(doc));
    source.appendChild(MonadDate.getHoursXml(doc));
    source.appendChild(HhStartDate.getHhMinutesXml(doc));
View Full Code Here

Examples of net.sf.chellow.monad.XmlTree

  private Document document() throws HttpException {
    Document doc = MonadUtils.newSourceDocument();
    Element source = doc.getDocumentElement();
    Element supplyElement = (Element) toXml(
        doc,
        new XmlTree("generations", new XmlTree("mpans", new XmlTree(
            "core").put("llfc", new XmlTree("voltageLevel"))))
            .put("source").put("generatorType").put("gspGroup"));
    source.appendChild(supplyElement);
    for (Source supplySource : (List<Source>) Hiber.session()
        .createQuery("from Source source order by source.code").list()) {
      source.appendChild(supplySource.toXml(doc));
View Full Code Here

Examples of net.sf.chellow.monad.XmlTree

  @SuppressWarnings("unchecked")
  protected Document document() throws HttpException {
    Document doc = MonadUtils.newSourceDocument();
    Element source = doc.getDocumentElement();
    source.appendChild(toXml(doc, new XmlTree("party", new XmlTree(
        "participant"))));
    for (Party party : (List<Party>) Hiber
        .session()
        .createQuery(
            "from Party party where party.role.code = :roleCode order by party.participant.code")
        .setCharacter("roleCode", MarketRole.MOP).list()) {
      source.appendChild(party.toXml(doc, new XmlTree("participant")));
    }
    source.appendChild(new MonadDate().toXml(doc));
    source.appendChild(MonadDate.getMonthsXml(doc));
    source.appendChild(MonadDate.getDaysXml(doc));
    return doc;
View Full Code Here

Examples of net.sf.chellow.monad.XmlTree

  private Document document() throws HttpException {
    Document doc = MonadUtils.newSourceDocument();
    Element source = doc.getDocumentElement();
    Element batchesElement = (Element) toXml(doc);
    source.appendChild(batchesElement);
    batchesElement.appendChild(contract.toXml(doc, new XmlTree("party")));
    for (Batch batch : (List<Batch>) Hiber
        .session()
        .createQuery(
            "from Batch batch where batch.contract = :contract order by batch.reference")
        .setEntity("contract", contract).list()) {
View Full Code Here

Examples of net.sf.chellow.monad.XmlTree

  public void httpGet(Invocation inv) throws HttpException {
    Document doc = MonadUtils.newSourceDocument();
    Element source = doc.getDocumentElement();

    source.appendChild(toXml(doc, new XmlTree("dno").put("meterType").put(
        "paymentType")));
    inv.sendOk(doc);
  }
View Full Code Here

Examples of net.sf.chellow.monad.XmlTree

  }

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

Examples of net.sf.chellow.monad.XmlTree

  private Document document() throws HttpException {
    Document doc = MonadUtils.newSourceDocument();
    Element source = doc.getDocumentElement();
    Element billImportsElement = toXML(doc);
    source.appendChild(billImportsElement);
    billImportsElement.appendChild(batch.toXml(doc, new XmlTree("contract",
        new XmlTree("party"))));
    Map<Long, BillImport> batchImports = imports.get(batch.getId());
    if (batchImports != null) {
      for (BillImport billImport : batchImports.values()) {
        billImportsElement.appendChild(billImport.toXml(doc));
      }
View Full Code Here

Examples of net.sf.chellow.monad.XmlTree

  @SuppressWarnings("unchecked")
  private Document document(String message) throws HttpException {
    Document doc = MonadUtils.newSourceDocument();
    Element source = doc.getDocumentElement();
    source.appendChild(toXml(doc, new XmlTree("party", new XmlTree(
        "participant").put("role")).put("role")));
    for (Party party : (List<Party>) Hiber
        .session()
        .createQuery(
            "from Party party order by party.role.code, party.participant.code")
        .list()) {
      source.appendChild(party.toXml(doc,
          new XmlTree("participant").put("role")));
    }
    if (message != null) {
      source.appendChild(new MonadMessage(message).toXml(doc));
    }
    return doc;
View Full Code Here

Examples of net.sf.chellow.monad.XmlTree

  private Document document() throws HttpException {
    Document doc = MonadUtils.newSourceDocument();
    Element source = doc.getDocumentElement();
    Element readsElement = toXml(doc);
    source.appendChild(readsElement);
    readsElement.appendChild(bill.toXml(doc, new XmlTree("batch",
        new XmlTree("contract", new XmlTree("party"))).put("supply")));
    for (ReadType type : (List<ReadType>) Hiber.session().createQuery(
        "from ReadType type order by type.code").list()) {
      source.appendChild(type.toXml(doc));
    }
    source.appendChild(new MonadDate().toXml(doc));
View Full Code Here

Examples of net.sf.chellow.monad.XmlTree

    Element providersElement = doc.createElement("dnos");

    source.appendChild(providersElement);
    for (Dno dno : (List<Dno>) Hiber.session().createQuery(
        "from Dno dno order by dno.code").list()) {
      providersElement.appendChild(dno.toXml(doc, new XmlTree(
          "participant")));
    }
    inv.sendOk(doc);
  }
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.