1 /*
2 * Copyright (c) 2002-2003 The XDoclet Team.
3 * All rights reserved.
4 */
5 package xdoclet.util.predicates;
6
7 import org.apache.commons.collections.Predicate;
8
9 import java.util.Iterator;
10
11 /***
12 * Logical and between one or more predicates.
13 *
14 * @author <a href="aslak.hellesoy@netcom.no">Aslak Hellesøy</a>
15 */
16 public class Or extends CompositePredicate {
17 public boolean evaluate(Object o) {
18 for (Iterator children = iterator(); children.hasNext();) {
19 Predicate child = (Predicate) children.next();
20
21 if (child.evaluate(o)) {
22 return true;
23 }
24 }
25
26 return false;
27 }
28 }
This page was automatically generated by Maven