|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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(String namespace,
String name)
Returns the XPath evaluation state that results from descending to a child element with the given name. |
boolean |
matchesAttribute(String namespace,
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(String namespace, String name)
namespace
- element namespace or null
name
- element name
public boolean matchesElement()
true
if the XPath expression matches
the element associated with this evaluation state.
public boolean matchesAttribute(String namespace, 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 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 |