org.pf.text
Class AStringFilter

java.lang.Object
  extended by org.pf.text.AStringFilter
All Implemented Interfaces:
IObjectFilter, StringFilter
Direct Known Subclasses:
StringCollectionFilter, StringPattern, StringPatternCollection

public abstract class AStringFilter
extends java.lang.Object
implements StringFilter, IObjectFilter

Subclasses of this abstract string filter class usually must override only method matches(String). This abstract class ensures that filters can be used with any mechanism based on either org.pf.text.ObjectFilter or org.pf.bif.IObjectFilter.

Version:
1.0
Author:
M.Duchrow

Constructor Summary
AStringFilter()
          Initialize the new instance with default values.
 
Method Summary
 boolean matches(java.lang.Object object)
          Returns false if the given object is no string, otherwise it calls method matches(String).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.pf.text.StringFilter
matches
 

Constructor Detail

AStringFilter

public AStringFilter()
Initialize the new instance with default values.

Method Detail

matches

public boolean matches(java.lang.Object object)
Returns false if the given object is no string, otherwise it calls method matches(String).

Specified by:
matches in interface IObjectFilter
Parameters:
object - The object to be checked against this string filter
See Also:
StringFilter.matches(String)