Save This Page
Home » dom4j-1.6.1 » org.dom4j » [javadoc | source]
org.dom4j
public interface: Visitor [javadoc | source]

All Known Implementing Classes:
    VisitorSupport

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.

Method from org.dom4j.Visitor Summary:
visit,   visit,   visit,   visit,   visit,   visit,   visit,   visit,   visit,   visit
Method from org.dom4j.Visitor Detail:
 public  void visit(Document document)

    Visits the given Document

 public  void visit(DocumentType documentType)

    Visits the given DocumentType

 public  void visit(Element node)

    Visits the given Element

 public  void visit(Attribute node)

    Visits the given Attribute

 public  void visit(CDATA node)

    Visits the given CDATA

 public  void visit(Comment node)

    Visits the given Comment

 public  void visit(Entity node)

    Visits the given Entity

 public  void visit(Namespace namespace)

    Visits the given Namespace

 public  void visit(ProcessingInstruction node)

    Visits the given ProcessingInstruction

 public  void visit(Text node)

    Visits the given Text