org.ozoneDB.xml.dom.iterator
Interface NodeIteratorListener


public interface NodeIteratorListener

Listener interface allows node to notify iterator when a child is removed, so iterator may adjust accordingly. When an iterator is created on a node tree, the iterator is registered as a listener on that tree. When a node is removed from that tree, the iterator is notified by the tree top node, and if pointing to that node will adjust itself to point to a different node that still belongs to the tree,

Version:
$Revision: 1.2 $ $Date: 2003/11/20 23:18:42 $
Author:
Assaf Arkin

Method Summary
 void removeNode(org.w3c.dom.Node node)
          Called to notify this iterator that a particular node has been removed.
 

Method Detail

removeNode

public void removeNode(org.w3c.dom.Node node)
Called to notify this iterator that a particular node has been removed. If the iterator is pointing at that node, or one of its childern, it must adjust accordingly.

This method only affects the iterator if it is pointing at the removed node or a child of the removed node. It does not affect the iterator if it is pointing to a parent of the removed node, or the removed node is on some other branch of the document tree.

Parameters:
node - The node being removed


Copyright © 2004 The Ozone Database Project - www.ozone-db.org. All Rights Reserved.