|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.enhydra.xml.dom.DOMInfoPrinter
DOMTraversal handler for DOMInfo, using only generic DOM interfaces.
Field Summary | |
protected boolean |
fAllAttributes
Should all attributes, or only specified ones be printed? |
protected boolean |
fAttrSkipPrint
Flag to indicate that nothing should be printed, just nodes counted. |
protected PrintWriter |
fOut
Writer for output. |
protected boolean |
fVerboseAttributes
Control attribute formatting. |
protected int |
level
Indent level. |
Constructor Summary | |
protected |
DOMInfoPrinter(int options,
DOMTraversal traverser,
PrintWriter out)
Constructor. |
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. |
protected boolean |
hasPrintAttributes(Element element)
Determine if an element has attributes that are to be printed. |
protected void |
printIndent()
Print indentation. |
protected void |
printNodeName(Node node)
Print node name (override to add additional information). |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected PrintWriter fOut
protected boolean fVerboseAttributes
protected boolean fAllAttributes
protected boolean fAttrSkipPrint
protected int level
Constructor Detail |
protected DOMInfoPrinter(int options, DOMTraversal traverser, PrintWriter out)
Method Detail |
protected void printIndent()
protected void printNodeName(Node node)
protected boolean hasPrintAttributes(Element element)
public void handleDocument(Document document)
handleDocument
in interface DOMTraversal.Handler
public void handleDocumentType(DocumentType documentType)
handleDocumentType
in interface DOMTraversal.Handler
public void handleDocumentFragment(DocumentFragment documentFragment)
handleDocumentFragment
in interface DOMTraversal.Handler
public void handleAttr(Attr attr)
handleAttr
in interface DOMTraversal.Handler
public void handleEntity(Entity entity)
handleEntity
in interface DOMTraversal.Handler
public void handleEntityReference(EntityReference entityRef)
handleEntityReference
in interface DOMTraversal.Handler
public void handleElement(Element element)
handleElement
in interface DOMTraversal.Handler
public void handleNotation(Notation notation)
handleNotation
in interface DOMTraversal.Handler
public void handleProcessingInstruction(ProcessingInstruction pi)
handleProcessingInstruction
in interface DOMTraversal.Handler
public void handleCDATASection(CDATASection cdata)
handleCDATASection
in interface DOMTraversal.Handler
public void handleComment(Comment comment)
handleComment
in interface DOMTraversal.Handler
public void handleText(Text text)
handleText
in interface DOMTraversal.Handler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |