public class CompositeMatcher extends Matcher
Constructor and Description |
---|
CompositeMatcher(Matcher a,
Matcher b) |
Modifier and Type | Method and Description |
---|---|
Matcher |
descend(java.lang.String namespace,
java.lang.String name)
Returns the XPath evaluation state that results from descending
to a child element with the given name.
|
boolean |
matchesAttribute(java.lang.String namespace,
java.lang.String name)
Returns
true if the XPath expression matches the named
attribute of the element associated with this evaluation state. |
boolean |
matchesElement()
Returns
true if the XPath expression matches
the element associated with this evaluation state. |
boolean |
matchesText()
Returns
true if the XPath expression matches all text
nodes whose parent is the element associated with this evaluation
state. |
public Matcher descend(java.lang.String namespace, java.lang.String name)
Matcher
public boolean matchesElement()
Matcher
true
if the XPath expression matches
the element associated with this evaluation state.matchesElement
in class Matcher
public boolean matchesAttribute(java.lang.String namespace, java.lang.String name)
Matcher
true
if the XPath expression matches the named
attribute of the element associated with this evaluation state.matchesAttribute
in class Matcher
namespace
- attribute namespace or null
name
- attribute namepublic boolean matchesText()
Matcher
true
if the XPath expression matches all text
nodes whose parent is the element associated with this evaluation
state.matchesText
in class Matcher
Copyright © 2010 - 2020 Adobe. All Rights Reserved