Package org.apache.tika.sax.xpath
Class SubtreeMatcher
- java.lang.Object
- 
- org.apache.tika.sax.xpath.Matcher
- 
- org.apache.tika.sax.xpath.SubtreeMatcher
 
 
- 
 public class SubtreeMatcher extends Matcher Evaluation state of a...//...XPath expression. Applies the contained evaluation state to the current element and all its descendants.
- 
- 
Constructor SummaryConstructors Constructor Description SubtreeMatcher(Matcher then)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Matcherdescend(String namespace, String name)Returns the XPath evaluation state that results from descending to a child element with the given name.booleanmatchesAttribute(String namespace, String name)Returnstrueif the XPath expression matches the named attribute of the element associated with this evaluation state.booleanmatchesElement()Returnstrueif the XPath expression matches the element associated with this evaluation state.booleanmatchesText()Returnstrueif the XPath expression matches all text nodes whose parent is the element associated with this evaluation state.
 
- 
- 
- 
Constructor Detail- 
SubtreeMatcherpublic SubtreeMatcher(Matcher then) 
 
- 
 - 
Method Detail- 
descendpublic Matcher descend(String namespace, String name) Description copied from class:MatcherReturns the XPath evaluation state that results from descending to a child element with the given name.
 - 
matchesElementpublic boolean matchesElement() Description copied from class:MatcherReturnstrueif the XPath expression matches the element associated with this evaluation state.- Overrides:
- matchesElementin class- Matcher
- Returns:
- XPath evaluation state for this element
 
 - 
matchesAttributepublic boolean matchesAttribute(String namespace, String name) Description copied from class:MatcherReturnstrueif the XPath expression matches the named attribute of the element associated with this evaluation state.- Overrides:
- matchesAttributein class- Matcher
- Parameters:
- namespace- attribute namespace or- null
- name- attribute name
- Returns:
- XPath evaluation state for named attribute of this element
 
 - 
matchesTextpublic boolean matchesText() Description copied from class:MatcherReturnstrueif the XPath expression matches all text nodes whose parent is the element associated with this evaluation state.- Overrides:
- matchesTextin class- Matcher
- Returns:
- XPath evaluation state for text children of this element
 
 
- 
 
-