Package org.apache.tika.sax.xpath
Class AttributeMatcher
- java.lang.Object
-
- org.apache.tika.sax.xpath.Matcher
-
- org.apache.tika.sax.xpath.AttributeMatcher
-
public class AttributeMatcher extends Matcher
Final evaluation state of a.../@*
XPath expression. Matches all attributes of the current element.
-
-
Constructor Summary
Constructors Constructor Description AttributeMatcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
matchesAttribute(String namespace, String name)
Returnstrue
if the XPath expression matches the named attribute of the element associated with this evaluation state.-
Methods inherited from class org.apache.tika.sax.xpath.Matcher
descend, matchesElement, matchesText
-
-
-
-
Field Detail
-
INSTANCE
public static final Matcher INSTANCE
-
-
Method Detail
-
matchesAttribute
public boolean matchesAttribute(String namespace, String name)
Description copied from class:Matcher
Returnstrue
if the XPath expression matches the named attribute of the element associated with this evaluation state.- Overrides:
matchesAttribute
in classMatcher
- Parameters:
namespace
- attribute namespace ornull
name
- attribute name- Returns:
- XPath evaluation state for named attribute of this element
-
-