public abstract class SimpleElementFilter extends SimpleConfigurable implements ElementFilter
Constructor and Description |
---|
SimpleElementFilter() |
Modifier and Type | Method and Description |
---|---|
boolean |
applies(Element element)
If an element in a forest is of compatible type, does the filter apply to it?
|
boolean |
shouldDescendInto(Object element)
Should the forest traversal descend into the provided element? It is not guaranteed that the element is
of the type required by this parameter, but its children might be.
|
close, getJSONSchema, initialize
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
getExtensionId, getJSONSchema, initialize
public boolean applies(@Nullable Element element)
Filter
public boolean shouldDescendInto(@Nullable Object element)
Filter
Therefore the filter is given a chance to influence the decision even for elements of types that it is not declared to filter.
shouldDescendInto
in interface Filter<Element>
element
- the element to be descended intoCopyright © 2014-2020 Lukas Krejci. All Rights Reserved.