Class NodeMatcher

java.lang.Object
org.apache.tika.sax.xpath.Matcher
org.apache.tika.sax.xpath.NodeMatcher

@Deprecated(since="2026-04-30") public class NodeMatcher extends Matcher
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
    Modifier and Type
    Field
    Description
    static final Matcher
    Deprecated.
     

    Fields inherited from class org.apache.tika.sax.xpath.Matcher

    FAIL
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    matchesAttribute(String namespace, String name)
    Deprecated.
    Returns true if the XPath expression matches the named attribute of the element associated with this evaluation state.
    boolean
    Deprecated.
    Returns true if the XPath expression matches the element associated with this evaluation state.
    boolean
    Deprecated.
    Returns true if the XPath expression matches all text nodes whose parent is the element associated with this evaluation state.

    Methods inherited from class org.apache.tika.sax.xpath.Matcher

    descend

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • INSTANCE

      public static final Matcher INSTANCE
      Deprecated.
  • Constructor Details

    • NodeMatcher

      public NodeMatcher()
      Deprecated.
  • Method Details

    • matchesElement

      public boolean matchesElement()
      Deprecated.
      Description copied from class: Matcher
      Returns true if the XPath expression matches the element associated with this evaluation state.
      Overrides:
      matchesElement in class Matcher
      Returns:
      XPath evaluation state for this element
    • matchesAttribute

      public boolean matchesAttribute(String namespace, String name)
      Deprecated.
      Description copied from class: Matcher
      Returns true if the XPath expression matches the named attribute of the element associated with this evaluation state.
      Overrides:
      matchesAttribute in class Matcher
      Parameters:
      namespace - attribute namespace or null
      name - attribute name
      Returns:
      XPath evaluation state for named attribute of this element
    • matchesText

      public boolean matchesText()
      Deprecated.
      Description copied from class: Matcher
      Returns true if the XPath expression matches all text nodes whose parent is the element associated with this evaluation state.
      Overrides:
      matchesText in class Matcher
      Returns:
      XPath evaluation state for text children of this element