public abstract class ElementVisitor
extends java.lang.Object
Constructor and Description |
---|
ElementVisitor() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
endElement(org.w3c.dom.Element e)
called at the end of the visit of an Element
|
protected abstract void |
startElement(org.w3c.dom.Element e)
called at the start of the visit of an Element
|
void |
visit(org.w3c.dom.Element e)
recursively visit element e
|
protected abstract void |
visitCDATA(org.w3c.dom.CDATASection cds)
called to visit a CDATASection node
|
protected abstract void |
visitComment(org.w3c.dom.Comment c)
called to visit a Comment node
|
protected abstract void |
visitNode(org.w3c.dom.Node n)
called to visit a Node that is not of the other types
|
protected abstract void |
visitText(org.w3c.dom.Text t)
called to visit a Text node
|
public final void visit(org.w3c.dom.Element e) throws java.io.IOException, org.xml.sax.SAXException
java.io.IOException
org.xml.sax.SAXException
protected abstract void startElement(org.w3c.dom.Element e) throws java.io.IOException, org.xml.sax.SAXException
java.io.IOException
org.xml.sax.SAXException
protected abstract void endElement(org.w3c.dom.Element e) throws java.io.IOException, org.xml.sax.SAXException
java.io.IOException
org.xml.sax.SAXException
protected abstract void visitText(org.w3c.dom.Text t) throws java.io.IOException, org.xml.sax.SAXException
java.io.IOException
org.xml.sax.SAXException
protected abstract void visitCDATA(org.w3c.dom.CDATASection cds) throws java.io.IOException, org.xml.sax.SAXException
java.io.IOException
org.xml.sax.SAXException
protected abstract void visitComment(org.w3c.dom.Comment c) throws java.io.IOException, org.xml.sax.SAXException
java.io.IOException
org.xml.sax.SAXException
protected abstract void visitNode(org.w3c.dom.Node n) throws java.io.IOException, org.xml.sax.SAXException
java.io.IOException
org.xml.sax.SAXException