Enhydra 3.1.1b1 API

org.enhydra.xml.dom
Class DOMInfoPrinter

java.lang.Object
  |
  +--org.enhydra.xml.dom.DOMInfoPrinter
Direct Known Subclasses:
LazyDOMInfoPrinter

public synchronized class DOMInfoPrinter
extends java.lang.Object
implements DOMTraversal.Handler


Field Summary
protected  boolean fAllAttributes
           
protected  boolean fAttrSkipPrint
           
protected  java.io.PrintWriter fOut
           
protected  boolean fVerboseAttributes
           
protected  int level
           
 
Constructor Summary
protected DOMInfoPrinter(int, DOMTraversal, java.io.PrintWriter)
           
 
Method Summary
 void handleAttr(Attr)
          Handler called for Attr nodes.
 void handleCDATASection(CDATASection)
          Handler called for CDATASection nodes.
 void handleComment(Comment)
          Handler called for Comment nodes.
 void handleDocument(Document)
          Handler called for Document nodes.
 void handleDocumentFragment(DocumentFragment)
          Handler called for DocumentFragment nodes.
 void handleDocumentType(DocumentType)
          Handler called for DocumentType nodes.
 void handleElement(Element)
          Handler called for Element nodes.
 void handleEntity(Entity)
          Handler called for Entity nodes.
 void handleEntityReference(EntityReference)
          Handler called for EntityReference nodes.
 void handleNotation(Notation)
          Handler called for Notation nodes.
 void handleProcessingInstruction(ProcessingInstruction)
          Handler called for ProcessingInstruction nodes.
 void handleText(Text)
          Handler called for Text nodes.
protected  boolean hasPrintAttributes(Element)
           
protected  void printIndent()
           
protected  void printNodeName(Node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fOut

protected java.io.PrintWriter fOut

fVerboseAttributes

protected boolean fVerboseAttributes

fAllAttributes

protected boolean fAllAttributes

fAttrSkipPrint

protected boolean fAttrSkipPrint

level

protected int level
Constructor Detail

DOMInfoPrinter

protected DOMInfoPrinter(int,
                         DOMTraversal,
                         java.io.PrintWriter)
Method Detail

printIndent

protected void printIndent()

printNodeName

protected void printNodeName(Node)

hasPrintAttributes

protected boolean hasPrintAttributes(Element)

handleDocument

public void handleDocument(Document)
Description copied from interface: DOMTraversal.Handler
Handler called for Document nodes. Call processDocumentType to traverse child nodes. Call processChildren to traverse child nodes.
Specified by:
handleDocument in interface DOMTraversal.Handler

handleDocumentType

public void handleDocumentType(DocumentType)
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)
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)
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)
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)
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)
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)
Description copied from interface: DOMTraversal.Handler
Handler called for Notation nodes.
Specified by:
handleNotation in interface DOMTraversal.Handler

handleProcessingInstruction

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

handleCDATASection

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

handleComment

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

handleText

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

Enhydra 3.1.1b1 API