Package ru.vassaev.core

Examples of ru.vassaev.core.XMLPath


      cache = Strings.getXMLValue(e, "cash");
    setCache(Strings.parseBooleanNvl(cache, false));
    // Определяем алгоритм расчета
    Element f = (Element) Strings.getXMLObject(e, "from");
    if (f == null) {
      from = new XMLPath("value").getXMLObject(e);
      if (from != null && from instanceof Element)
        from = new XMLValue(this, gl_name, (Element) from);
    } else {
      String source = f.getAttribute("source");
      if (source == null) {
View Full Code Here


  private final class DelPath extends Operation {
    DelPath(NodeList _if, Object path) {
      super(_if, path);
    }
    void exec0(Context cntx, Element e, String p) throws SysException {
      XMLPath pth = new XMLPath(p);
      Object n = pth.getXMLObject(e);
      if (n == null)
        return;
      Node node = (Node)n;
      Node pn = node.getParentNode();
      if (pn == null)
View Full Code Here

    SetPath(NodeList _if, Object path, Object value) {
      super(_if, path);
      this.value = value;
    }
    void exec0(Context cntx, Element e, String p) throws SysException, CalculateException {
      XMLPath pth = new XMLPath(p);
      String v = null;
      if (value instanceof Prm)
        v = ((Prm)value).getString(cntx);
      else
        v = Strings.getString(value);
      pth.setXMLValue(e, v);
    }
View Full Code Here

TOP

Related Classes of ru.vassaev.core.XMLPath

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.