XML Parser for Java 1.1.9

com.ibm.xml.parser
Class NOOPVisitor

java.lang.Object
  |
  +--com.ibm.xml.parser.NOOPVisitor
Direct Known Subclasses:
MakeDigestVisitor, ToXMLStringVisitor

public class NOOPVisitor
extends java.lang.Object
implements Visitor

NOOPVisitor is an adapter class that implements the Visitor interface without providing any operation on the various DOM- and XML4J-defined Nodes; other visitors, such as ToXMLStringVisitor, subclass NOOPVisitor and selectively override these NOOP methods to provide their function.

Version:
Revision: 46 1.6 src/com/ibm/xml/parser/NOOPVisitor.java, xml4jsrc, xml4j-jtcsv, xml4j_1_1_9
See Also:
ToXMLStringVisitor, Visitor, TreeTraversal, NonRecursivePreorderTreeTraversal

Constructor Summary
NOOPVisitor()
          Constructor.
 
Method Summary
 void visitAttDefPost(AttDef attDef)
          Subclass this method to receive control when the end of an AttDef Node is recognized when traversing the document object tree.
 void visitAttDefPre(AttDef attDef)
          Subclass this method to receive control when the start of an AttDef Node is recognized when traversing the document object tree.
 void visitAttlistPost(Attlist attlist)
          Subclass this method to receive control when the end of an Attlist Node is recognized when traversing the document object tree.
 void visitAttlistPre(Attlist attlist)
          Subclass this method to receive control when the start of an Attlist Node is recognized when traversing the document object tree.
 void visitAttributePost(TXAttribute attribute)
          Subclass this method to receive control when the end of a TXAttribute Node is recognized when traversing the document object tree.
 void visitAttributePre(TXAttribute attribute)
          Subclass this method to receive control when the start of a TXAttribute Node is recognized when traversing the document object tree.
 void visitCommentPost(TXComment comment)
          Subclass this method to receive control when the end of a TXComment Node is recognized when traversing the document object tree.
 void visitCommentPre(TXComment comment)
          Subclass this method to receive control when the start of a TXComment Node is recognized when traversing the document object tree.
 void visitDocumentFragmentPost(TXDocumentFragment documentFragment)
          Subclass this method to receive control when the end of a TXDocumentFragment Node is recognized when traversing the document object tree.
 void visitDocumentFragmentPre(TXDocumentFragment documentFragment)
          Subclass this method to receive control when the start of a TXDocumentFragment Node is recognized when traversing the document object tree.
 void visitDocumentPost(TXDocument document)
          Subclass this method to receive control when the end of a TXDocument Node is recognized when traversing the document object tree.
 void visitDocumentPre(TXDocument document)
          Subclass this method to receive control when the start of a TXDocument Node is recognized when traversing the document object tree.
 void visitDTDPost(DTD dtd)
          Subclass this method to receive control when the end of a DTD Node is recognized when traversing the document object tree.
 void visitDTDPre(DTD dtd)
          Subclass this method to receive control when the start of a DTD Node is recognized when traversing the document object tree.
 void visitElementDeclPost(ElementDecl elementDecl)
          Subclass this method to receive control when the end of an ElementDecl Node is recognized when traversing the document object tree.
 void visitElementDeclPre(ElementDecl elementDecl)
          Subclass this method to receive control when the start of an ElementDecl Node is recognized when traversing the document object tree.
 void visitElementPost(TXElement element)
          Subclass this method to receive control when the end of a TXElement Node is recognized when traversing the document object tree.
 void visitElementPre(TXElement element)
          Subclass this method to receive control when the start of a TXElement Node is recognized when traversing the document object tree.
 void visitEntityDeclPost(EntityDecl entityDecl)
          Subclass this method to receive control when the end of an EntityDecl Node is recognized when traversing the document object tree.
 void visitEntityDeclPre(EntityDecl entityDecl)
          Subclass this method to receive control when the start of an EntityDecl Node is recognized when traversing the document object tree.
 void visitGeneralReferencePost(GeneralReference generalReference)
          Subclass this method to receive control when the end of a GeneralReference Node is recognized when traversing the document object tree.
 void visitGeneralReferencePre(GeneralReference generalReference)
          Subclass this method to receive control when the start of a GeneralReference Node is recognized when traversing the document object tree.
 void visitNotationPost(TXNotation notation)
          Subclass this method to receive control when the end of a TXNotation Node is recognized when traversing the document object tree.
 void visitNotationPre(TXNotation notation)
          Subclass this method to receive control when the start of a TXNotation Node is recognized when traversing the document object tree.
 void visitPIPost(TXPI pi)
          Subclass this method to receive control when the end of a TXPI Node is recognized when traversing the document object tree.
 void visitPIPre(TXPI pi)
          Subclass this method to receive control when the start of a TXPI Node is recognized when traversing the document object tree.
 void visitPseudoNodePost(PseudoNode pseudoNode)
          Subclass this method to receive control when the end of a PseudoNode is recognized when traversing the document object tree.
 void visitPseudoNodePre(PseudoNode pseudoNode)
          Subclass this method to receive control when the start of a PseudoNode is recognized when traversing the document object tree.
 void visitTextPost(TXText text)
          Subclass this method to receive control when the end of a TXText Node is recognized when traversing the document object tree.
 void visitTextPre(TXText text)
          Subclass this method to receive control when the start of a TXText Node is recognized when traversing the document object tree.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NOOPVisitor

public NOOPVisitor()
Constructor.
Method Detail

visitDocumentFragmentPre

public void visitDocumentFragmentPre(TXDocumentFragment documentFragment)
                              throws java.lang.Exception
Subclass this method to receive control when the start of a TXDocumentFragment Node is recognized when traversing the document object tree.
Specified by:
visitDocumentFragmentPre in interface Visitor
Parameters:
documentFragment - The Node currently being traversed.
Throws:
java.lang.Exception - CURRENTLY NEVER THROWN.
See Also:
visitDocumentFragmentPost(com.ibm.xml.parser.TXDocumentFragment), TXDocumentFragment

visitDocumentFragmentPost

public void visitDocumentFragmentPost(TXDocumentFragment documentFragment)
                               throws java.lang.Exception
Subclass this method to receive control when the end of a TXDocumentFragment Node is recognized when traversing the document object tree.
Specified by:
visitDocumentFragmentPost in interface Visitor
Parameters:
documentFragment - The Node currently being traversed.
Throws:
java.lang.Exception - CURRENTLY NEVER THROWN.
See Also:
visitDocumentFragmentPre(com.ibm.xml.parser.TXDocumentFragment), TXDocumentFragment

visitDocumentPre

public void visitDocumentPre(TXDocument document)
                      throws java.lang.Exception
Subclass this method to receive control when the start of a TXDocument Node is recognized when traversing the document object tree.
Specified by:
visitDocumentPre in interface Visitor
Parameters:
document - The Node currently being traversed.
Throws:
java.lang.Exception - CURRENTLY NEVER THROWN.
See Also:
visitDocumentPost(com.ibm.xml.parser.TXDocument), TXDocument

visitDocumentPost

public void visitDocumentPost(TXDocument document)
                       throws java.lang.Exception
Subclass this method to receive control when the end of a TXDocument Node is recognized when traversing the document object tree.
Specified by:
visitDocumentPost in interface Visitor
Parameters:
document - The Node currently being traversed.
Throws:
java.lang.Exception - CURRENTLY NEVER THROWN.
See Also:
visitDocumentPre(com.ibm.xml.parser.TXDocument), TXDocument

visitElementPre

public void visitElementPre(TXElement element)
                     throws java.lang.Exception
Subclass this method to receive control when the start of a TXElement Node is recognized when traversing the document object tree.
Specified by:
visitElementPre in interface Visitor
Parameters:
element - The Node currently being traversed.
Throws:
java.lang.Exception - CURRENTLY NEVER THROWN.
See Also:
visitElementPost(com.ibm.xml.parser.TXElement), TXElement

visitElementPost

public void visitElementPost(TXElement element)
                      throws java.lang.Exception
Subclass this method to receive control when the end of a TXElement Node is recognized when traversing the document object tree.
Specified by:
visitElementPost in interface Visitor
Parameters:
element - The Node currently being traversed.
Throws:
java.lang.Exception - CURRENTLY NEVER THROWN.
See Also:
visitElementPre(com.ibm.xml.parser.TXElement), TXElement

visitAttributePre

public void visitAttributePre(TXAttribute attribute)
                       throws java.lang.Exception
Subclass this method to receive control when the start of a TXAttribute Node is recognized when traversing the document object tree.
Specified by:
visitAttributePre in interface Visitor
Parameters:
attribute - The Node currently being traversed.
Throws:
java.lang.Exception - CURRENTLY NEVER THROWN.
See Also:
visitAttributePost(com.ibm.xml.parser.TXAttribute), TXAttribute

visitAttributePost

public void visitAttributePost(TXAttribute attribute)
                        throws java.lang.Exception
Subclass this method to receive control when the end of a TXAttribute Node is recognized when traversing the document object tree.
Specified by:
visitAttributePost in interface Visitor
Parameters:
attribute - The Node currently being traversed.
Throws:
java.lang.Exception - CURRENTLY NEVER THROWN.
See Also:
visitAttributePre(com.ibm.xml.parser.TXAttribute), TXAttribute

visitPIPre

public void visitPIPre(TXPI pi)
                throws java.lang.Exception
Subclass this method to receive control when the start of a TXPI Node is recognized when traversing the document object tree.
Specified by:
visitPIPre in interface Visitor
Parameters:
pi - The Node currently being traversed.
Throws:
java.lang.Exception - CURRENTLY NEVER THROWN.
See Also:
visitPIPost(com.ibm.xml.parser.TXPI), TXPI

visitPIPost

public void visitPIPost(TXPI pi)
                 throws java.lang.Exception
Subclass this method to receive control when the end of a TXPI Node is recognized when traversing the document object tree.
Specified by:
visitPIPost in interface Visitor
Parameters:
pi - The Node currently being traversed.
Throws:
java.lang.Exception - CURRENTLY NEVER THROWN.
See Also:
visitPIPre(com.ibm.xml.parser.TXPI), TXPI

visitCommentPre

public void visitCommentPre(TXComment comment)
                     throws java.lang.Exception
Subclass this method to receive control when the start of a TXComment Node is recognized when traversing the document object tree.
Specified by:
visitCommentPre in interface Visitor
Parameters:
comment - The Node currently being traversed.
Throws:
java.lang.Exception - CURRENTLY NEVER THROWN.
See Also:
visitCommentPost(com.ibm.xml.parser.TXComment), TXComment

visitCommentPost

public void visitCommentPost(TXComment comment)
                      throws java.lang.Exception
Subclass this method to receive control when the end of a TXComment Node is recognized when traversing the document object tree.
Specified by:
visitCommentPost in interface Visitor
Parameters:
comment - The Node currently being traversed.
Throws:
java.lang.Exception - CURRENTLY NEVER THROWN.
See Also:
visitCommentPre(com.ibm.xml.parser.TXComment), TXComment

visitTextPre

public void visitTextPre(TXText text)
                  throws java.lang.Exception
Subclass this method to receive control when the start of a TXText Node is recognized when traversing the document object tree.
Specified by:
visitTextPre in interface Visitor
Parameters:
text - The Node currently being traversed.
Throws:
java.lang.Exception - CURRENTLY NEVER THROWN.
See Also:
visitTextPost(com.ibm.xml.parser.TXText), TXText

visitTextPost

public void visitTextPost(TXText text)
                   throws java.lang.Exception
Subclass this method to receive control when the end of a TXText Node is recognized when traversing the document object tree.
Specified by:
visitTextPost in interface Visitor
Parameters:
text - The Node currently being traversed.
Throws:
java.lang.Exception - CURRENTLY NEVER THROWN.
See Also:
visitTextPre(com.ibm.xml.parser.TXText), TXText

visitDTDPre

public void visitDTDPre(DTD dtd)
                 throws java.lang.Exception
Subclass this method to receive control when the start of a DTD Node is recognized when traversing the document object tree.
Specified by:
visitDTDPre in interface Visitor
Parameters:
dtd - The Node currently being traversed.
Throws:
java.lang.Exception - CURRENTLY NEVER THROWN.
See Also:
visitDTDPost(com.ibm.xml.parser.DTD), DTD

visitDTDPost

public void visitDTDPost(DTD dtd)
                  throws java.lang.Exception
Subclass this method to receive control when the end of a DTD Node is recognized when traversing the document object tree.
Specified by:
visitDTDPost in interface Visitor
Parameters:
dtd - The Node currently being traversed.
Throws:
java.lang.Exception - CURRENTLY NEVER THROWN.
See Also:
visitDTDPre(com.ibm.xml.parser.DTD), DTD

visitElementDeclPre

public void visitElementDeclPre(ElementDecl elementDecl)
                         throws java.lang.Exception
Subclass this method to receive control when the start of an ElementDecl Node is recognized when traversing the document object tree.
Specified by:
visitElementDeclPre in interface Visitor
Parameters:
elementDecl - The Node currently being traversed.
Throws:
java.lang.Exception - CURRENTLY NEVER THROWN.
See Also:
visitElementDeclPost(com.ibm.xml.parser.ElementDecl), ElementDecl

visitElementDeclPost

public void visitElementDeclPost(ElementDecl elementDecl)
                          throws java.lang.Exception
Subclass this method to receive control when the end of an ElementDecl Node is recognized when traversing the document object tree.
Specified by:
visitElementDeclPost in interface Visitor
Parameters:
elementDecl - The Node currently being traversed.
Throws:
java.lang.Exception - CURRENTLY NEVER THROWN.
See Also:
visitElementDeclPre(com.ibm.xml.parser.ElementDecl), ElementDecl

visitAttlistPre

public void visitAttlistPre(Attlist attlist)
                     throws java.lang.Exception
Subclass this method to receive control when the start of an Attlist Node is recognized when traversing the document object tree.
Specified by:
visitAttlistPre in interface Visitor
Parameters:
attlist - The Node currently being traversed.
Throws:
java.lang.Exception - CURRENTLY NEVER THROWN.
See Also:
visitAttlistPost(com.ibm.xml.parser.Attlist), Attlist

visitAttlistPost

public void visitAttlistPost(Attlist attlist)
                      throws java.lang.Exception
Subclass this method to receive control when the end of an Attlist Node is recognized when traversing the document object tree.
Specified by:
visitAttlistPost in interface Visitor
Parameters:
attlist - The Node currently being traversed.
Throws:
java.lang.Exception - CURRENTLY NEVER THROWN.
See Also:
visitAttlistPre(com.ibm.xml.parser.Attlist), Attlist

visitAttDefPre

public void visitAttDefPre(AttDef attDef)
                    throws java.lang.Exception
Subclass this method to receive control when the start of an AttDef Node is recognized when traversing the document object tree.
Specified by:
visitAttDefPre in interface Visitor
Parameters:
attDef - The Node currently being traversed.
Throws:
java.lang.Exception - CURRENTLY NEVER THROWN.
See Also:
visitAttDefPost(com.ibm.xml.parser.AttDef), AttDef

visitAttDefPost

public void visitAttDefPost(AttDef attDef)
                     throws java.lang.Exception
Subclass this method to receive control when the end of an AttDef Node is recognized when traversing the document object tree.
Specified by:
visitAttDefPost in interface Visitor
Parameters:
attDef - The Node currently being traversed.
Throws:
java.lang.Exception - CURRENTLY NEVER THROWN.
See Also:
visitAttDefPre(com.ibm.xml.parser.AttDef), AttDef

visitEntityDeclPre

public void visitEntityDeclPre(EntityDecl entityDecl)
                        throws java.lang.Exception
Subclass this method to receive control when the start of an EntityDecl Node is recognized when traversing the document object tree.
Specified by:
visitEntityDeclPre in interface Visitor
Parameters:
entityDecl - The Node currently being traversed.
Throws:
java.lang.Exception - CURRENTLY NEVER THROWN.
See Also:
visitEntityDeclPost(com.ibm.xml.parser.EntityDecl), EntityDecl

visitEntityDeclPost

public void visitEntityDeclPost(EntityDecl entityDecl)
                         throws java.lang.Exception
Subclass this method to receive control when the end of an EntityDecl Node is recognized when traversing the document object tree.
Specified by:
visitEntityDeclPost in interface Visitor
Parameters:
entityDecl - The Node currently being traversed.
Throws:
java.lang.Exception - CURRENTLY NEVER THROWN.
See Also:
visitEntityDeclPre(com.ibm.xml.parser.EntityDecl), EntityDecl

visitNotationPre

public void visitNotationPre(TXNotation notation)
                      throws java.lang.Exception
Subclass this method to receive control when the start of a TXNotation Node is recognized when traversing the document object tree.
Specified by:
visitNotationPre in interface Visitor
Parameters:
notation - The Node currently being traversed.
Throws:
java.lang.Exception - CURRENTLY NEVER THROWN.
See Also:
visitNotationPost(com.ibm.xml.parser.TXNotation), TXNotation

visitNotationPost

public void visitNotationPost(TXNotation notation)
                       throws java.lang.Exception
Subclass this method to receive control when the end of a TXNotation Node is recognized when traversing the document object tree.
Specified by:
visitNotationPost in interface Visitor
Parameters:
notation - The Node currently being traversed.
Throws:
java.lang.Exception - CURRENTLY NEVER THROWN.
See Also:
visitNotationPre(com.ibm.xml.parser.TXNotation), TXNotation

visitGeneralReferencePre

public void visitGeneralReferencePre(GeneralReference generalReference)
                              throws java.lang.Exception
Subclass this method to receive control when the start of a GeneralReference Node is recognized when traversing the document object tree.
Specified by:
visitGeneralReferencePre in interface Visitor
Parameters:
generalReference - The Node currently being traversed.
Throws:
java.lang.Exception - CURRENTLY NEVER THROWN.
See Also:
visitGeneralReferencePost(com.ibm.xml.parser.GeneralReference), GeneralReference

visitGeneralReferencePost

public void visitGeneralReferencePost(GeneralReference generalReference)
                               throws java.lang.Exception
Subclass this method to receive control when the end of a GeneralReference Node is recognized when traversing the document object tree.
Specified by:
visitGeneralReferencePost in interface Visitor
Parameters:
generalReference - The Node currently being traversed.
Throws:
java.lang.Exception - CURRENTLY NEVER THROWN.
See Also:
visitGeneralReferencePre(com.ibm.xml.parser.GeneralReference), GeneralReference

visitPseudoNodePre

public void visitPseudoNodePre(PseudoNode pseudoNode)
                        throws java.lang.Exception
Subclass this method to receive control when the start of a PseudoNode is recognized when traversing the document object tree.
Specified by:
visitPseudoNodePre in interface Visitor
Parameters:
pseudoNode - The Node currently being traversed.
Throws:
java.lang.Exception - CURRENTLY NEVER THROWN.
See Also:
visitPseudoNodePost(com.ibm.xml.parser.PseudoNode), PseudoNode

visitPseudoNodePost

public void visitPseudoNodePost(PseudoNode pseudoNode)
                         throws java.lang.Exception
Subclass this method to receive control when the end of a PseudoNode is recognized when traversing the document object tree.
Specified by:
visitPseudoNodePost in interface Visitor
Parameters:
pseudoNode - The Node currently being traversed.
Throws:
java.lang.Exception - CURRENTLY NEVER THROWN.
See Also:
visitPseudoNodePre(com.ibm.xml.parser.PseudoNode), PseudoNode

XML Parser for Java 1.1.9