|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object org.attoparser.markup.dom.AbstractAttoDOMVisitor
public abstract class AbstractAttoDOMVisitor
Common abstract class for visitors capable of traversing a attoDOM tree.
This class provides empty implementations for every method in the visitor, so that subclasses can override just the methods that are of interest for them.
Constructor Summary | |
---|---|
protected |
AbstractAttoDOMVisitor()
|
Method Summary | |
---|---|
void |
visitCDATASection(CDATASection cdataSection)
Visit a CDATASection node. |
void |
visitCloseElement(Element element)
Visit a non-standalone Element node after
its children have been visited. |
void |
visitComment(Comment comment)
Visit a Comment node. |
void |
visitDocType(DocType docType)
Visit a DocType node. |
void |
visitEndDocument(Document document)
Visit a Document node after its contents (children)
have been visited. |
void |
visitOpenElement(Element element)
Visit a non-standalone Element node before
its children are visited. |
void |
visitProcessingInstruction(ProcessingInstruction processingInstruction)
Visit a ProcessingInstruction node. |
void |
visitStandaloneElement(Element element)
Visit a standalone Element node. |
void |
visitStartDocument(Document document)
Visit a Document node before its contents (children)
have been visited. |
void |
visitText(Text text)
Visit a Text node. |
void |
visitXmlDeclaration(XmlDeclaration xmlDeclaration)
Visit an XmlDeclaration node. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractAttoDOMVisitor()
Method Detail |
---|
public void visitStartDocument(Document document) throws AttoDOMVisitorException
AttoDOMVisitor
Visit a Document
node before its contents (children)
have been visited.
This method does not need to traverse the document components (XML Declaration, DOCTYPE, root nodes).
visitStartDocument
in interface AttoDOMVisitor
document
- the document to be visited.
AttoDOMVisitorException
public void visitEndDocument(Document document) throws AttoDOMVisitorException
AttoDOMVisitor
Visit a Document
node after its contents (children)
have been visited.
This method does not need to traverse the document components (XML Declaration, DOCTYPE, root nodes).
visitEndDocument
in interface AttoDOMVisitor
document
- the document to be visited.
AttoDOMVisitorException
public void visitXmlDeclaration(XmlDeclaration xmlDeclaration) throws AttoDOMVisitorException
AttoDOMVisitor
Visit an XmlDeclaration
node.
visitXmlDeclaration
in interface AttoDOMVisitor
xmlDeclaration
- the node to be visited.
AttoDOMVisitorException
public void visitDocType(DocType docType) throws AttoDOMVisitorException
AttoDOMVisitor
Visit a DocType
node.
visitDocType
in interface AttoDOMVisitor
docType
- the node to be visited.
AttoDOMVisitorException
public void visitProcessingInstruction(ProcessingInstruction processingInstruction) throws AttoDOMVisitorException
AttoDOMVisitor
Visit a ProcessingInstruction
node.
visitProcessingInstruction
in interface AttoDOMVisitor
processingInstruction
- the node to be visited.
AttoDOMVisitorException
public void visitStandaloneElement(Element element) throws AttoDOMVisitorException
AttoDOMVisitor
Visit a standalone Element
node.
visitStandaloneElement
in interface AttoDOMVisitor
element
- the element to be visited.
AttoDOMVisitorException
public void visitOpenElement(Element element) throws AttoDOMVisitorException
AttoDOMVisitor
Visit a non-standalone Element
node before
its children are visited.
This method does not need to traverse the element children, this will be done automatically after calling this handler.
visitOpenElement
in interface AttoDOMVisitor
element
- the element to be visited.
AttoDOMVisitorException
public void visitCloseElement(Element element) throws AttoDOMVisitorException
AttoDOMVisitor
Visit a non-standalone Element
node after
its children have been visited.
This method does not need to traverse the element children, this is done before calling this closing handler.
visitCloseElement
in interface AttoDOMVisitor
element
- the element to be visited.
AttoDOMVisitorException
public void visitText(Text text) throws AttoDOMVisitorException
AttoDOMVisitor
Visit a Text
node.
visitText
in interface AttoDOMVisitor
text
- the node to be visited.
AttoDOMVisitorException
public void visitCDATASection(CDATASection cdataSection) throws AttoDOMVisitorException
AttoDOMVisitor
Visit a CDATASection
node.
visitCDATASection
in interface AttoDOMVisitor
cdataSection
- the node to be visited.
AttoDOMVisitorException
public void visitComment(Comment comment) throws AttoDOMVisitorException
AttoDOMVisitor
Visit a Comment
node.
visitComment
in interface AttoDOMVisitor
comment
- the node to be visited.
AttoDOMVisitorException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |