|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tika.sax.xpath.Matcher
public class Matcher
XPath element matcher. A matcher instance encapsulates a specific state in XPath evaluation.
| Field Summary | |
|---|---|
static Matcher |
FAIL
State of a failed XPath evaluation, where nothing is matched. |
| Constructor Summary | |
|---|---|
Matcher()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Matcher FAIL
| Constructor Detail |
|---|
public Matcher()
| Method Detail |
|---|
public Matcher descend(java.lang.String namespace,
java.lang.String name)
namespace - element namespace or nullname - element name
public 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 nullname - attribute name
public boolean matchesText()
true if the XPath expression matches all text
nodes whose parent is the element associated with this evaluation
state.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||