net.sf.mmm.util.xml.base
Class JoiningNodeIterator
java.lang.Object
net.sf.mmm.util.collection.base.AbstractIterator<Node>
net.sf.mmm.util.xml.base.NodeIterator
net.sf.mmm.util.xml.base.JoiningNodeIterator
- All Implemented Interfaces:
- Iterator<Node>
class JoiningNodeIterator
- extends NodeIterator
This class is used to iterate the
Nodes of a NodeList. Depending on the XmlCompareMode
given at construction
it automatically joins Nodes of according types by returning them as a DocumentFragment.
- Since:
- 1.0.2
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
|
Method Summary |
protected Node |
findNext()
This method tries to find the next element. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
compareMode
private final XmlCompareMode compareMode
- The mode of comparison.
next
private Node next
- Buffer for lookahead or
null.
JoiningNodeIterator
public JoiningNodeIterator(NodeList nodeList,
XmlCompareMode mode)
- The constructor.
- Parameters:
nodeList - is the NodeList to iterate.mode - is the XmlCompareMode.
findNext
protected Node findNext()
- This method tries to find the
next element.
- Overrides:
findNext in class NodeIterator
- Returns:
- the next element or
null if done.
Copyright © 2001-2010 mmm-Team. All Rights Reserved.