Qizx/Open v0.4

net.xfra.qizxopen.dm
Interface NodeSequence


public interface NodeSequence

Abstract Iterator on Nodes.

Nodes are enumerated through nextNode() and currentNode().

The sequence cannot be rewinded, but it can be cloned in its initial state by reborn().


Method Summary
 Node currentNode()
          The last node reached (must be preceded by nextNode(), otherwise the result is indefined.)
 boolean nextNode()
          Attempts to get the next Node.
 NodeSequence reborn()
          New incarnation of this sequence: a clone in initial state.
 

Method Detail

nextNode

public boolean nextNode()
Attempts to get the next Node. If true is returned, the Node value is available through currentNode().


currentNode

public Node currentNode()
The last node reached (must be preceded by nextNode(), otherwise the result is indefined.)


reborn

public NodeSequence reborn()
New incarnation of this sequence: a clone in initial state.


 Copyright Xavier FRANC 2003-2004