VisitorSupport
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.Modifier and Type | Method | Description |
---|---|---|
void |
visit(Attribute node) |
Visits the given
Attribute |
void |
visit(CDATA node) |
Visits the given
CDATA |
void |
visit(Comment node) |
Visits the given
Comment |
void |
visit(Document document) |
Visits the given
Document |
void |
visit(DocumentType documentType) |
Visits the given
DocumentType |
void |
visit(Element node) |
Visits the given
Element |
void |
visit(Entity node) |
Visits the given
Entity |
void |
visit(Namespace namespace) |
Visits the given
Namespace |
void |
visit(ProcessingInstruction node) |
Visits the given
ProcessingInstruction |
void |
visit(Text node) |
Visits the given
Text |
void visit(Document document)
Visits the given Document
document
- is the Document
node to visit.void visit(DocumentType documentType)
Visits the given DocumentType
documentType
- is the DocumentType
node to visit.void visit(Element node)
Visits the given Element
node
- is the Element
node to visit.void visit(Attribute node)
Visits the given Attribute
node
- is the Attribute
node to visit.void visit(CDATA node)
Visits the given CDATA
node
- is the CDATA
node to visit.void visit(Comment node)
Visits the given Comment
node
- is the Comment
node to visit.void visit(Entity node)
Visits the given Entity
node
- is the Entity
node to visit.void visit(Namespace namespace)
Visits the given Namespace
namespace
- is the Namespace
node to visit.void visit(ProcessingInstruction node)
Visits the given ProcessingInstruction
node
- is the ProcessingInstruction
node to visit.void visit(Text node)
Visits the given Text
node
- is the Text
node to visit.