public class CompositeFilter extends TaxonomyFilter
Modifier and Type | Field and Description |
---|---|
static String |
FILTER_NAME
Filter name.
|
Constructor and Description |
---|
CompositeFilter()
Construct an empty CompositeFilter, containing no filters.
|
Modifier and Type | Method and Description |
---|---|
void |
abstractKeywordFiltering(boolean filterConcrete,
boolean filterAbstract)
Constructs a AbstractKeywordFilter, which filters if facets are abstract or concrete.
|
void |
addTaxonomyFilter(TaxonomyFilter taxonomyFilter)
This makes it possible to add a TaxonomyFilter directly to the CompositeFilter.
|
void |
depthFiltering(int maximumDepth,
int filterDirection)
Construct a DepthFilter, which filters based on a maximumDepth and
a direction in the tree.
|
String |
filterTaxonomyContext()
This method is responsible for the actual filtering, and is only used internally.
|
List<TaxonomyFilter> |
getCompositeFilters()
This returns a list of the filters in this Composite filter.
|
String |
getFilterName()
This returns the name of the Filter.
|
void |
propertyKeywordFiltering(boolean filterHasChildren,
boolean filterNavigable)
Constructs a KeywordPropertyFilter which certain properties to use for filtering.
|
String |
toString()
Returns the settings of this CompositeFilter.
|
public static final String FILTER_NAME
public CompositeFilter()
public List<TaxonomyFilter> getCompositeFilters()
public String filterTaxonomyContext()
filterTaxonomyContext
in class TaxonomyFilter
public void addTaxonomyFilter(TaxonomyFilter taxonomyFilter)
taxonomyFilter
- The filter to add to the composite filterpublic void depthFiltering(int maximumDepth, int filterDirection)
maximumDepth
- The maximum to retrieve the Taxonomy for, use -1
for unlimited depthfilterDirection
- The direction to retrieve elements from the Taxonomypublic void abstractKeywordFiltering(boolean filterConcrete, boolean filterAbstract)
filterAbstract
- This sets if need to filter on abstract keywords, true for filter, false for not filteringfilterConcrete
- This sets if need to filter on concrete keyworsd, true for filter, false for not filteringpublic void propertyKeywordFiltering(boolean filterHasChildren, boolean filterNavigable)
filterHasChildren
- The setting to filter if element has children or has no childrenfilterNavigable
- The setting to filter if element is navigable or not navigablepublic String toString()
public String getFilterName()
getFilterName
in class TaxonomyFilter
Copyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries