Package com.ocs.dynamo.filter
Class AbstractJunctionFilter
- java.lang.Object
-
- com.ocs.dynamo.filter.AbstractFilter
-
- com.ocs.dynamo.filter.AbstractJunctionFilter
-
- All Implemented Interfaces:
Filter
public abstract class AbstractJunctionFilter extends AbstractFilter
Abstract class for composite filters- Author:
- bas.rutten
-
-
Constructor Summary
Constructors Constructor Description AbstractJunctionFilter(Filter... filters)ConstructorAbstractJunctionFilter(Collection<Filter> filters)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)List<Filter>getFilters()Returns an collection of the sub-filters of this composite filter.inthashCode()voidremove(Filter filter)Removes a filtervoidreplace(Filter oldFilter, Filter newFilter, boolean firstOnly)Replaces a filter by a new filter.StringtoString()-
Methods inherited from class com.ocs.dynamo.filter.AbstractFilter
and, and, and, applyFilter, between, getProperty, greater, greaterOrEqual, isEqual, isNull, less, lessOrEqual, like, like, likeIgnoreCase, not, or, or, or
-
-
-
-
Constructor Detail
-
AbstractJunctionFilter
public AbstractJunctionFilter(Filter... filters)
Constructor- Parameters:
filters-
-
AbstractJunctionFilter
public AbstractJunctionFilter(Collection<Filter> filters)
Constructor- Parameters:
filters-
-
-
Method Detail
-
getFilters
public List<Filter> getFilters()
Returns an collection of the sub-filters of this composite filter.- Returns:
-
toString
public String toString()
- Overrides:
toStringin classAbstractFilter
-
remove
public void remove(Filter filter)
Removes a filter- Parameters:
filter- the filter to remove
-
replace
public void replace(Filter oldFilter, Filter newFilter, boolean firstOnly)
Replaces a filter by a new filter. Does nothing if the old filter is not found- Parameters:
oldFilter- the filter that must be replacednewFilter- the filter that must replace the old filterfirstOnly- indicates whether only the first match must be replaced
-
-