public class XPathElementMatcher extends AbstractXPathNodeMatcher
IXPathNodeMatcher.MatcherType| Modifier and Type | Field and Description |
|---|---|
static String |
ANY_ELEMENT_NAME |
EMPTY_NODE_MATCHER| Constructor and Description |
|---|
XPathElementMatcher(String prefix,
String localName,
XPathMatcher matcher) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(XPathAttributeMatcher matcher)
Add XPath attribute matcher.
|
String |
getLocalName()
Returns the element name to match.
|
String |
getPrefix()
Returns the prefix.
|
IXPathNodeMatcher.MatcherType |
getType()
Returns matcher type.
|
boolean |
isAny()
Returns true if matcher is any (Node is every time matched) and false
otherwise.
|
boolean |
match(Node testNode,
Collection<String> wildcardValues)
Match the
Node and fill wildcard values if node matcher define
widcard. |
getOwnerMatcherpublic static final String ANY_ELEMENT_NAME
public XPathElementMatcher(String prefix, String localName, XPathMatcher matcher)
public IXPathNodeMatcher.MatcherType getType()
IXPathNodeMatcherpublic boolean match(Node testNode, Collection<String> wildcardValues)
IXPathNodeMatcherNode and fill wildcard values if node matcher define
widcard.testNode - node to test.wildcardValues - wildcard values if node matcher define widcard.public String getPrefix()
public String getLocalName()
public boolean isAny()
IXPathNodeMatcherpublic void add(XPathAttributeMatcher matcher)
matcher - Copyright © 2021. All rights reserved.