|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AttoDOMVisitor
Common interface for visitors capable of traversing a attoDOM tree.
A typical implementation is MarkupWriterAttoDOMVisitor
, which
writes markup from a DOM tree.
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. |
Method Detail |
---|
void visitStartDocument(Document document) throws AttoDOMVisitorException
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).
document
- the document to be visited.
AttoDOMVisitorException
void visitEndDocument(Document document) throws AttoDOMVisitorException
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).
document
- the document to be visited.
AttoDOMVisitorException
void visitXmlDeclaration(XmlDeclaration xmlDeclaration) throws AttoDOMVisitorException
Visit an XmlDeclaration
node.
xmlDeclaration
- the node to be visited.
AttoDOMVisitorException
void visitDocType(DocType docType) throws AttoDOMVisitorException
Visit a DocType
node.
docType
- the node to be visited.
AttoDOMVisitorException
void visitProcessingInstruction(ProcessingInstruction processingInstruction) throws AttoDOMVisitorException
Visit a ProcessingInstruction
node.
processingInstruction
- the node to be visited.
AttoDOMVisitorException
void visitStandaloneElement(Element element) throws AttoDOMVisitorException
Visit a standalone Element
node.
element
- the element to be visited.
AttoDOMVisitorException
void visitOpenElement(Element element) throws AttoDOMVisitorException
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.
element
- the element to be visited.
AttoDOMVisitorException
void visitCloseElement(Element element) throws AttoDOMVisitorException
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.
element
- the element to be visited.
AttoDOMVisitorException
void visitText(Text text) throws AttoDOMVisitorException
Visit a Text
node.
text
- the node to be visited.
AttoDOMVisitorException
void visitCDATASection(CDATASection cdataSection) throws AttoDOMVisitorException
Visit a CDATASection
node.
cdataSection
- the node to be visited.
AttoDOMVisitorException
void visitComment(Comment comment) throws AttoDOMVisitorException
Visit a Comment
node.
comment
- the node to be visited.
AttoDOMVisitorException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |