private static PolicySet toPolicySet(List<AbstractPolicy> policies, PolicyCombiningAlgorithm alg) { return new PolicySet(EMPTY_URI, alg, null /* * no general target beyond those of * multiplexed individual policies */, policies); } }
private static PolicySet toPolicySet(List<AbstractPolicy> policies, PolicyCombiningAlgorithm alg) { return new PolicySet(EMPTY_URI, alg, null /* * no general target beyond those of * multiplexed individual policies */, policies); } }
/** * Creates an instance of a <code>PolicySet</code> object based on a * DOM node. The node must be the root of PolicySetType XML object, * otherwise an exception is thrown. The finder is used to handle * policy references. * * @param root the DOM root of a PolicySetType XML type * @param finder the <code>PolicyFinder</code> used to handle references * * @throws ParsingException if the PolicySetType is invalid */ public static PolicySet getInstance(Node root, PolicyFinder finder) throws ParsingException { // first off, check that it's the right kind of node if (! SunxacmlUtil.getNodeName(root).equals("PolicySet")) { throw new ParsingException("Cannot create PolicySet from root of" + " type " + SunxacmlUtil.getNodeName(root)); } return new PolicySet(root, finder); }
return ((AbstractPolicy) (list.get(0))); default : return new PolicySet(parentId, combiningAlg, target, list);
return p; default: return new PolicySet(parentPolicyId, m_combiningAlg, m_target,