Package org.dom4j
Interface Visitor
- All Known Implementing Classes:
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.- Version:
- $Revision: 1.8 $
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Visits the givenAttribute
void
Visits the givenCDATA
void
Visits the givenComment
void
Visits the givenDocument
void
visit
(DocumentType documentType) Visits the givenDocumentType
void
Visits the givenElement
void
Visits the givenEntity
void
Visits the givenNamespace
void
visit
(ProcessingInstruction node) Visits the givenProcessingInstruction
void
Visits the givenText
-
Method Details
-
visit
Visits the given
Document
- Parameters:
document
- is theDocument
node to visit.
-
visit
Visits the given
DocumentType
- Parameters:
documentType
- is theDocumentType
node to visit.
-
visit
Visits the given
Element
- Parameters:
node
- is theElement
node to visit.
-
visit
Visits the given
Attribute
- Parameters:
node
- is theAttribute
node to visit.
-
visit
Visits the given
CDATA
- Parameters:
node
- is theCDATA
node to visit.
-
visit
Visits the given
Comment
- Parameters:
node
- is theComment
node to visit.
-
visit
Visits the given
Entity
- Parameters:
node
- is theEntity
node to visit.
-
visit
Visits the given
Namespace
- Parameters:
namespace
- is theNamespace
node to visit.
-
visit
Visits the given
ProcessingInstruction
- Parameters:
node
- is theProcessingInstruction
node to visit.
-
visit
Visits the given
Text
- Parameters:
node
- is theText
node to visit.
-