public final class ElementMatcher extends Object
XPath
,
AttributeMatcher
Modifier and Type | Field and Description |
---|---|
XPath[] |
xpaths
The XPaths used to match elements.
|
Constructor and Description |
---|
ElementMatcher(XPath[] xpaths)
Constructs a matcher which can be used to match an element with
specified XPaths.
|
Modifier and Type | Method and Description |
---|---|
boolean |
match(Element element)
Matches specified element with an ordered list of XPaths.
|
public final XPath[] xpaths
public ElementMatcher(XPath[] xpaths)
public boolean match(Element element)
element
- element that is to be matchedtrue
if element matches; false
otherwise