org.progeeks.graph
Class FilterUtils

java.lang.Object
  extended by org.progeeks.graph.FilterUtils

public class FilterUtils
extends java.lang.Object

Provides methods for searching a filter hierarchy for a filter of a given class.

Version:
$Revision: 1.5 $
Author:
Paul Speed

Method Summary
static org.apache.commons.collections.Predicate findPredicate(org.apache.commons.collections.Predicate root, java.lang.Class type)
          Returns a predicate of the specified class somewhere in the predicate hierarchy or null if the type isn't found.
static boolean supportsGraph(org.apache.commons.collections.Predicate root, com.phoenixst.plexus.Graph graph)
          Returns false if any of the contained filters are TargetedFilter and also return false for their supportsGraph() method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

findPredicate

public static org.apache.commons.collections.Predicate findPredicate(org.apache.commons.collections.Predicate root,
                                                                     java.lang.Class type)
Returns a predicate of the specified class somewhere in the predicate hierarchy or null if the type isn't found.


supportsGraph

public static boolean supportsGraph(org.apache.commons.collections.Predicate root,
                                    com.phoenixst.plexus.Graph graph)
Returns false if any of the contained filters are TargetedFilter and also return false for their supportsGraph() method.



Copyright © 2002-2003 Paul Speed. All Rights Reserved.