Interface com.ibm.xml.parser.Visitor
- Implementing Classes:
- NOOPVisitor, ToXMLStringVisitor, MakeDigestVisitor, FormatPrintVisitor
- public 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
|
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
|
visitEntityPost(Entity entity)
Interface to be implemented for receiving control when the end of
an Entity Node is recognized when traversing the document object tree.
|
void
|
visitEntityPre(Entity entity)
Interface to be implemented for receiving control when the start of
an Entity 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.
|
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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, AttDef, TreeTraversalException
visitEntityPre
public void visitEntityPre(Entity entity) throws java.lang.Exception
- Interface to be implemented for receiving control when the start of
an Entity Node is recognized when traversing the document object tree.
- Parameters:
entity
- The Node currently being traversed.
- Throws:
- java.lang.Exception - Thrown if this Node can not be visitted, or traversal modification is requested.
- See Also:
- visitEntityPost, Entity, TreeTraversalException
visitEntityPost
public void visitEntityPost(Entity entity) throws java.lang.Exception
- Interface to be implemented for receiving control when the end of
an Entity Node is recognized when traversing the document object tree.
- Parameters:
entity
- The Node currently being traversed.
- Throws:
- java.lang.Exception - Thrown if this Node can not be visitted, or traversal modification is requested.
- See Also:
- visitEntityPre, Entity, 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, 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, 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, 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, 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, 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, PseudoNode, TreeTraversalException