Package org.apache.tika.sax.xpath
Class NodeMatcher
java.lang.Object
org.apache.tika.sax.xpath.Matcher
org.apache.tika.sax.xpath.NodeMatcher
Deprecated.
This version of the Apache Tika library is deprecated. Use your own version of Apache Tika.
Final evaluation state of a
.../node() XPath expression.
Matches all elements, attributes, and text.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanmatchesAttribute(String namespace, String name) Deprecated.Returnstrueif the XPath expression matches the named attribute of the element associated with this evaluation state.booleanDeprecated.Returnstrueif the XPath expression matches the element associated with this evaluation state.booleanDeprecated.Returnstrueif the XPath expression matches all text nodes whose parent is the element associated with this evaluation state.
-
Field Details
-
INSTANCE
Deprecated.
-
-
Constructor Details
-
NodeMatcher
public NodeMatcher()Deprecated.
-
-
Method Details
-
matchesElement
public boolean matchesElement()Deprecated.Description copied from class:MatcherReturnstrueif the XPath expression matches the element associated with this evaluation state.- Overrides:
matchesElementin classMatcher- Returns:
- XPath evaluation state for this element
-
matchesAttribute
Deprecated.Description copied from class:MatcherReturnstrueif the XPath expression matches the named attribute of the element associated with this evaluation state.- Overrides:
matchesAttributein classMatcher- Parameters:
namespace- attribute namespace ornullname- attribute name- Returns:
- XPath evaluation state for named attribute of this element
-
matchesText
public boolean matchesText()Deprecated.Description copied from class:MatcherReturnstrueif the XPath expression matches all text nodes whose parent is the element associated with this evaluation state.- Overrides:
matchesTextin classMatcher- Returns:
- XPath evaluation state for text children of this element
-