CombinerElement
188189190191192193194195196197
// check that the list contains only AbstractPolicy objects if (policies != null) { list = new ArrayList<PolicyCombinerElement>(); for (AbstractPolicy p : policies) list.add(new PolicyCombinerElement(p)); } setChildren(list); }
294295296297298299300301302303304
list = policyParameters.remove(id); else list = policySetParameters.remove(id); } elements.add(new PolicyCombinerElement(policy, list)); } // ...and that there aren't extra parameters if (!policyParameters.isEmpty()) throw new ParsingException("Unmatched parameters in Policy");
185186187188189190191192193194195
while (it.hasNext()) { Object o = it.next(); if (! (o instanceof AbstractPolicy)) throw new IllegalArgumentException("non-AbstractPolicy " + "in policies"); list.add(new PolicyCombinerElement((AbstractPolicy)o)); } } setChildren(list); }
310311312313314315316317318319320
list = (List)(policyParameters.remove(id)); else list = (List)(policySetParameters.remove(id)); } elements.add(new PolicyCombinerElement(policy, list)); } // ...and that there aren't extra parameters if (! policyParameters.isEmpty()) throw new ParsingException("Unmatched parameters in Policy");
184185186187188189190191192193194
309310311312313314315316317318319