org.pfsw.text
Class NegativeStringFilter

java.lang.Object
  extended by org.pfsw.text.AStringFilter
      extended by org.pfsw.text.NegativeStringFilter
All Implemented Interfaces:
org.pfsw.bif.filter.IObjectFilter<java.lang.String>, org.pfsw.bif.text.IStringFilter

public class NegativeStringFilter
extends AStringFilter

A simple filter that negates the result of its inner string filter.


Field Summary
 
Fields inherited from interface org.pfsw.bif.text.IStringFilter
ALL, NONE
 
Constructor Summary
NegativeStringFilter(org.pfsw.bif.text.IStringFilter filter)
          Initialize the new instance with another filter which it negates.
 
Method Summary
protected  org.pfsw.bif.text.IStringFilter getInnerFilter()
           
 boolean matches(java.lang.String string)
           
protected  void setInnerFilter(org.pfsw.bif.text.IStringFilter newValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NegativeStringFilter

public NegativeStringFilter(org.pfsw.bif.text.IStringFilter filter)
Initialize the new instance with another filter which it negates.

Parameters:
filter - The filter to negate (must not be null).
Throws:
java.lang.IllegalArgumentException - if the given filter is null.
Method Detail

matches

public boolean matches(java.lang.String string)

getInnerFilter

protected org.pfsw.bif.text.IStringFilter getInnerFilter()

setInnerFilter

protected void setInnerFilter(org.pfsw.bif.text.IStringFilter newValue)