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 $
- Author:
- James Strachan
-
Method Summary
Modifier and TypeMethodDescriptionvoidVisits the givenAttributevoidVisits the givenCDATAvoidVisits the givenCommentvoidVisits the givenDocumentvoidvisit(DocumentType documentType) Visits the givenDocumentTypevoidVisits the givenElementvoidVisits the givenEntityvoidVisits the givenNamespacevoidvisit(ProcessingInstruction node) Visits the givenProcessingInstructionvoidVisits the givenText
-
Method Details
-
visit
Visits the given
Document- Parameters:
document- is theDocumentnode to visit.
-
visit
Visits the given
DocumentType- Parameters:
documentType- is theDocumentTypenode to visit.
-
visit
-
visit
Visits the given
Attribute- Parameters:
node- is theAttributenode to visit.
-
visit
-
visit
-
visit
-
visit
Visits the given
Namespace- Parameters:
namespace- is theNamespacenode to visit.
-
visit
Visits the given
ProcessingInstruction- Parameters:
node- is theProcessingInstructionnode to visit.
-
visit
-