class XmlDataNode.OnlyOneNode extends java.lang.Object implements java.util.ListIterator<XmlDataNode>, java.lang.Iterable<XmlDataNode>
| Modifier and Type | Field and Description | 
|---|---|
| private XmlDataNode | nd | 
| Constructor and Description | 
|---|
| OnlyOneNode(XmlDataNode nd)Constructor with the given one node or without node. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | add(XmlDataNode e) | 
| boolean | hasNext() | 
| boolean | hasPrevious() | 
| java.util.Iterator<XmlDataNode> | iterator() | 
| XmlDataNode | next() | 
| int | nextIndex() | 
| XmlDataNode | previous() | 
| int | previousIndex() | 
| void | remove() | 
| void | set(XmlDataNode e) | 
private XmlDataNode nd
OnlyOneNode(XmlDataNode nd)
nd - can be null, then the first call of hasNext() delivers false.public boolean hasNext()
hasNext in interface java.util.Iterator<XmlDataNode>hasNext in interface java.util.ListIterator<XmlDataNode>public XmlDataNode next()
next in interface java.util.Iterator<XmlDataNode>next in interface java.util.ListIterator<XmlDataNode>public java.util.Iterator<XmlDataNode> iterator()
iterator in interface java.lang.Iterable<XmlDataNode>public boolean hasPrevious()
hasPrevious in interface java.util.ListIterator<XmlDataNode>public XmlDataNode previous()
previous in interface java.util.ListIterator<XmlDataNode>public int nextIndex()
nextIndex in interface java.util.ListIterator<XmlDataNode>public int previousIndex()
previousIndex in interface java.util.ListIterator<XmlDataNode>public void set(XmlDataNode e)
set in interface java.util.ListIterator<XmlDataNode>public void add(XmlDataNode e)
add in interface java.util.ListIterator<XmlDataNode>public void remove()
remove in interface java.util.Iterator<XmlDataNode>remove in interface java.util.ListIterator<XmlDataNode>