public class CombinedFilter extends Object implements CPResourceFilter
CPScanner accepts multiple
filters as parameters, its default joins those filters with 'and' logical operator. This filter
is required for such cases that you need multiple filter to be joined with logical 'or' operator.| Constructor and Description |
|---|
CombinedFilter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(Object subject)
Tells whether the given subject is accepted or not.
|
CombinedFilter |
appendFilter(CPResourceFilter filter)
Appends another filter to this filter
|
CombinedFilter |
combineWithAnd()
Combines the given filters with the logical 'and' operator
|
CombinedFilter |
combineWithOr()
Combines the given filters with the logical 'or' operator.
|
boolean |
filterable(Object subject)
Tells if the given subject is filterable by this interface
|
String |
toString() |
public boolean accept(Object subject)
CPResourceFilteraccept in interface CPResourceFiltersubject - parameter to checkpublic boolean filterable(Object subject)
CPResourceFilterfilterable in interface CPResourceFilterpublic CombinedFilter combineWithOr()
public CombinedFilter combineWithAnd()
public CombinedFilter appendFilter(CPResourceFilter filter)
filter - that need to be combined within thisCopyright © 2013. All Rights Reserved.