planetj.util
Class AndFilter

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

public class AndFilter
extends Object
implements IFilter

A filter which accepts an item only if both 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
AndFilter(IFilter filter1, IFilter filter2)
          AndFilter 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

AndFilter

public AndFilter(IFilter filter1,
                 IFilter filter2)
AndFilter 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