Top Description Methods
org.dom4j

public Interface Visitor

Known Direct Implementers
org.dom4j.VisitorSupport
Annotations
@SuppressWarnings:unused

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.
Author
James Strachan
Version
$Revision: 1.8 $

Method Summary

Modifier and TypeMethod and Description
public void
visit(Document
is the Document node to visit.
document
)

Visits the given Document

public void
visit(DocumentType
is the DocumentType node to visit.
documentType
)

Visits the given DocumentType

public void
visit(Element
is the Element node to visit.
node
)

Visits the given Element

public void
visit(Attribute
is the Attribute node to visit.
node
)

Visits the given Attribute

public void
visit(CDATA
is the CDATA node to visit.
node
)

Visits the given CDATA

public void
visit(Comment
is the Comment node to visit.
node
)

Visits the given Comment

public void
visit(Entity
is the Entity node to visit.
node
)

Visits the given Entity

public void
visit(Namespace
is the Namespace node to visit.
namespace
)

Visits the given Namespace

public void
visit(ProcessingInstruction
is the ProcessingInstruction node to visit.
node
)

Visits the given ProcessingInstruction

public void
visit(Text
is the Text node to visit.
node
)

Visits the given Text

Method Detail

visitback to summary
public void visit(Document document)

Visits the given Document

Parameters
document:Document

is the Document node to visit.

visitback to summary
public void visit(DocumentType documentType)

Visits the given DocumentType

Parameters
documentType:DocumentType

is the DocumentType node to visit.

visitback to summary
public void visit(Element node)

Visits the given Element

Parameters
node:Element

is the Element node to visit.

visitback to summary
public void visit(Attribute node)

Visits the given Attribute

Parameters
node:Attribute

is the Attribute node to visit.

visitback to summary
public void visit(CDATA node)

Visits the given CDATA

Parameters
node:CDATA

is the CDATA node to visit.

visitback to summary
public void visit(Comment node)

Visits the given Comment

Parameters
node:Comment

is the Comment node to visit.

visitback to summary
public void visit(Entity node)

Visits the given Entity

Parameters
node:Entity

is the Entity node to visit.

visitback to summary
public void visit(Namespace namespace)

Visits the given Namespace

Parameters
namespace:Namespace

is the Namespace node to visit.

visitback to summary
public void visit(ProcessingInstruction node)

Visits the given ProcessingInstruction

Parameters
node:ProcessingInstruction

is the ProcessingInstruction node to visit.

visitback to summary
public void visit(Text node)

Visits the given Text

Parameters
node:Text

is the Text node to visit.