Package center.task.prm.tp

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


   * @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

    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

Related Classes of center.task.prm.tp.PrmFactory

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.