|
||||||||||
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 org.apache.tika.sax.xpath.SubtreeMatcher
public class SubtreeMatcher
Evaluation state of a ...//...
XPath expression. Applies the
contained evaluation state to the current element and all its descendants.
Field Summary |
---|
Fields inherited from class org.apache.tika.sax.xpath.Matcher |
---|
FAIL |
Constructor Summary | |
---|---|
SubtreeMatcher(Matcher then)
|
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 |
Constructor Detail |
---|
public SubtreeMatcher(Matcher then)
Method Detail |
---|
public Matcher descend(java.lang.String namespace, java.lang.String name)
Matcher
descend
in class Matcher
namespace
- element namespace or null
name
- element name
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 name
public 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |