public class DocumentVisitorAdapter extends Object implements DocumentVisitor
FILTER_ACCEPT, FILTER_REJECT, FILTER_SKIP, SHOW_ALL, SHOW_ATTRIBUTE, SHOW_CDATA_SECTION, SHOW_COMMENT, SHOW_DOCUMENT, SHOW_DOCUMENT_FRAGMENT, SHOW_DOCUMENT_TYPE, SHOW_ELEMENT, SHOW_ENTITY, SHOW_ENTITY_REFERENCE, SHOW_NOTATION, SHOW_PROCESSING_INSTRUCTION, SHOW_TEXT
Constructor and Description |
---|
DocumentVisitorAdapter() |
Modifier and Type | Method and Description |
---|---|
short |
acceptNode(Node n)
Accepts all node types.
|
void |
postVisit(Attr attr) |
void |
postVisit(CDATASection cdata) |
void |
postVisit(Comment comment) |
void |
postVisit(Document document) |
void |
postVisit(DocumentFragment docFrag) |
void |
postVisit(DocumentType docType) |
void |
postVisit(Element element) |
void |
postVisit(Entity entity) |
void |
postVisit(EntityReference entityRef) |
void |
postVisit(Node node)
Called when the DocumentTraverser has all children of the node visited.
|
void |
postVisit(Notation notation) |
void |
postVisit(ProcessingInstruction processingInstruction) |
void |
postVisit(Text text) |
void |
preVisit(Attr attr) |
void |
preVisit(CDATASection cdata) |
void |
preVisit(Comment comment) |
void |
preVisit(Document document) |
void |
preVisit(DocumentFragment docFrag) |
void |
preVisit(DocumentType docType) |
void |
preVisit(Element element) |
void |
preVisit(Entity entity) |
void |
preVisit(EntityReference entityRef) |
void |
preVisit(Node node)
Called when the DocumentTraverser visits the node for the first time.
|
void |
preVisit(Notation notation) |
void |
preVisit(ProcessingInstruction processingInstruction) |
void |
preVisit(Text text) |
void |
visit(Attr attr) |
void |
visit(CDATASection cdata) |
void |
visit(Comment comment) |
void |
visit(Document document) |
void |
visit(DocumentFragment docFrag) |
void |
visit(DocumentType docType) |
void |
visit(Element element) |
void |
visit(Entity entity) |
void |
visit(EntityReference entityRef) |
void |
visit(Node node)
Called immediately after
DocumentVisitor.preVisit(Node) was called in depth first traversals and the only
method called in breadth first traversals. |
void |
visit(Notation notation) |
void |
visit(ProcessingInstruction processingInstruction) |
void |
visit(Text text) |
public void visit(Node node)
DocumentVisitor
DocumentVisitor.preVisit(Node)
was called in depth first traversals and the only
method called in breadth first traversals.visit
in interface DocumentVisitor
node
- the node.public void preVisit(Node node)
DocumentVisitor
preVisit
in interface DocumentVisitor
node
- the node.public void postVisit(Node node)
DocumentVisitor
postVisit
in interface DocumentVisitor
node
- the node.public short acceptNode(Node n)
acceptNode
in interface org.w3c.dom.traversal.NodeFilter
public void postVisit(Element element)
public void postVisit(Attr attr)
public void postVisit(CDATASection cdata)
public void postVisit(Text text)
public void postVisit(Comment comment)
public void postVisit(DocumentType docType)
public void postVisit(Document document)
public void postVisit(DocumentFragment docFrag)
public void postVisit(Entity entity)
public void postVisit(EntityReference entityRef)
public void postVisit(ProcessingInstruction processingInstruction)
public void postVisit(Notation notation)
public void preVisit(Attr attr)
public void preVisit(CDATASection cdata)
public void preVisit(Text text)
public void preVisit(Comment comment)
public void preVisit(DocumentType docType)
public void preVisit(Document document)
public void preVisit(DocumentFragment docFrag)
public void preVisit(Element element)
public void preVisit(Entity entity)
public void preVisit(EntityReference entityRef)
public void preVisit(ProcessingInstruction processingInstruction)
public void preVisit(Notation notation)
public void visit(Attr attr)
public void visit(CDATASection cdata)
public void visit(Text text)
public void visit(Comment comment)
public void visit(DocumentType docType)
public void visit(Document document)
public void visit(DocumentFragment docFrag)
public void visit(Element element)
public void visit(Entity entity)
public void visit(EntityReference entityRef)
public void visit(ProcessingInstruction processingInstruction)
public void visit(Notation notation)
Copyright © 2004–2017 52north.org. All rights reserved.