Package org.dom4j
Interface Visitor
-
- All Known Implementing Classes:
VisitorSupport
public interface Visitor
Visitor
is used to implement theVisitor
pattern in DOM4J. An object of this interface can be passed to aNode
which will then call its typesafe methods. Please refer to the Gang of Four book of Design Patterns for more details on theVisitor
pattern. This site has further discussion on design patterns and links to the GOF book. This link describes the Visitor pattern in detail.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
visit(Attribute node)
Visits the givenAttribute
void
visit(CDATA node)
Visits the givenCDATA
void
visit(Comment node)
Visits the givenComment
void
visit(Document document)
Visits the givenDocument
void
visit(DocumentType documentType)
Visits the givenDocumentType
void
visit(Element node)
Visits the givenElement
void
visit(Entity node)
Visits the givenEntity
void
visit(Namespace namespace)
Visits the givenNamespace
void
visit(ProcessingInstruction node)
Visits the givenProcessingInstruction
void
visit(Text node)
Visits the givenText
-
-
-
Method Detail
-
visit
void visit(Document document)
Visits the given
Document
- Parameters:
document
- is theDocument
node to visit.
-
visit
void visit(DocumentType documentType)
Visits the given
DocumentType
- Parameters:
documentType
- is theDocumentType
node to visit.
-
visit
void visit(Element node)
Visits the given
Element
- Parameters:
node
- is theElement
node to visit.
-
visit
void visit(Attribute node)
Visits the given
Attribute
- Parameters:
node
- is theAttribute
node to visit.
-
visit
void visit(CDATA node)
Visits the given
CDATA
- Parameters:
node
- is theCDATA
node to visit.
-
visit
void visit(Comment node)
Visits the given
Comment
- Parameters:
node
- is theComment
node to visit.
-
visit
void visit(Entity node)
Visits the given
Entity
- Parameters:
node
- is theEntity
node to visit.
-
visit
void visit(Namespace namespace)
Visits the given
Namespace
- Parameters:
namespace
- is theNamespace
node to visit.
-
visit
void visit(ProcessingInstruction node)
Visits the given
ProcessingInstruction
- Parameters:
node
- is theProcessingInstruction
node to visit.
-
visit
void visit(Text node)
Visits the given
Text
- Parameters:
node
- is theText
node to visit.
-
-