class JoiningNodeIterator extends NodeIterator
iterate
the Node
s of a NodeList
. Depending on
the XmlCompareMode
given at construction it automatically joins Node
s of according
types
by returning them as a DocumentFragment
.Modifier and Type | Field and Description |
---|---|
private XmlCompareMode |
compareMode
The mode of comparison.
|
private Node |
next
Buffer for lookahead or
null . |
Constructor and Description |
---|
JoiningNodeIterator(NodeList nodeList,
XmlCompareMode mode)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Node |
findNext()
This method tries to find the
next element. |
findFirst, hasNext, next, remove
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
private final XmlCompareMode compareMode
private Node next
null
.public JoiningNodeIterator(NodeList nodeList, XmlCompareMode mode)
nodeList
- is the NodeList
to iterate.mode
- is the XmlCompareMode
.protected Node findNext()
AbstractIterator
next
element.findNext
in class NodeIterator
null
if done
.Copyright © 2001–2016 mmm-Team. All rights reserved.