|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.n52.security.common.xml.DocumentVisitorAdapter
public class DocumentVisitorAdapter
Class DocumentVisitorAdapter implements a DocumentVisitor and delegates the untyped visit(Node) methods to typed methods, like visit(Element).
Thats a support class, which makes it very easy to implement visitors reacting on special node types.
Field Summary |
---|
Fields inherited from interface org.w3c.dom.traversal.NodeFilter |
---|
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 Summary | |
---|---|
DocumentVisitorAdapter()
|
Method Summary | |
---|---|
short |
acceptNode(org.w3c.dom.Node n)
Method accepts all node types. |
void |
postVisit(org.w3c.dom.Attr attr)
Method postVisit. |
void |
postVisit(org.w3c.dom.CDATASection cdata)
Method postVisit. |
void |
postVisit(org.w3c.dom.Comment comment)
Method postVisit. |
void |
postVisit(org.w3c.dom.Document document)
Method postVisit. |
void |
postVisit(org.w3c.dom.DocumentFragment docFrag)
Method postVisit. |
void |
postVisit(org.w3c.dom.DocumentType docType)
Method postVisit. |
void |
postVisit(org.w3c.dom.Element element)
Method postVisit. |
void |
postVisit(org.w3c.dom.Entity entity)
Method postVisit. |
void |
postVisit(org.w3c.dom.EntityReference entityRef)
Method postVisit. |
void |
postVisit(org.w3c.dom.Node node)
Method post visits a node. |
void |
postVisit(org.w3c.dom.Notation notation)
Method postVisit. |
void |
postVisit(org.w3c.dom.ProcessingInstruction processingInstruction)
Method postVisit. |
void |
postVisit(org.w3c.dom.Text text)
Method postVisit. |
void |
preVisit(org.w3c.dom.Attr attr)
Method preVisit. |
void |
preVisit(org.w3c.dom.CDATASection cdata)
Method preVisit. |
void |
preVisit(org.w3c.dom.Comment comment)
Method preVisit. |
void |
preVisit(org.w3c.dom.Document document)
Method preVisit. |
void |
preVisit(org.w3c.dom.DocumentFragment docFrag)
Method preVisit. |
void |
preVisit(org.w3c.dom.DocumentType docType)
Method preVisit. |
void |
preVisit(org.w3c.dom.Element element)
Method preVisit. |
void |
preVisit(org.w3c.dom.Entity entity)
Method preVisit. |
void |
preVisit(org.w3c.dom.EntityReference entityRef)
Method preVisit. |
void |
preVisit(org.w3c.dom.Node node)
Method pre visits a node. |
void |
preVisit(org.w3c.dom.Notation notation)
Method preVisit. |
void |
preVisit(org.w3c.dom.ProcessingInstruction processingInstruction)
Method preVisit. |
void |
preVisit(org.w3c.dom.Text text)
Method preVisit. |
void |
visit(org.w3c.dom.Attr attr)
Method visit. |
void |
visit(org.w3c.dom.CDATASection cdata)
Method visit. |
void |
visit(org.w3c.dom.Comment comment)
Method visit. |
void |
visit(org.w3c.dom.Document document)
Method visit. |
void |
visit(org.w3c.dom.DocumentFragment docFrag)
Method visit. |
void |
visit(org.w3c.dom.DocumentType docType)
Method visit. |
void |
visit(org.w3c.dom.Element element)
Method visit. |
void |
visit(org.w3c.dom.Entity entity)
Method visit. |
void |
visit(org.w3c.dom.EntityReference entityRef)
Method visit. |
void |
visit(org.w3c.dom.Node node)
Method visits a node. |
void |
visit(org.w3c.dom.Notation notation)
Method visit. |
void |
visit(org.w3c.dom.ProcessingInstruction processingInstruction)
Method visit. |
void |
visit(org.w3c.dom.Text text)
Method visit. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DocumentVisitorAdapter()
Method Detail |
---|
public void visit(org.w3c.dom.Node node)
DocumentVisitor
visit
in interface DocumentVisitor
node
- the node.DocumentVisitor.visit(Node)
public void preVisit(org.w3c.dom.Node node)
DocumentVisitor
preVisit
in interface DocumentVisitor
node
- the node.DocumentVisitor.preVisit(Node)
public void postVisit(org.w3c.dom.Node node)
DocumentVisitor
postVisit
in interface DocumentVisitor
node
- the node.DocumentVisitor.postVisit(Node)
public short acceptNode(org.w3c.dom.Node n)
acceptNode
in interface org.w3c.dom.traversal.NodeFilter
n
- the n.
public void postVisit(org.w3c.dom.Element element)
element
- the element.public void postVisit(org.w3c.dom.Attr attr)
attr
- the attr.public void postVisit(org.w3c.dom.CDATASection cdata)
cdata
- the cdata.public void postVisit(org.w3c.dom.Text text)
text
- the text.public void postVisit(org.w3c.dom.Comment comment)
comment
- the comment.public void postVisit(org.w3c.dom.DocumentType docType)
docType
- the docType.public void postVisit(org.w3c.dom.Document document)
document
- the document.public void postVisit(org.w3c.dom.DocumentFragment docFrag)
docFrag
- the docFrag.public void postVisit(org.w3c.dom.Entity entity)
entity
- the entity.public void postVisit(org.w3c.dom.EntityReference entityRef)
entityRef
- the entityRef.public void postVisit(org.w3c.dom.ProcessingInstruction processingInstruction)
processingInstruction
- the processingInstruction.public void postVisit(org.w3c.dom.Notation notation)
notation
- the notation.public void preVisit(org.w3c.dom.Attr attr)
attr
- the attr.public void preVisit(org.w3c.dom.CDATASection cdata)
cdata
- the cdata.public void preVisit(org.w3c.dom.Text text)
text
- the text.public void preVisit(org.w3c.dom.Comment comment)
comment
- the comment.public void preVisit(org.w3c.dom.DocumentType docType)
docType
- the docType.public void preVisit(org.w3c.dom.Document document)
document
- the document.public void preVisit(org.w3c.dom.DocumentFragment docFrag)
docFrag
- the docFrag.public void preVisit(org.w3c.dom.Element element)
element
- the element.public void preVisit(org.w3c.dom.Entity entity)
entity
- the entity.public void preVisit(org.w3c.dom.EntityReference entityRef)
entityRef
- the entityRef.public void preVisit(org.w3c.dom.ProcessingInstruction processingInstruction)
processingInstruction
- the processingInstruction.public void preVisit(org.w3c.dom.Notation notation)
notation
- the notation.public void visit(org.w3c.dom.Attr attr)
attr
- the attr.public void visit(org.w3c.dom.CDATASection cdata)
cdata
- the cdata.public void visit(org.w3c.dom.Text text)
text
- the text.public void visit(org.w3c.dom.Comment comment)
comment
- the comment.public void visit(org.w3c.dom.DocumentType docType)
docType
- the docType.public void visit(org.w3c.dom.Document document)
document
- the document.public void visit(org.w3c.dom.DocumentFragment docFrag)
docFrag
- the docFrag.public void visit(org.w3c.dom.Element element)
element
- the element.public void visit(org.w3c.dom.Entity entity)
entity
- the entity.public void visit(org.w3c.dom.EntityReference entityRef)
entityRef
- the entityRef.public void visit(org.w3c.dom.ProcessingInstruction processingInstruction)
processingInstruction
- the processingInstruction.public void visit(org.w3c.dom.Notation notation)
notation
- the notation.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |