public class DepthFilter extends TaxonomyFilter
Modifier and Type | Field and Description |
---|---|
static int |
FILTER_DOWN
This represent Downwards filtering using the DepthFilters direction.
|
static String |
FILTER_NAME
Filter name.
|
static int |
FILTER_UP
This represent Upwards filtering using the DepthFilters direction.
|
static int |
UNLIMITED_DEPTH
When this is used as the maximumDepth the whole tree will be retrieved.
|
Constructor and Description |
---|
DepthFilter(int maximumDepth,
int direction)
Construct a DepthFilter, which filters based on a maximumDepth and
a direction in the tree.
|
Modifier and Type | Method and Description |
---|---|
String |
filterTaxonomyContext()
This method is responsible for the building of a query used to retrieve a filtered taxonomy.
|
String |
getFilterName()
This returns the name of the Filter.
|
String |
toString()
This prints out the current settings of this DepthFilter.
|
public static final String FILTER_NAME
public static final int FILTER_UP
public static final int FILTER_DOWN
public static final int UNLIMITED_DEPTH
public DepthFilter(int maximumDepth, int direction)
maximumDepth
- The maximum to retrieve the Taxonomy for, use -1
for unlimited depthdirection
- The direction to retrieve elements from the Taxonomypublic String filterTaxonomyContext()
filterTaxonomyContext
in class TaxonomyFilter
public 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