com.ibm.dom.util
Class NOOPVisitor
java.lang.Object
|
+--com.ibm.dom.util.NOOPVisitor
- Direct Known Subclasses:
- PrintNodeTreeVisitor, ToXMLVisitor
- public class NOOPVisitor
- extends java.lang.Object
- implements Visitor
How to use:
Node node = ...
Visitor visitor = new SubclassOfNOOPVisitor(...);
new TreeTraversal(visitor).traverse(node);
or
Node node = ...
new SubclassOfNOOPVisitor(...).traverse(node);
- See Also:
TreeTraversal
,
com.ibm.xml.parser.Visitor
,
com.ibm.xml.parser.NOOPVisitor
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
NOOPVisitor
public NOOPVisitor()
traverse
public void traverse(Node node)
throws java.lang.Exception
visitElementPre
public void visitElementPre(Element node)
throws java.lang.Exception
- Specified by:
- visitElementPre in interface Visitor
visitElementPost
public void visitElementPost(Element node)
throws java.lang.Exception
- Specified by:
- visitElementPost in interface Visitor
visitAttributePre
public void visitAttributePre(Attr node)
throws java.lang.Exception
- Specified by:
- visitAttributePre in interface Visitor
visitAttributePost
public void visitAttributePost(Attr node)
throws java.lang.Exception
- Specified by:
- visitAttributePost in interface Visitor
visitTextPre
public void visitTextPre(Text node)
throws java.lang.Exception
- Specified by:
- visitTextPre in interface Visitor
visitTextPost
public void visitTextPost(Text node)
throws java.lang.Exception
- Specified by:
- visitTextPost in interface Visitor
visitCDATASectionPre
public void visitCDATASectionPre(CDATASection node)
throws java.lang.Exception
- Specified by:
- visitCDATASectionPre in interface Visitor
visitCDATASectionPost
public void visitCDATASectionPost(CDATASection node)
throws java.lang.Exception
- Specified by:
- visitCDATASectionPost in interface Visitor
visitEntityReferencePre
public void visitEntityReferencePre(EntityReference node)
throws java.lang.Exception
- Specified by:
- visitEntityReferencePre in interface Visitor
visitEntityReferencePost
public void visitEntityReferencePost(EntityReference node)
throws java.lang.Exception
- Specified by:
- visitEntityReferencePost in interface Visitor
visitEntityPre
public void visitEntityPre(Entity node)
throws java.lang.Exception
- Specified by:
- visitEntityPre in interface Visitor
visitEntityPost
public void visitEntityPost(Entity node)
throws java.lang.Exception
- Specified by:
- visitEntityPost in interface Visitor
visitProcessingInstructionPre
public void visitProcessingInstructionPre(ProcessingInstruction node)
throws java.lang.Exception
- Specified by:
- visitProcessingInstructionPre in interface Visitor
visitProcessingInstructionPost
public void visitProcessingInstructionPost(ProcessingInstruction node)
throws java.lang.Exception
- Specified by:
- visitProcessingInstructionPost in interface Visitor
visitCommentPre
public void visitCommentPre(Comment node)
throws java.lang.Exception
- Specified by:
- visitCommentPre in interface Visitor
visitCommentPost
public void visitCommentPost(Comment node)
throws java.lang.Exception
- Specified by:
- visitCommentPost in interface Visitor
visitDocumentPre
public void visitDocumentPre(Document node)
throws java.lang.Exception
- Specified by:
- visitDocumentPre in interface Visitor
visitDocumentPost
public void visitDocumentPost(Document node)
throws java.lang.Exception
- Specified by:
- visitDocumentPost in interface Visitor
visitDocumentTypePre
public void visitDocumentTypePre(DocumentType node)
throws java.lang.Exception
- Specified by:
- visitDocumentTypePre in interface Visitor
visitDocumentTypePost
public void visitDocumentTypePost(DocumentType node)
throws java.lang.Exception
- Specified by:
- visitDocumentTypePost in interface Visitor
visitDocumentFragmentPre
public void visitDocumentFragmentPre(DocumentFragment node)
throws java.lang.Exception
- Specified by:
- visitDocumentFragmentPre in interface Visitor
visitDocumentFragmentPost
public void visitDocumentFragmentPost(DocumentFragment node)
throws java.lang.Exception
- Specified by:
- visitDocumentFragmentPost in interface Visitor
visitNotationPre
public void visitNotationPre(Notation node)
throws java.lang.Exception
- Specified by:
- visitNotationPre in interface Visitor
visitNotationPost
public void visitNotationPost(Notation node)
throws java.lang.Exception
- Specified by:
- visitNotationPost in interface Visitor
visitUnknownPre
public void visitUnknownPre(Node node)
throws java.lang.Exception
- Specified by:
- visitUnknownPre in interface Visitor
visitUnknownPost
public void visitUnknownPost(Node node)
throws java.lang.Exception
- Specified by:
- visitUnknownPost in interface Visitor