XML Parser for Java 1.1.16

com.ibm.xml.parser
Interface Visitor

All Known Implementing Classes:
NOOPVisitor, ToXMLStringVisitor, MakeDigestVisitor, FormatPrintVisitor

public abstract interface Visitor

An interface of the visitor design pattern which defines the visit operations for each concrete visitor (toXMLString, digest, ...) that can be performed on the DOM- and XML4J-defined Nodes as the document object tree is traversed.

If implementing a visitor, consider subclassing NOOPVisitor in order to avoid implementing all methods defined by this interface.

Version:
Revision: %M% %I% %W% %Q%
See Also:
NOOPVisitor, ToXMLStringVisitor, FormatPrintVisitor, TreeTraversal, NonRecursivePreorderTreeTraversal

Method Summary
 void visitAttDefPost(AttDef attDef)
          Interface to be implemented for receiving control when the end of an AttDef Node is recognized when traversing the document object tree.
 void visitAttDefPre(AttDef attDef)
          Interface to be implemented for receiving control when the start of an AttDef Node is recognized when traversing the document object tree.
 void visitAttlistPost(Attlist attlist)
          Interface to be implemented for receiving control when the end of an Attlist Node is recognized when traversing the document object tree.
 void visitAttlistPre(Attlist attlist)
          Interface to be implemented for receiving control when the start of an Attlist Node is recognized when traversing the document object tree.
 void visitAttributePost(TXAttribute attribute)
          Interface to be implemented for receiving control when the endt of a TXAttribute Node is recognized when traversing the document object tree.
 void visitAttributePre(TXAttribute attribute)
          Interface to be implemented for receiving control when the start of a TXAttribute Node is recognized when traversing the document object tree.
 void visitCommentPost(TXComment comment)
          Interface to be implemented for receiving control when the end of a TXComment Node is recognized when traversing the document object tree.
 void visitCommentPre(TXComment comment)
          Interface to be implemented for receiving control when the start of a TXComment Node is recognized when traversing the document object tree.
 void visitDocumentFragmentPost(TXDocumentFragment documentFrag)
          Interface to be implemented for receiving control when the end of a TXDocumentFragment Node is recognized when traversing the document object tree.
 void visitDocumentFragmentPre(TXDocumentFragment documentFrag)
          Interface to be implemented for receiving control when the start of a TXDocumentFragment Node is recognized when traversing the document object tree.
 void visitDocumentPost(TXDocument document)
          Interface to be implemented for receiving control when the end of a TXDocument Node is recognized when traversing the document object tree.
 void visitDocumentPre(TXDocument document)
          Interface to be implemented for receiving control when the start of a TXDocument Node is recognized when traversing the document object tree.
 void visitDTDPost(DTD dtd)
          Interface to be implemented for receiving control when the end of a DTD Node is recognized when traversing the document object tree.
 void visitDTDPre(DTD dtd)
          Interface to be implemented for receiving control when the start of a DTD Node is recognized when traversing the document object tree.
 void visitElementDeclPost(ElementDecl elementDecl)
          Interface to be implemented for receiving control when the end of an ElementDecl Node is recognized when traversing the document object tree.
 void visitElementDeclPre(ElementDecl elementDecl)
          Interface to be implemented for receiving control when the start of an ElementDecl Node is recognized when traversing the document object tree.
 void visitElementPost(TXElement element)
          Interface to be implemented for receiving control when the end of a TXElement Node is recognized when traversing the document object tree.
 void visitElementPre(TXElement element)
          Interface to be implemented for receiving control when the start of a TXElement Node is recognized when traversing the document object tree.
 void visitEntityDeclPost(EntityDecl entityDecl)
          Interface to be implemented for receiving control when the end of an EntityDecl Node is recognized when traversing the document object tree.
 void visitEntityDeclPre(EntityDecl entityDecl)
          Interface to be implemented for receiving control when the start of an EntityDecl Node is recognized when traversing the document object tree.
 void visitGeneralReferencePost(GeneralReference generalReference)
          Interface to be implemented for receiving control when the end of a GeneralReference Node is recognized when traversing the document object tree.
 void visitGeneralReferencePre(GeneralReference generalReference)
          Interface to be implemented for receiving control when the start of a GeneralReference Node is recognized when traversing the document object tree.
 void visitNotationPost(TXNotation notation)
          Interface to be implemented for receiving control when the end of a TXNotation Node is recognized when traversing the document object tree.
 void visitNotationPre(TXNotation notation)
          Interface to be implemented for receiving control when the start of a TXNotation Node is recognized when traversing the document object tree.
 void visitPIPost(TXPI pi)
          Interface to be implemented for receiving control when the end of a TXPI Node is recognized when traversing the document object tree.
 void visitPIPre(TXPI pi)
          Interface to be implemented for receiving control when the start of a TXPI Node is recognized when traversing the document object tree.
 void visitPseudoNodePost(PseudoNode pseudoNode)
          Interface to be implemented for receiving control when the end of a PseudoNode is recognized when traversing the document object tree.
 void visitPseudoNodePre(PseudoNode pseudoNode)
          Interface to be implemented for receiving control when the start of a PseudoNode is recognized when traversing the document object tree.
 void visitTextPost(TXText text)
          Interface to be implemented for receiving control when the end of a TXText Node is recognized when traversing the document object tree.
 void visitTextPre(TXText text)
          Interface to be implemented for receiving control when the start of a TXText Node is recognized when traversing the document object tree.
 

Method Detail

visitDocumentFragmentPre

public void visitDocumentFragmentPre(TXDocumentFragment documentFrag)
                              throws java.lang.Exception
Interface to be implemented for receiving control when the start of a TXDocumentFragment Node is recognized when traversing the document object tree.
Parameters:
documentFrag - The Node currently being traversed.
Throws:
java.lang.Exception - Thrown if this Node can not be visitted, or traversal modification is requested.
See Also:
visitDocumentFragmentPost(com.ibm.xml.parser.TXDocumentFragment), TXDocumentFragment, TreeTraversalException

visitDocumentFragmentPost

public void visitDocumentFragmentPost(TXDocumentFragment documentFrag)
                               throws java.lang.Exception
Interface to be implemented for receiving control when the end of a TXDocumentFragment Node is recognized when traversing the document object tree.
Parameters:
documentFrag - The Node currently being traversed.
Throws:
java.lang.Exception - Thrown if this Node can not be visitted, or traversal modification is requested.
See Also:
visitDocumentFragmentPre(com.ibm.xml.parser.TXDocumentFragment), TXDocumentFragment, TreeTraversalException

visitDocumentPre

public void visitDocumentPre(TXDocument document)
                      throws java.lang.Exception
Interface to be implemented for receiving control when the start of a TXDocument Node is recognized when traversing the document object tree.
Parameters:
document - The Node currently being traversed.
Throws:
java.lang.Exception - Thrown if this Node can not be visitted, or traversal modification is requested.
See Also:
visitDocumentPost(com.ibm.xml.parser.TXDocument), TXDocument, TreeTraversalException

visitDocumentPost

public void visitDocumentPost(TXDocument document)
                       throws java.lang.Exception
Interface to be implemented for receiving control when the end of a TXDocument Node is recognized when traversing the document object tree.
Parameters:
document - The Node currently being traversed.
Throws:
java.lang.Exception - Thrown if this Node can not be visitted, or traversal modification is requested.
See Also:
visitDocumentPre(com.ibm.xml.parser.TXDocument), TXDocument, TreeTraversalException

visitElementPre

public void visitElementPre(TXElement element)
                     throws java.lang.Exception
Interface to be implemented for receiving control when the start of a TXElement Node is recognized when traversing the document object tree.
Parameters:
element - The Node currently being traversed.
Throws:
java.lang.Exception - Thrown if this Node can not be visitted, or traversal modification is requested.
See Also:
visitElementPost(com.ibm.xml.parser.TXElement), TXElement, TreeTraversalException

visitElementPost

public void visitElementPost(TXElement element)
                      throws java.lang.Exception
Interface to be implemented for receiving control when the end of a TXElement Node is recognized when traversing the document object tree.
Parameters:
element - The Node currently being traversed.
Throws:
java.lang.Exception - Thrown if this Node can not be visitted, or traversal modification is requested.
See Also:
visitElementPre(com.ibm.xml.parser.TXElement), TXElement, TreeTraversalException

visitAttributePre

public void visitAttributePre(TXAttribute attribute)
                       throws java.lang.Exception
Interface to be implemented for receiving control when the start of a TXAttribute Node is recognized when traversing the document object tree.
Parameters:
attribute - The Node currently being traversed.
Throws:
java.lang.Exception - Thrown if this Node can not be visitted, or traversal modification is requested.
See Also:
visitAttributePost(com.ibm.xml.parser.TXAttribute), TXAttribute, TreeTraversalException

visitAttributePost

public void visitAttributePost(TXAttribute attribute)
                        throws java.lang.Exception
Interface to be implemented for receiving control when the endt of a TXAttribute Node is recognized when traversing the document object tree.
Parameters:
attribute - The Node currently being traversed.
Throws:
java.lang.Exception - Thrown if this Node can not be visitted, or traversal modification is requested.
See Also:
visitAttributePre(com.ibm.xml.parser.TXAttribute), TXAttribute, TreeTraversalException

visitPIPre

public void visitPIPre(TXPI pi)
                throws java.lang.Exception
Interface to be implemented for receiving control when the start of a TXPI Node is recognized when traversing the document object tree.
Parameters:
pi - The Node currently being traversed.
Throws:
java.lang.Exception - Thrown if this Node can not be visitted, or traversal modification is requested.
See Also:
visitPIPost(com.ibm.xml.parser.TXPI), TXPI, TreeTraversalException

visitPIPost

public void visitPIPost(TXPI pi)
                 throws java.lang.Exception
Interface to be implemented for receiving control when the end of a TXPI Node is recognized when traversing the document object tree.
Parameters:
pi - The Node currently being traversed.
Throws:
java.lang.Exception - Thrown if this Node can not be visitted, or traversal modification is requested.
See Also:
visitPIPre(com.ibm.xml.parser.TXPI), TXPI, TreeTraversalException

visitCommentPre

public void visitCommentPre(TXComment comment)
                     throws java.lang.Exception
Interface to be implemented for receiving control when the start of a TXComment Node is recognized when traversing the document object tree.
Parameters:
comment - The Node currently being traversed.
Throws:
java.lang.Exception - Thrown if this Node can not be visitted, or traversal modification is requested.
See Also:
visitCommentPost(com.ibm.xml.parser.TXComment), TXComment, TreeTraversalException

visitCommentPost

public void visitCommentPost(TXComment comment)
                      throws java.lang.Exception
Interface to be implemented for receiving control when the end of a TXComment Node is recognized when traversing the document object tree.
Parameters:
comment - The Node currently being traversed.
Throws:
java.lang.Exception - Thrown if this Node can not be visitted, or traversal modification is requested.
See Also:
visitCommentPre(com.ibm.xml.parser.TXComment), TXComment, TreeTraversalException

visitTextPre

public void visitTextPre(TXText text)
                  throws java.lang.Exception
Interface to be implemented for receiving control when the start of a TXText Node is recognized when traversing the document object tree.
Parameters:
text - The Node currently being traversed.
Throws:
java.lang.Exception - Thrown if this Node can not be visitted, or traversal modification is requested.
See Also:
visitTextPost(com.ibm.xml.parser.TXText), TXText, TreeTraversalException

visitTextPost

public void visitTextPost(TXText text)
                   throws java.lang.Exception
Interface to be implemented for receiving control when the end of a TXText Node is recognized when traversing the document object tree.
Parameters:
text - The Node currently being traversed.
Throws:
java.lang.Exception - Thrown if this Node can not be visitted, or traversal modification is requested.
See Also:
visitTextPre(com.ibm.xml.parser.TXText), TXText, TreeTraversalException

visitDTDPre

public void visitDTDPre(DTD dtd)
                 throws java.lang.Exception
Interface to be implemented for receiving control when the start of a DTD Node is recognized when traversing the document object tree.
Parameters:
dtd - The Node currently being traversed.
Throws:
java.lang.Exception - Thrown if this Node can not be visitted, or traversal modification is requested.
See Also:
visitDTDPost(com.ibm.xml.parser.DTD), DTD, TreeTraversalException

visitDTDPost

public void visitDTDPost(DTD dtd)
                  throws java.lang.Exception
Interface to be implemented for receiving control when the end of a DTD Node is recognized when traversing the document object tree.
Parameters:
dtd - The Node currently being traversed.
Throws:
java.lang.Exception - Thrown if this Node can not be visitted, or traversal modification is requested.
See Also:
visitDTDPre(com.ibm.xml.parser.DTD), DTD, TreeTraversalException

visitElementDeclPre

public void visitElementDeclPre(ElementDecl elementDecl)
                         throws java.lang.Exception
Interface to be implemented for receiving control when the start of an ElementDecl Node is recognized when traversing the document object tree.
Parameters:
elementDecl - The Node currently being traversed.
Throws:
java.lang.Exception - Thrown if this Node can not be visitted, or traversal modification is requested.
See Also:
visitElementDeclPost(com.ibm.xml.parser.ElementDecl), ElementDecl, TreeTraversalException

visitElementDeclPost

public void visitElementDeclPost(ElementDecl elementDecl)
                          throws java.lang.Exception
Interface to be implemented for receiving control when the end of an ElementDecl Node is recognized when traversing the document object tree.
Parameters:
elementDecl - The Node currently being traversed.
Throws:
java.lang.Exception - Thrown if this Node can not be visitted, or traversal modification is requested.
See Also:
visitElementDeclPre(com.ibm.xml.parser.ElementDecl), ElementDecl, TreeTraversalException

visitAttlistPre

public void visitAttlistPre(Attlist attlist)
                     throws java.lang.Exception
Interface to be implemented for receiving control when the start of an Attlist Node is recognized when traversing the document object tree.
Parameters:
attlist - The Node currently being traversed.
Throws:
java.lang.Exception - Thrown if this Node can not be visitted, or traversal modification is requested.
See Also:
visitAttlistPost(com.ibm.xml.parser.Attlist), Attlist, TreeTraversalException

visitAttlistPost

public void visitAttlistPost(Attlist attlist)
                      throws java.lang.Exception
Interface to be implemented for receiving control when the end of an Attlist Node is recognized when traversing the document object tree.
Parameters:
attlist - The Node currently being traversed.
Throws:
java.lang.Exception - Thrown if this Node can not be visitted, or traversal modification is requested.
See Also:
visitAttlistPre(com.ibm.xml.parser.Attlist), Attlist, TreeTraversalException

visitAttDefPre

public void visitAttDefPre(AttDef attDef)
                    throws java.lang.Exception
Interface to be implemented for receiving control when the start of an AttDef Node is recognized when traversing the document object tree.
Parameters:
attDef - The Node currently being traversed.
Throws:
java.lang.Exception - Thrown if this Node can not be visitted, or traversal modification is requested.
See Also:
visitAttDefPost(com.ibm.xml.parser.AttDef), AttDef, TreeTraversalException

visitAttDefPost

public void visitAttDefPost(AttDef attDef)
                     throws java.lang.Exception
Interface to be implemented for receiving control when the end of an AttDef Node is recognized when traversing the document object tree.
Parameters:
attDef - The Node currently being traversed.
Throws:
java.lang.Exception - Thrown if this Node can not be visitted, or traversal modification is requested.
See Also:
visitAttDefPre(com.ibm.xml.parser.AttDef), AttDef, TreeTraversalException

visitEntityDeclPre

public void visitEntityDeclPre(EntityDecl entityDecl)
                        throws java.lang.Exception
Interface to be implemented for receiving control when the start of an EntityDecl Node is recognized when traversing the document object tree.
Parameters:
entityDecl - The Node currently being traversed.
Throws:
java.lang.Exception - Thrown if this Node can not be visitted, or traversal modification is requested.
See Also:
visitEntityDeclPost(com.ibm.xml.parser.EntityDecl), EntityDecl, TreeTraversalException

visitEntityDeclPost

public void visitEntityDeclPost(EntityDecl entityDecl)
                         throws java.lang.Exception
Interface to be implemented for receiving control when the end of an EntityDecl Node is recognized when traversing the document object tree.
Parameters:
entityDecl - The Node currently being traversed.
Throws:
java.lang.Exception - Thrown if this Node can not be visitted, or traversal modification is requested.
See Also:
visitEntityDeclPre(com.ibm.xml.parser.EntityDecl), EntityDecl, TreeTraversalException

visitNotationPre

public void visitNotationPre(TXNotation notation)
                      throws java.lang.Exception
Interface to be implemented for receiving control when the start of a TXNotation Node is recognized when traversing the document object tree.
Parameters:
notation - The Node currently being traversed.
Throws:
java.lang.Exception - Thrown if this Node can not be visitted, or traversal modification is requested.
See Also:
visitNotationPost(com.ibm.xml.parser.TXNotation), TXNotation, TreeTraversalException

visitNotationPost

public void visitNotationPost(TXNotation notation)
                       throws java.lang.Exception
Interface to be implemented for receiving control when the end of a TXNotation Node is recognized when traversing the document object tree.
Parameters:
notation - The Node currently being traversed.
Throws:
java.lang.Exception - Thrown if this Node can not be visitted, or traversal modification is requested.
See Also:
visitNotationPre(com.ibm.xml.parser.TXNotation), TXNotation, TreeTraversalException

visitGeneralReferencePre

public void visitGeneralReferencePre(GeneralReference generalReference)
                              throws java.lang.Exception
Interface to be implemented for receiving control when the start of a GeneralReference Node is recognized when traversing the document object tree.
Parameters:
generalReference - The Node currently being traversed.
Throws:
java.lang.Exception - Thrown if this Node can not be visitted, or traversal modification is requested.
See Also:
visitGeneralReferencePost(com.ibm.xml.parser.GeneralReference), GeneralReference, TreeTraversalException

visitGeneralReferencePost

public void visitGeneralReferencePost(GeneralReference generalReference)
                               throws java.lang.Exception
Interface to be implemented for receiving control when the end of a GeneralReference Node is recognized when traversing the document object tree.
Parameters:
generalReference - The Node currently being traversed.
Throws:
java.lang.Exception - Thrown if this Node can not be visitted, or traversal modification is requested.
See Also:
visitGeneralReferencePre(com.ibm.xml.parser.GeneralReference), GeneralReference, TreeTraversalException

visitPseudoNodePre

public void visitPseudoNodePre(PseudoNode pseudoNode)
                        throws java.lang.Exception
Interface to be implemented for receiving control when the start of a PseudoNode is recognized when traversing the document object tree.
Parameters:
pseudoNode - The Node currently being traversed.
Throws:
java.lang.Exception - Thrown if this Node can not be visitted, or traversal modification is requested.
See Also:
visitPseudoNodePost(com.ibm.xml.parser.PseudoNode), PseudoNode, TreeTraversalException

visitPseudoNodePost

public void visitPseudoNodePost(PseudoNode pseudoNode)
                         throws java.lang.Exception
Interface to be implemented for receiving control when the end of a PseudoNode is recognized when traversing the document object tree.
Parameters:
pseudoNode - The Node currently being traversed.
Throws:
java.lang.Exception - Thrown if this Node can not be visitted, or traversal modification is requested.
See Also:
visitPseudoNodePre(com.ibm.xml.parser.PseudoNode), PseudoNode, TreeTraversalException

XML Parser for Java 1.1.16