net.sf.json.filters
Class OrPropertyFilter

java.lang.Object
  extended by net.sf.json.filters.OrPropertyFilter
All Implemented Interfaces:
PropertyFilter

public class OrPropertyFilter
extends Object
implements PropertyFilter

Author:
Andres Almiray

Constructor Summary
OrPropertyFilter(PropertyFilter filter1, PropertyFilter filter2)
           
 
Method Summary
 boolean apply(Object source, String name, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrPropertyFilter

public OrPropertyFilter(PropertyFilter filter1,
                        PropertyFilter filter2)
Method Detail

apply

public boolean apply(Object source,
                     String name,
                     Object value)
Specified by:
apply in interface PropertyFilter
Parameters:
source - the owner of the property
name - the name of the property
value - the value of the property
Returns:
true if the property will be filtered out, false otherwise