/** * Returns a new instance of the <code>Rule</code> class based on a * DOM node. The node must be the root of an XML RuleType. * * @deprecated As of 2.0 you should avoid using this method and should * instead use the version that takes a * <code>PolicyMetaData</code> instance. This method will * only work for XACML 1.x policies. * * @param root the DOM root of a RuleType XML type * @param xpathVersion the XPath version to use in any selectors or XPath * functions, or null if this is unspecified (ie, not * supplied in the defaults section of the policy) * * @throws ParsingException if the RuleType is invalid */ public static Rule getInstance(Node root, String xpathVersion) throws ParsingException { return getInstance(root, new PolicyMetaData( PolicyMetaData.XACML_1_0_IDENTIFIER, xpathVersion), null); }
rules.add(Rule.getInstance(child, metaData, manager)); } else if (name.equals("RuleCombinerParameters")) { String ref = child.getAttributes().getNamedItem("RuleIdRef").