public class Matcher
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static Matcher |
FAIL
State of a failed XPath evaluation, where nothing is matched.
|
Constructor and Description |
---|
Matcher() |
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 static final Matcher FAIL
public Matcher descend(java.lang.String namespace, java.lang.String name)
namespace
- element namespace or null
name
- element namepublic boolean matchesElement()
true
if the XPath expression matches
the element associated with this evaluation state.public boolean matchesAttribute(java.lang.String namespace, java.lang.String name)
true
if the XPath expression matches the named
attribute of the element associated with this evaluation state.namespace
- attribute namespace or null
name
- attribute namepublic boolean matchesText()
true
if the XPath expression matches all text
nodes whose parent is the element associated with this evaluation
state.Copyright © 2010 - 2020 Adobe. All Rights Reserved