org.jboss.gravel.data.filter
Class StringWildcardFilter

java.lang.Object
  extended by org.jboss.gravel.data.filter.StringWildcardFilter
All Implemented Interfaces:
Filter

public final class StringWildcardFilter
extends Object
implements Filter

A filter that filters based on a string wildcard expression. Valid wildcard characters are '*' to match any number of characters and '?' to match exactly one character.


Constructor Summary
StringWildcardFilter(String patternString)
           
 
Method Summary
 boolean testEntry(Object object)
          Test to see if an item passes the filter.
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringWildcardFilter

public StringWildcardFilter(String patternString)
Method Detail

testEntry

public boolean testEntry(Object object)
Description copied from interface: Filter
Test to see if an item passes the filter.

Specified by:
testEntry in interface Filter
Parameters:
object - the item to test
Returns:
true if the item passes the filter criteria

toString

public String toString()
Overrides:
toString in class Object