net.obsearch.filter
Class FilterOr<O extends OB>

java.lang.Object
  extended by net.obsearch.filter.FilterOr<O>
All Implemented Interfaces:
Filter<O>

public final class FilterOr<O extends OB>
extends Object
implements Filter<O>

FilterOr creates an or of filters. If any of the added filters returns true, this filter also returns true.

Author:
Arnoldo Jose Muller Molina

Constructor Summary
FilterOr()
           
 
Method Summary
 boolean accept(O dbObject, O query)
          Returning true implies that the object "dbObject" will be included in the result set.
 void addFilter(Filter<O> f)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterOr

public FilterOr()
Method Detail

accept

public boolean accept(O dbObject,
                      O query)
Description copied from interface: Filter
Returning true implies that the object "dbObject" will be included in the result set.

Specified by:
accept in interface Filter<O extends OB>
Parameters:
dbObject - Object that is considered as a result.
query - Original query provided by the user.
Returns:
true if dbObject is to be included in the result set.

addFilter

public void addFilter(Filter<O> f)


Copyright © 2007-2011 Arnoldo Jose Muller Molina. All Rights Reserved.