org.apache.tika.sax.xpath
Class NamedElementMatcher

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

public class NamedElementMatcher
extends ChildMatcher

Intermediate evaluation state of a .../name... XPath expression. Matches nothing, but specifies the evaluation state for the child elements with the given name.


Field Summary
 
Fields inherited from class org.apache.tika.sax.xpath.Matcher
FAIL
 
Constructor Summary
protected NamedElementMatcher(java.lang.String namespace, java.lang.String name, Matcher then)
           
 
Method Summary
 Matcher descend(java.lang.String namespace, java.lang.String name)
          Returns the XPath evaluation state that results from descending to a child element with the given name.
 
Methods inherited from class org.apache.tika.sax.xpath.Matcher
matchesAttribute, matchesElement, matchesText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamedElementMatcher

protected NamedElementMatcher(java.lang.String namespace,
                              java.lang.String name,
                              Matcher then)
Method Detail

descend

public Matcher descend(java.lang.String namespace,
                       java.lang.String name)
Description copied from class: Matcher
Returns the XPath evaluation state that results from descending to a child element with the given name.

Overrides:
descend in class ChildMatcher
Parameters:
namespace - element namespace or null
name - element name
Returns:
next XPath evaluation state


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