com.townleyenterprises.filter
Class LogicalNotFilter

java.lang.Object
  extended bycom.townleyenterprises.filter.LogicalNotFilter
All Implemented Interfaces:
Filter

public class LogicalNotFilter
extends java.lang.Object
implements Filter

This class provides an implementation of the Filter interface that implements the NOT operation.

Version:
$Id: LogicalNotFilter.java,v 1.5 2004/11/28 20:14:36 atownley Exp $
Author:
Andrew S. Townley

Constructor Summary
LogicalNotFilter(Filter filter)
          The constructor takes the argument of the filter to negate.
 
Method Summary
 boolean doFilter(java.lang.Object o)
          This method actually performs the operation that will determine if the parameter object should be included in the "result" or not.
 Filter getFilter()
          This method returns the filter to be negated.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LogicalNotFilter

public LogicalNotFilter(Filter filter)
The constructor takes the argument of the filter to negate.

Parameters:
filter - the filter
Method Detail

doFilter

public boolean doFilter(java.lang.Object o)
This method actually performs the operation that will determine if the parameter object should be included in the "result" or not.

Specified by:
doFilter in interface Filter
Parameters:
o - the object to be tested
Returns:
true if the object should be included in the result; false if the object should not

getFilter

public Filter getFilter()
This method returns the filter to be negated.


toString

public java.lang.String toString()


Copyright © 2002-2004, Andrew S. Townley and Townley Enterprises. All Rights Reserved.
This project is hosted on http://te-code.sourceforge.net.