org.exist.dom
Interface Visitable
- All Known Implementing Classes:
- AttrImpl, CDATASectionImpl, CharacterDataImpl, CommentImpl, DocumentTypeImpl, ElementImpl, NamedNode, ProcessingInstructionImpl, StoredNode, TextImpl
public interface Visitable
Visitor pattern: interface to be implemented by a visitable node.
accept
boolean accept(Iterator iterator,
NodeVisitor visitor)
- Visit the current node. For element nodes,
the method recursively traverses through the child nodes and
calls accept on each of them.
- Parameters:
iterator
- an iterator positioned at the current nodevisitor
- the visitor to call.
- Returns:
- the value returned by the NodeVisitor.visit method.
Copyright (C) Wolfgang Meier. All rights reserved.