org.dom4j
public interface Visitor
Visitor is used to implement the Visitor
pattern in DOM4J. An object of this interface can be passed to a
Node which will then call its typesafe methods. Please refer
to the Gang of Four book of Design Patterns for more details on the
Visitor pattern.
This site has further discussion on design patterns and links to the GOF book. This link describes the Visitor pattern in detail.
Version: $Revision: 1.8 $
| Method Summary | |
|---|---|
| void | visit(Document document)
Visits the given |
| void | visit(DocumentType documentType)
Visits the given |
| void | visit(Element node)
Visits the given |
| void | visit(Attribute node)
Visits the given |
| void | visit(CDATA node)
Visits the given |
| void | visit(Comment node)
Visits the given |
| void | visit(Entity node)
Visits the given |
| void | visit(Namespace namespace)
Visits the given |
| void | visit(ProcessingInstruction node)
Visits the given |
| void | visit(Text node)
Visits the given |
Visits the given Document
Parameters: document
is the Document node to visit.
Visits the given DocumentType
Parameters: documentType
is the DocumentType node to visit.
Visits the given Element
Parameters: node
is the Element node to visit.
Visits the given Attribute
Parameters: node
is the Attribute node to visit.
Visits the given CDATA
Parameters: node
is the CDATA node to visit.
Visits the given Comment
Parameters: node
is the Comment node to visit.
Visits the given Entity
Parameters: node
is the Entity node to visit.
Visits the given Namespace
Parameters: namespace
is the Namespace node to visit.
Visits the given ProcessingInstruction
Parameters: node
is the ProcessingInstruction node to visit.
Visits the given Text
Parameters: node
is the Text node to visit.