Enhydra 3.1 API

org.enhydra.xml.dom
Interface DOMTraversal.Handler

All Known Implementing Classes:
DOMInfoPrinter
Enclosing class:
DOMTraversal

public static interface DOMTraversal.Handler

Interface for node callback object.


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)
          Handler called for Document nodes.
 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.
 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.
 

Method Detail

handleDocument

public void handleDocument(Document document)
                    throws java.lang.Exception
Handler called for Document nodes. Call processDocumentType to traverse child nodes. Call processChildren to traverse child nodes.

handleDocumentType

public void handleDocumentType(DocumentType documentType)
                        throws java.lang.Exception
Handler called for DocumentType nodes. Use processDocumentTypeContents to traverse contain nodes.

handleDocumentFragment

public void handleDocumentFragment(DocumentFragment documentFragment)
                            throws java.lang.Exception
Handler called for DocumentFragment nodes. Call processChildren to traverse child nodes.

handleAttr

public void handleAttr(Attr attr)
                throws java.lang.Exception
Handler called for Attr nodes. Call processChildren to traverse child nodes.

handleEntity

public void handleEntity(Entity entity)
                  throws java.lang.Exception
Handler called for Entity nodes. Call processChildren to traverse child nodes.

handleEntityReference

public void handleEntityReference(EntityReference entityRef)
                           throws java.lang.Exception
Handler called for EntityReference nodes. Call processChildren to traverse child nodes.

handleElement

public void handleElement(Element element)
                   throws java.lang.Exception
Handler called for Element nodes. Call processChildren to traverse child nodes. Call processAttributes to traverse attribute nodes.

handleNotation

public void handleNotation(Notation notation)
                    throws java.lang.Exception
Handler called for Notation nodes.

handleProcessingInstruction

public void handleProcessingInstruction(ProcessingInstruction pi)
                                 throws java.lang.Exception
Handler called for ProcessingInstruction nodes.

handleCDATASection

public void handleCDATASection(CDATASection cdata)
                        throws java.lang.Exception
Handler called for CDATASection nodes.

handleComment

public void handleComment(Comment comment)
                   throws java.lang.Exception
Handler called for Comment nodes.

handleText

public void handleText(Text text)
                throws java.lang.Exception
Handler called for Text nodes.

Enhydra 3.1 API