sk.uniba.euromath.document
Class ContentNodesIterator

java.lang.Object
  extended by sk.uniba.euromath.document.ContentNodesIterator
All Implemented Interfaces:
Iterator<Node>

Deprecated. use STAX

@Deprecated
public final class ContentNodesIterator
extends Object
implements Iterator<Node>

Iterates over the content nodes (comment, pi, text and element nodes). Goes through entity reference nodes. Iterator does not iterate through contents of other elements. Class is not intended to be subclassed nor instantiated by clients.

Author:
Martin Vysny

Field Summary
 Node node
          Deprecated. The node where the iteration shall occur.
 
Constructor Summary
ContentNodesIterator(Node node)
          Deprecated. Constructs the instance.
 
Method Summary
 boolean hasNext()
          Deprecated.  
 void moveToNextIdNode()
          Deprecated. Skips all nodes belonging to same ID-level node as node returned by the last call to next() function.
 Node next()
          Deprecated.  
 void remove()
          Deprecated.  
 void setNext(Node node)
          Deprecated. Sets the node that shall be returned by the next call to the next() function.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

node

public final Node node
Deprecated. 
The node where the iteration shall occur.

Constructor Detail

ContentNodesIterator

public ContentNodesIterator(Node node)
Deprecated. 
Constructs the instance.

Parameters:
node - children of the node are to be iterated
Method Detail

hasNext

public boolean hasNext()
Deprecated. 
Specified by:
hasNext in interface Iterator<Node>

next

public Node next()
Deprecated. 
Specified by:
next in interface Iterator<Node>

remove

public void remove()
Deprecated. 
Specified by:
remove in interface Iterator<Node>

moveToNextIdNode

public void moveToNextIdNode()
Deprecated. 
Skips all nodes belonging to same ID-level node as node returned by the last call to next() function. Next next() function call shall return node from next ID-level node.


setNext

public void setNext(Node node)
Deprecated. 
Sets the node that shall be returned by the next call to the next() function.

Parameters:
node - the node to set. If null then the iterator had walked over last item and next() call shall fail


Copyright © 2003-2006 null. All Rights Reserved.