Package org.roolie.config.elmt

Examples of org.roolie.config.elmt.RuleElmt


    // Get the rule nodes
    List<Node> ruleNodes = RUtil.getRequiredChildren(ruleDefNode, XML.NODE.RULE);
    List<RuleElmt> ruleElmts = new LinkedList<RuleElmt>();
    for (Node ruleNode : ruleNodes)
    {
      RuleElmt ruleElmt = createRuleElmt(ruleNode);
      ruleElmts.add(ruleElmt);
    }
    return ruleElmts;
  }
View Full Code Here


    return ruleElmts;
  }

  private RuleElmt createRuleElmt(Node ruleNode) throws XPathExpressionException
  {
    RuleElmt ruleElmt = new RuleElmt();

    // name
    final String name = RUtil.getRequiredAttributeValue(ruleNode,
      XML.ATTRIB.NAME);
    ruleElmt.setName(name);

    // or-next-rule
    final String sOrNextRule = RUtil.getAttributeValue(ruleNode,
      XML.ATTRIB.OR_NEXT_RULE);
    final boolean orNextRule = RUtil.parseBoolean(sOrNextRule);
    ruleElmt.setOrNextRule(orNextRule);

    // inverse
    final String sInverse =
      RUtil.getAttributeValue(ruleNode, XML.ATTRIB.INVERSE);
    final boolean inverse = RUtil.parseBoolean(sInverse);
    ruleElmt.setInverse(inverse);

    return ruleElmt;
  }
View Full Code Here

      final String name = ruleImplElmt.getRuleName();
      ruleDefElmt.setName(name);

      // rules
      List<RuleElmt> ruleElmts = new LinkedList<RuleElmt>();
      RuleElmt ruleElmt = new RuleElmt();
      ruleElmt.setName(name);
      ruleElmts.add(ruleElmt);
      ruleDefElmt.setRuleElmts(ruleElmts);

      // add rule-def
      rulesConfig.getRuleDefinitionElmts().getRuleDefElmts().put(name,
View Full Code Here

TOP

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

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.