C- the type of the criterion evaluated by this matcher
public interface NodeMatcher<C>
An interface for matching nodes based on specific criteria.
This interface is used by
NodeHandler to support advanced filtering
on the child nodes of a given parent node. This is useful for instance for
ExpressionEngine implementations which do no direct or strict
matches based on node names. An example could be an expression engine that
treats the passed in node keys in a case-insensitive manner. Such an engine
would use a special case-insensitive matcher when resolving configuration
The idea behind this interface is that a matcher has to match a property of a node against a given criterion. This criterion is passed to the matching function so that matchers can be implemented in a state-less fashion and shared between multiple components.
<T> boolean matches(T node, NodeHandler<T> handler, C criterion)
T- the type of the node
node- the node to be tested
handler- the corresponding
criterion- the criterion to match against
Copyright © 2001–2020 The Apache Software Foundation. All rights reserved.