Examples of PrmFactory


Examples of center.task.prm.tp.PrmFactory

  }

  public void loadNewParams(Map<String, Object> prm_,
      Map<String, Object> prm_parent, Element pnl) throws SysException {
    NodeList nl = pnl.getChildNodes();
    PrmFactory fact = new PrmFactory();
    for (int i = nl.getLength() - 1; i >= 0; i--) {
      Node n = nl.item(i);
      if (n.getNodeType() != Node.ELEMENT_NODE)
        continue;
      String x = n.getNodeName();
      Element e = (Element) n;

      String name = Strings.getXMLValue(e, "#name");
      String grp = Strings.getXMLValue(e, "#grp");
      String fn = (grp == null || grp.length() == 0) ? name : grp + "/"
          + name;
      if (x.equals("prm"))
        prm_.put(fn, fact.getParam(e, this));
      if (x.equals("parent"))
        prm_parent.put(fn, fact.getParam(e, this));
    }
  }
View Full Code Here

Examples of center.task.prm.tp.PrmFactory

   * @param pnl Element
   * @throws SysException исключение
   */
  private void loadParams(Map<String, Object> prm_, Element pnl) throws SysException {
    NodeList nl = pnl.getChildNodes();
    PrmFactory fact = new PrmFactory();
    for (int i = nl.getLength() - 1; i >= 0; i--) {
      Node n = nl.item(i);
      if (n.getNodeType() != Node.ELEMENT_NODE)
        continue;
      Element e = (Element) n;
      String nn = n.getNodeName();
      if (nn.equals("param")) {
        n = fact.getParamDBTS(e); // Поддержка параметров DBTS
      } else if (nn.equals("prm")) {
        String name = Strings.getXMLValue(e, "#name");
        String grp = Strings.getXMLValue(e, "#grp");
        String fn = (grp == null || grp.length() == 0) ? name : grp + "/"
            + name;
        prm_.put(fn, fact.getParam(e, this));
      }
    }

  }
View Full Code Here

Examples of center.task.prm.tp.PrmFactory

    return null;
  }

  public void loadNewParams(Map<String, Object> prm_, Map<String, Object> prm_parent, Element pnl) throws SysException {
    NodeList nl = pnl.getChildNodes();
    PrmFactory fact = new PrmFactory();
    for (int i = nl.getLength() - 1; i >= 0; i--) {
      Node n = nl.item(i);
      if (n.getNodeType() != Node.ELEMENT_NODE)
        continue;
      String x = n.getNodeName();
      Element e = (Element) n;

      String name = Strings.getXMLValue(e, "#name");
      String grp = Strings.getXMLValue(e, "#grp");
      String fn = (grp == null || grp.length() == 0) ? name : grp + "/"
          + name;
      if (x.equals("prm"))
        prm_.put(fn, fact.getParam(e, this));
      if (x.equals("parent"))
        prm_parent.put(fn, fact.getParam(e, this));
    }
  }
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.