|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.townleyenterprises.filter.LogicalFilter
This package class provides the base operation common to all logical comparison filters within the system.
Field Summary | |
protected java.util.ArrayList |
_filters
the list of filters to be executed over the object |
Constructor Summary | |
protected |
LogicalFilter(java.lang.String op)
The constructor is used simply to provide an operator string description which is used in the toString() method. |
Method Summary | |
void |
addFilter(Filter f)
Adds a new filter to this compound filter. |
void |
clear()
This method is used to clear all of the filters in this instance. |
abstract 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. |
int |
getFilterCount()
This method returns the number of filters in the compound filter. |
java.util.Iterator |
iterator()
Returns an iterator over the filters in this filter. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected final java.util.ArrayList _filters
Constructor Detail |
protected LogicalFilter(java.lang.String op)
op
- the operator string which should be displayedMethod Detail |
public void addFilter(Filter f)
f
- the new filterpublic abstract boolean doFilter(java.lang.Object o)
doFilter
in interface Filter
o
- the object to be tested
public int getFilterCount()
public void clear()
public java.util.Iterator iterator()
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |