Examples of XMLTree


Examples of net.sf.chellow.monad.XmlTree

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

Examples of net.sf.chellow.monad.XmlTree

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

    source.appendChild(toXml(doc, new XmlTree("participant").put("role")));
    inv.sendOk(doc);
  }
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("measurementRequirements",
        new XmlTree("tpr"))));
    inv.sendOk(doc);
  }
View Full Code Here

Examples of net.sf.chellow.monad.XmlTree

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

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

Examples of net.sf.chellow.monad.XmlTree

  @SuppressWarnings("unchecked")
  private Document document() throws HttpException {
    Document doc = MonadUtils.newSourceDocument();
    Element source = doc.getDocumentElement();
    source.appendChild(toXml(doc, new XmlTree("bill", new XmlTree("batch",
        new XmlTree("contract"))).put("tpr")));
    source.appendChild(MonadDate.getMonthsXml(doc));
    source.appendChild(MonadDate.getDaysXml(doc));
    source.appendChild(MonadDate.getHoursXml(doc));
    source.appendChild(HhStartDate.getHhMinutesXml(doc));
    for (ReadType type : (List<ReadType>) Hiber.session()
View Full Code Here

Examples of net.sf.chellow.monad.XmlTree

    for (SupplyGeneration generation : (List<SupplyGeneration>) Hiber
        .session()
        .createQuery(
            "select supplyGeneration from SupplyGeneration supplyGeneration join supplyGeneration.siteSupplyGenerations siteSupplyGeneration where siteSupplyGeneration.site = :site order by supplyGeneration.finishDate.date")
        .setEntity("site", this).list()) {
      siteElement.appendChild(generation.toXml(doc, new XmlTree("mpans",
          new XmlTree("core").put("llfc")).put("supply", new XmlTree(
          "source"))));
    }
    for (Source source : (List<Source>) Hiber.session()
        .createQuery("from Source source order by source.code").list()) {
      docElem.appendChild(source.toXml(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("supplyGeneration",
        new XmlTree("supply"))));
    return doc;
  }
View Full Code Here

Examples of net.sf.chellow.monad.XmlTree

    Document doc = MonadUtils.newSourceDocument();
    Element source = doc.getDocumentElement();
    Element snagsElement = toXml(doc);
    source.appendChild(snagsElement);
    snagsElement
        .appendChild(channel.toXml(doc, new XmlTree("supplyGeneration",
            new XmlTree("supply").put("hhdcContract"))));
    for (ChannelSnag snag : (List<ChannelSnag>) Hiber
        .session()
        .createQuery(
            "from ChannelSnag snag where snag.channel = :channel order by snag.description, snag.startDate.date")
        .setEntity("channel", channel).setMaxResults(PAGE_SIZE).list()) {
View Full Code Here

Examples of org.apache.tomcat.util.XMLTree

      throw new Exception(msg);
  }
    }

    private void processIcon() {
        XMLTree iconTree = this.config.getFirstElement(Constants.ICON);

  if (iconTree != null) {
      // there is icon information

      XMLTree smallIconTree =
          iconTree.getFirstElement(Constants.SMALL_ICON);

      if (smallIconTree != null) {
          this.webApplicationDescriptor.setSmallIconUri(
        smallIconTree.getValue());
      }
     
      XMLTree largeIconTree =
          iconTree.getFirstElement(Constants.LARGE_ICON);

      if (largeIconTree != null) {
          webApplicationDescriptor.setLargeIconUri(
        largeIconTree.getValue());
      }
  }
    }
View Full Code Here

Examples of org.apache.tomcat.util.XMLTree

  reset();

  // Parse the input stream into an XMLTree
  XMLParser parser = new XMLParser();
  XMLTree config = parser.process(stream);
  if (!config.getName().equals(Constants.Element.TOMCAT_USERS))
      return;
  Enumeration e;

  // Process the defined users
  e = config.getElements(Constants.Element.USER).elements();
  while (e.hasMoreElements())
      readUser((XMLTree) e.nextElement());

  // Process the defined groups
  e = config.getElements(Constants.Element.GROUP).elements();
  while (e.hasMoreElements())
      readGroup((XMLTree) e.nextElement());

  // Process the defined roles
  e = config.getElements(Constants.Element.ROLE).elements();
  while (e.hasMoreElements())
      readRole((XMLTree) e.nextElement());

    }
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.