Class NamedAttributeMatcher


  • public class NamedAttributeMatcher
    extends Matcher
    Final evaluation state of a .../@name XPath expression. Matches the named attributes of the current element.
    • Field Summary

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

        FAIL
    • Constructor Summary

      Constructors 
      Constructor Description
      NamedAttributeMatcher​(java.lang.String namespace, java.lang.String name)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NamedAttributeMatcher

        public NamedAttributeMatcher​(java.lang.String namespace,
                                     java.lang.String name)
    • Method Detail

      • matchesAttribute

        public boolean matchesAttribute​(java.lang.String namespace,
                                        java.lang.String name)
        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