org.jcreme.filters
Interface Filter

All Superinterfaces:
java.lang.Cloneable
All Known Subinterfaces:
ReportFilter
All Known Implementing Classes:
BaseReportFilter, InclusionFilter, IntervalFilter, LikeStringFilter, OrderFilter

public interface Filter
extends java.lang.Cloneable

This interface describes a general filter. Basically this is an object that accept or refuses values (other objects).

Version:
$Revision: 1.2 $
Author:
$Author: dbregeon $

Method Summary
 boolean accept(java.lang.Object obj)
          Tells whether the given object 'passes' the filter or not.
 java.lang.Object clone()
          This forces override of the Object class clone method. it makes a deep copy so a change in a subfilter does not affect the cloned version.
 

Method Detail

accept

public boolean accept(java.lang.Object obj)
Tells whether the given object 'passes' the filter or not.

Parameters:
obj - The object you want to 'test'.
Returns:
True if the passed in parameter is accepted by the filter, false otherwise.

clone

public java.lang.Object clone()
This forces override of the Object class clone method. it makes a deep copy so a change in a subfilter does not affect the cloned version.

Returns:
the cloned object.


Copyright 2006 null. All Rights Reserved.