Package net.sf.json.filters
Class CompositePropertyFilter
- java.lang.Object
-
- net.sf.json.filters.CompositePropertyFilter
-
- All Implemented Interfaces:
PropertyFilter
public class CompositePropertyFilter extends Object implements PropertyFilter
- Author:
- Andres Almiray
-
-
Constructor Summary
Constructors Constructor Description CompositePropertyFilter()
CompositePropertyFilter(List filters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPropertyFilter(PropertyFilter filter)
boolean
apply(Object source, String name, Object value)
void
removePropertyFilter(PropertyFilter filter)
-
-
-
Constructor Detail
-
CompositePropertyFilter
public CompositePropertyFilter()
-
CompositePropertyFilter
public CompositePropertyFilter(List filters)
-
-
Method Detail
-
addPropertyFilter
public void addPropertyFilter(PropertyFilter filter)
-
apply
public boolean apply(Object source, String name, Object value)
- Specified by:
apply
in interfacePropertyFilter
- Parameters:
source
- the owner of the propertyname
- the name of the propertyvalue
- the value of the property- Returns:
- true if the property will be filtered out, false otherwise
-
removePropertyFilter
public void removePropertyFilter(PropertyFilter filter)
-
-