org.jcreme.filters
Class ANDFilter
java.lang.Object
org.jcreme.filters.BaseReportFilter
org.jcreme.filters.ANDFilter
- All Implemented Interfaces:
- java.lang.Cloneable, Filter, ReportFilter, java.io.Serializable
- public class ANDFilter
- extends BaseReportFilter
This implementation of the ReportFilter interface enables to combine a number
of other ReportFilter with AND logic operators.
This means that a value tested through this filter would have to qualify for
each individual component filter.
- Version:
- $Revision: 1.2 $
- Author:
- $Author: dbregeon $
- See Also:
- Serialized Form
Method Summary |
boolean |
accept(java.lang.Object obj)
This is the actual filtering method. |
java.lang.Object |
clone()
This method clones this filter and the resulting ANDFilter has the
component filters clones as components. |
ReportFilter[] |
getFilters()
This method gives access to the filters combined by this ANDFilter. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
static final long serialVersionUID
- See Also:
- Constant Field Values
ANDFilter
public ANDFilter(ReportFilter[] filters)
- Creates new ANDFilter
- Parameters:
filters
- the filters combined by this ANDFilter.
accept
public boolean accept(java.lang.Object obj)
- This is the actual filtering method.
- Parameters:
obj
- object to filter.
- Returns:
- true if the given object satisfies all the conditions of the
filter.
getFilters
public ReportFilter[] getFilters()
- This method gives access to the filters combined by this ANDFilter.
- Returns:
- the component filters.
clone
public java.lang.Object clone()
- This method clones this filter and the resulting ANDFilter has the
component filters clones as components.
- Specified by:
clone
in interface Filter
- Overrides:
clone
in class BaseReportFilter
- Returns:
- the cloned ANDFilter.
Copyright 2006 null. All Rights Reserved.