Interface IXPathNodeMatcher
-
- All Known Implementing Classes:
AbstractXPathNodeMatcher,XPathAttributeMatcher,XPathAttributeNameMatcher,XPathElementMatcher,XPathTextMatcher
public interface IXPathNodeMatcherXPath node matcher tests ifNodematch a fragment of XPath.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classIXPathNodeMatcher.MatcherType
-
Field Summary
Fields Modifier and Type Field Description static IXPathNodeMatcher[]EMPTY_NODE_MATCHER
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description XPathMatchergetOwnerMatcher()Returns the owner matcher.IXPathNodeMatcher.MatcherTypegetType()Returns matcher type.booleanisAny()Returns true if matcher is any (Node is every time matched) and false otherwise.booleanmatch(Node testNode, Collection<String> wildcardValues)Match theNodeand fill wildcard values if node matcher define widcard.
-
-
-
Field Detail
-
EMPTY_NODE_MATCHER
static final IXPathNodeMatcher[] EMPTY_NODE_MATCHER
-
-
Method Detail
-
getOwnerMatcher
XPathMatcher getOwnerMatcher()
Returns the owner matcher.- Returns:
-
getType
IXPathNodeMatcher.MatcherType getType()
Returns matcher type.- Returns:
-
match
boolean match(Node testNode, Collection<String> wildcardValues)
Match theNodeand fill wildcard values if node matcher define widcard.- Parameters:
testNode- node to test.wildcardValues- wildcard values if node matcher define widcard.- Returns:
-
isAny
boolean isAny()
Returns true if matcher is any (Node is every time matched) and false otherwise.- Returns:
-
-