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.
| Fields inherited from class org.apache.tika.sax.xpath.Matcher |
FAIL |
|
Method Summary |
boolean |
matchesAttribute(String namespace,
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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final Matcher INSTANCE
AttributeMatcher
public AttributeMatcher()
matchesAttribute
public boolean matchesAttribute(String namespace,
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 nullname - attribute name
- Returns:
- XPath evaluation state for named attribute of this element
Copyright © 2007-2011 The Apache Software Foundation. All Rights Reserved.