/** * Creates a <code>Target</code> by parsing a 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 node to parse for the <code>Target</code> * @param xpathVersion the XPath version to use in any selectors, or * null if this is unspecified (ie, not supplied in * the defaults section of the policy) * * @return a new <code>Target</code> constructed by parsing * * @throws ParsingException if the DOM node is invalid */ public static Target getInstance(Node root, String xpathVersion) throws ParsingException { return getInstance(root, new PolicyMetaData( PolicyMetaData.XACML_1_0_IDENTIFIER, xpathVersion)); }
description = (child.getFirstChild() != null ? child.getFirstChild().getNodeValue() : "");; } else if (cname.equals("Target")) { target = Target.getInstance(child, metaData); } else if (cname.equals("Condition")) { condition = Condition.getInstance(child, metaData, manager);
description = (child.getFirstChild() != null ? child.getFirstChild().getNodeValue() : ""); } else if (cname.equals("Target")) { target = Target.getInstance(child, metaData); } else if (cname.equals("Obligations")) { parseObligations(child);