/** * Creates an instance of a <code>PolicyReference</code> object based on * a DOM node. * * @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 PolicyIdReference or a * PolicySetIdReference XML type * @param finder the <code>PolicyFinder</code> used to handle the reference * * @exception ParsingException if the node is invalid */ public static PolicyReference getInstance(Node root, PolicyFinder finder) throws ParsingException { return getInstance(root, finder, new PolicyMetaData()); }
policies.add(Policy.getInstance(child)); } else if (name.equals("PolicySetIdReference")) { policies.add(PolicyReference.getInstance(child, finder, metaData)); } else if (name.equals("PolicyIdReference")) { policies.add(PolicyReference.getInstance(child, finder, metaData)); } else if (name.equals("PolicyCombinerParameters")) {