net.sf.xbus.base.xml
Class IteratedWhitespaceInElementAndCommentDeletion

java.lang.Object
  extended by net.sf.xbus.base.xml.IteratedWhitespaceInElementAndCommentDeletion
All Implemented Interfaces:
IteratedNodeOperation

public class IteratedWhitespaceInElementAndCommentDeletion
extends java.lang.Object
implements IteratedNodeOperation

IteratedWhitespaceInElementAndCommentDeletion implements a DOM node operation to delete text nodes containing only whitespace within xml tags and comment nodes. This operation is used in DOM tree traversal operations by instantiating an object of this class.

Author:
Stephan Düwel

Constructor Summary
IteratedWhitespaceInElementAndCommentDeletion()
           
 
Method Summary
 void iteratedProcedure(org.w3c.dom.Node node)
          iteratedProcedure deletes all comment nodes and whitespace text nodes directly below the specified node - the latter if the parent is an element node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IteratedWhitespaceInElementAndCommentDeletion

public IteratedWhitespaceInElementAndCommentDeletion()
Method Detail

iteratedProcedure

public void iteratedProcedure(org.w3c.dom.Node node)
iteratedProcedure deletes all comment nodes and whitespace text nodes directly below the specified node - the latter if the parent is an element node. It is used in traversals.

Specified by:
iteratedProcedure in interface IteratedNodeOperation
Parameters:
node - the actual node to process