View Javadoc
1 /* 2 * Copyright (c) 2001, 2002 The XDoclet team 3 * All rights reserved. 4 */ 5 package xdoclet.util.predicates; 6 7 import org.apache.commons.collections.Predicate; 8 9 import xdoclet.beans.BeanContextSupportEx; 10 11 /*** 12 * Baseclass for filters that contain other filters. 13 * 14 * @author <a href="mailto:aslak.hellesoy at netcom.no">Aslak Hellesøy</a> 15 * @version $Revision: 1.5 $ 16 */ 17 public abstract class CompositePredicate extends BeanContextSupportEx implements Predicate { 18 private static final PredicateFactory _predicateFactory = new SimplePredicateFactory(); 19 20 public Predicate createElement(String name) 21 throws PredicateException { 22 Predicate predicate = _predicateFactory.createPredicate(name); 23 24 add(predicate); 25 26 return predicate; 27 } 28 }

This page was automatically generated by Maven