planetj.util
Class OrFilter

java.lang.Object
  |
  +--planetj.util.OrFilter
All Implemented Interfaces:
IFilter

public class OrFilter
extends Object
implements IFilter

A filter which accepts an item if either of its subfilters accept the item.


Field Summary
 
Fields inherited from interface planetj.util.IFilter
COMPARISON_CONVERSION, CONTAINS, ENDS_WITH, EQUAL, GREATER_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN, LESS_THAN_OR_EQUAL, STARTS_WITH
 
Constructor Summary
OrFilter(IFilter filter1, IFilter filter2)
          OrFilter constructor
 
Method Summary
 IFilter getFilter1()
          Gets the first subfilter
 IFilter getFilter2()
          Gets the second subfilter
 boolean meetsCriteria(Object o)
          Returns true if the object meets this filter's criteria.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrFilter

public OrFilter(IFilter filter1,
                IFilter filter2)
OrFilter constructor

Method Detail

getFilter1

public IFilter getFilter1()
Gets the first subfilter


getFilter2

public IFilter getFilter2()
Gets the second subfilter


meetsCriteria

public boolean meetsCriteria(Object o)
                      throws CMException
Returns true if the object meets this filter's criteria.

Specified by:
meetsCriteria in interface IFilter
CMException