Package org.roolie.config.elmt

Examples of org.roolie.config.elmt.RuleImplementationsElmt


  protected void initRuleImplementations(Node ruleImplementationsNode,
    RulesConfig rulesConfig) throws XPathExpressionException
  {
    // Create a new RuleImplementationsElmt
    RuleImplementationsElmt ruleImplementationsElmt =
      new RuleImplementationsElmt();

    // Map to hold the RuleImpleElmt's
    Map<String, RuleImplElmt> ruleImplElmts =
      new HashMap<String, RuleImplElmt>();

    // Get the rule-impl nodes
    List<Node> ruleImplNodes = RUtil.getChildren(ruleImplementationsNode,
      XML.NODE.RULE_IMPL);

    for (Node ruleImplNode : ruleImplNodes)
    {
      RuleImplElmt ruleImplElmt = createRuleImplElmt(ruleImplNode);
      ruleImplElmts.put(ruleImplElmt.getRuleName(), ruleImplElmt);
    }

    // Set the ruleImplElmts in the ruleImplementationsElmt
    ruleImplementationsElmt.setRuleImplElmts(ruleImplElmts);

    // Set the RuleImplementationsElmt in rulesConfig
    rulesConfig.setRuleImplementationsElmt(ruleImplementationsElmt);
  }
View Full Code Here

TOP

Related Classes of org.roolie.config.elmt.RuleImplementationsElmt

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.