Package org.roolie.config.elmt

Examples of org.roolie.config.elmt.RoolieConfigElmt


  protected void initRoolieConfig(Node roolieConfigNode,
    RulesConfig rulesConfig) throws XPathExpressionException
  {
    // Create a new RoolieConfigElmt
    RoolieConfigElmt roolieConfigElmt = new RoolieConfigElmt();
    // init rule-factory-class property
    Node ruleFactoryClassNode = null;
    if (null != roolieConfigNode)
    {
      ruleFactoryClassNode = RUtil.getChild(roolieConfigNode,
        XML.NODE.RULE_FACTORY_CLASS);
    }
    if (null != ruleFactoryClassNode)
    {
      final String ruleFactoryClass = RUtil.getAttributeValue(
        ruleFactoryClassNode, XML.ATTRIB.CLASS);
      // Set the rule-factory-class property in the RoolieConfigElmt
      roolieConfigElmt.setRuleFactoryClass(ruleFactoryClass);
    }
    // init rule-evaluator-class
    Node ruleEvaluatorNode = null;
    if (null != roolieConfigNode)
    {
      ruleEvaluatorNode = RUtil.getChild(roolieConfigNode,
        XML.NODE.RULE_EVALUATOR_CLASS);
    }
    if (null != ruleEvaluatorNode)
    {
      final String ruleEvaluatorClass = RUtil.getAttributeValue(
        ruleEvaluatorNode, XML.ATTRIB.CLASS);
      // Set the ruule-evaluator-class property in the RoolieConfigElmt
      roolieConfigElmt.setRuleEvaluatorClass(ruleEvaluatorClass);
    }
    // Set the RoolieConfigElmt in rulesConfig
    rulesConfig.setRoolieConfigElmt(roolieConfigElmt);
  }
View Full Code Here

TOP

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

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.