public class SubtreeSieve extends FilterIterator
Iterator wrapping an input Iterator
sieving out all Nodes provided by the input Iterator
that belong to a given sub-tree.
NOTE: The input Iterator MUST provide the
Nodes of the input node-set in document order (according
to XML Path Language
(XPath) Version 1.0, Section 5 ) with the following weakening: The order
of the namespace and attribute child nodes of an element may be arbitrary.
iterator_, nextObj_| Constructor and Description |
|---|
SubtreeSieve(Iterator iterator,
Node extinct)
Creates a new
SubtreeSieve with the given
Iterator providing the Nodes of the input node-set and
the given extinct node representing the root node of the
subtree to be omitted from the result. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
skip(Object obj)
Returns the given
node if it is not to be returned by this
SubtreeSieve, or null otherwise. |
hasNext, next, removeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic SubtreeSieve(Iterator iterator, Node extinct)
SubtreeSieve with the given
Iterator providing the Nodes of the input node-set and
the given extinct node representing the root node of the
subtree to be omitted from the result.iterator - an Iterator providing the Nodes of the input
node-set in document order.extinct - the root node of the subtree to be omitted from the resultpublic boolean skip(Object obj)
node if it is not to be returned by this
SubtreeSieve, or null otherwise.skip in class FilterIteratorobj - the Node ot be testednode if it is not to be returned by this
SubtreeSieve, or null otherwise© 2002-2005 IAIK, © 2004, 2006 - 2019 Stiftung SIC