org.enhydra.xml.dom
Class DOMTraversal.NodeHandler

java.lang.Object
  |
  +--org.enhydra.xml.dom.DOMTraversal.NodeHandler
All Implemented Interfaces:
DOMTraversal.Handler
Enclosing class:
DOMTraversal

public abstract class DOMTraversal.NodeHandler
extends Object
implements DOMTraversal.Handler

Implementation of handler that calls a single method for all node types.


Constructor Summary
DOMTraversal.NodeHandler()
           
 
Method Summary
 void handleAttr(Attr attr)
          Handler called for Attr nodes.
 void handleCDATASection(CDATASection cdata)
          Handler called for CDATASection nodes.
 void handleComment(Comment comment)
          Handler called for Comment nodes.
 void handleDocument(Document document)
          All standrd handler methods.
 void handleDocumentFragment(DocumentFragment documentFragment)
          Handler called for DocumentFragment nodes.
 void handleDocumentType(DocumentType documentType)
          Handler called for DocumentType nodes.
 void handleElement(Element element)
          Handler called for Element nodes.
 void handleEntity(Entity entity)
          Handler called for Entity nodes.
 void handleEntityReference(EntityReference entityRef)
          Handler called for EntityReference nodes.
abstract  void handleNode(Node node)
          Method that is called for all nodes.
 void handleNotation(Notation notation)
          Handler called for Notation nodes.
 void handleProcessingInstruction(ProcessingInstruction pi)
          Handler called for ProcessingInstruction nodes.
 void handleText(Text text)
          Handler called for Text nodes.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOMTraversal.NodeHandler

public DOMTraversal.NodeHandler()
Method Detail

handleNode

public abstract void handleNode(Node node)
                         throws Exception
Method that is called for all nodes.

handleDocument

public void handleDocument(Document document)
                    throws Exception
All standrd handler methods.
Specified by:
handleDocument in interface DOMTraversal.Handler

handleDocumentType

public void handleDocumentType(DocumentType documentType)
                        throws Exception
Description copied from interface: DOMTraversal.Handler
Handler called for DocumentType nodes. Use processDocumentTypeContents to traverse contain nodes.
Specified by:
handleDocumentType in interface DOMTraversal.Handler

handleDocumentFragment

public void handleDocumentFragment(DocumentFragment documentFragment)
                            throws Exception
Description copied from interface: DOMTraversal.Handler
Handler called for DocumentFragment nodes. Call processChildren to traverse child nodes.
Specified by:
handleDocumentFragment in interface DOMTraversal.Handler

handleAttr

public void handleAttr(Attr attr)
                throws Exception
Description copied from interface: DOMTraversal.Handler
Handler called for Attr nodes. Call processChildren to traverse child nodes.
Specified by:
handleAttr in interface DOMTraversal.Handler

handleEntity

public void handleEntity(Entity entity)
                  throws Exception
Description copied from interface: DOMTraversal.Handler
Handler called for Entity nodes. Call processChildren to traverse child nodes.
Specified by:
handleEntity in interface DOMTraversal.Handler

handleEntityReference

public void handleEntityReference(EntityReference entityRef)
                           throws Exception
Description copied from interface: DOMTraversal.Handler
Handler called for EntityReference nodes. Call processChildren to traverse child nodes.
Specified by:
handleEntityReference in interface DOMTraversal.Handler

handleElement

public void handleElement(Element element)
                   throws Exception
Description copied from interface: DOMTraversal.Handler
Handler called for Element nodes. Call processChildren to traverse child nodes. Call processAttributes to traverse attribute nodes.
Specified by:
handleElement in interface DOMTraversal.Handler

handleNotation

public void handleNotation(Notation notation)
                    throws Exception
Description copied from interface: DOMTraversal.Handler
Handler called for Notation nodes.
Specified by:
handleNotation in interface DOMTraversal.Handler

handleProcessingInstruction

public void handleProcessingInstruction(ProcessingInstruction pi)
                                 throws Exception
Description copied from interface: DOMTraversal.Handler
Handler called for ProcessingInstruction nodes.
Specified by:
handleProcessingInstruction in interface DOMTraversal.Handler

handleCDATASection

public void handleCDATASection(CDATASection cdata)
                        throws Exception
Description copied from interface: DOMTraversal.Handler
Handler called for CDATASection nodes.
Specified by:
handleCDATASection in interface DOMTraversal.Handler

handleComment

public void handleComment(Comment comment)
                   throws Exception
Description copied from interface: DOMTraversal.Handler
Handler called for Comment nodes.
Specified by:
handleComment in interface DOMTraversal.Handler

handleText

public void handleText(Text text)
                throws Exception
Description copied from interface: DOMTraversal.Handler
Handler called for Text nodes.
Specified by:
handleText in interface DOMTraversal.Handler


Copyright © 1999-2002 enhydra.org (Mark Diekhans, David Li, Richard Kunze). All Rights reserved.