Class AbstractHTMLNodeVisitor
- java.lang.Object
-
- com.levigo.jadice.server.html2fop.internal.process.visitor.AbstractHTMLNodeVisitor
-
- All Implemented Interfaces:
HTMLImageElementVisitor
- Direct Known Subclasses:
HTMLImageElementCollector
public abstract class AbstractHTMLNodeVisitor extends Object implements HTMLImageElementVisitor
Visitor pattern that handles the HTML DOM node traversal.
-
-
Constructor Summary
Constructors Constructor Description AbstractHTMLNodeVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
enter(Node node)
Invoked upon entering the child node traversal process.void
leave(Node node)
Invoked upon leaving the child node traversal process.void
traverse(Node node)
Traverse the HTML DOMvoid
visit(org.w3c.dom.html2.HTMLImageElement imageElement)
Invoked upon visiting a node with that is an instance of HTMLImageElement.void
visit(Node node)
Invoked upon visiting the node itself.
-
-
-
Method Detail
-
traverse
public void traverse(Node node)
Traverse the HTML DOM- Specified by:
traverse
in interfaceHTMLImageElementVisitor
- Parameters:
node
- the node that the DOM traversal shall be performed on
-
visit
public void visit(Node node)
Invoked upon visiting the node itself.- Specified by:
visit
in interfaceHTMLImageElementVisitor
- Parameters:
node
- the node that is visited
-
visit
public void visit(org.w3c.dom.html2.HTMLImageElement imageElement)
Invoked upon visiting a node with that is an instance of HTMLImageElement.- Specified by:
visit
in interfaceHTMLImageElementVisitor
- Parameters:
imageElement
- the HTML image element that is visited
-
enter
public void enter(Node node)
Invoked upon entering the child node traversal process.- Specified by:
enter
in interfaceHTMLImageElementVisitor
- Parameters:
node
- the DOM node that shalle be traversed on
-
leave
public void leave(Node node)
Invoked upon leaving the child node traversal process.- Specified by:
leave
in interfaceHTMLImageElementVisitor
- Parameters:
node
- the DOM node that shalle be traversed on
-
-