org.apache.tika.sax.xpath
Class TextMatcher

java.lang.Object
  extended by org.apache.tika.sax.xpath.Matcher
      extended by org.apache.tika.sax.xpath.TextMatcher

public class TextMatcher
extends Matcher

Final evaluation state of a .../text() XPath expression. Matches all text children of the current element.


Field Summary
static Matcher INSTANCE
           
 
Fields inherited from class org.apache.tika.sax.xpath.Matcher
FAIL
 
Constructor Summary
TextMatcher()
           
 
Method Summary
 boolean matchesText()
          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, matchesAttribute, matchesElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final Matcher INSTANCE
Constructor Detail

TextMatcher

public TextMatcher()
Method Detail

matchesText

public boolean matchesText()
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


Copyright © 2007-2010 The Apache Software Foundation. All Rights Reserved.