Qizx/open API

net.axyana.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()
                 throws DataModelException
Attempts to get the next Node. If true is returned, the Node value is available through currentNode().

Throws:
DataModelException

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.


© 2005 Axyana Software