org.pfsw.text
Class NegativeStringFilter
java.lang.Object
org.pfsw.text.AStringFilter
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.
| 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 |
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.
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)