public class DOMWriter
extends java.lang.Object
DOMWriter takes a DOM4J tree and outputs it as a W3C DOM
object
| Constructor and Description |
|---|
DOMWriter() |
DOMWriter(java.lang.Class domDocumentClass) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendDOMTree(org.w3c.dom.Document domDocument,
org.w3c.dom.Node domCurrent,
CDATA cdata) |
protected void |
appendDOMTree(org.w3c.dom.Document domDocument,
org.w3c.dom.Node domCurrent,
Comment comment) |
protected void |
appendDOMTree(org.w3c.dom.Document domDocument,
org.w3c.dom.Node domCurrent,
Element element) |
protected void |
appendDOMTree(org.w3c.dom.Document domDocument,
org.w3c.dom.Node domCurrent,
Entity entity) |
protected void |
appendDOMTree(org.w3c.dom.Document domDocument,
org.w3c.dom.Node domCurrent,
java.util.List content) |
protected void |
appendDOMTree(org.w3c.dom.Document domDoc,
org.w3c.dom.Node domCurrent,
ProcessingInstruction pi) |
protected void |
appendDOMTree(org.w3c.dom.Document domDocument,
org.w3c.dom.Node domCurrent,
java.lang.String text) |
protected java.lang.String |
attributeNameForNamespace(Namespace namespace) |
protected org.w3c.dom.Document |
createDomDocument(Document document) |
protected org.w3c.dom.Document |
createDomDocument(Document document,
org.w3c.dom.DOMImplementation domImpl) |
protected org.w3c.dom.Document |
createDomDocumentViaJAXP() |
java.lang.Class |
getDomDocumentClass() |
protected boolean |
isNamespaceDeclaration(Namespace ns) |
protected void |
resetNamespaceStack() |
void |
setDomDocumentClass(java.lang.Class domDocumentClass)
Sets the DOM
Documentimplementation class used by
the writer when creating DOM documents. |
void |
setDomDocumentClassName(java.lang.String name)
Sets the DOM
Documentimplementation class name used
by the writer when creating DOM documents. |
org.w3c.dom.Document |
write(Document document) |
org.w3c.dom.Document |
write(Document document,
org.w3c.dom.DOMImplementation domImpl) |
protected void |
writeNamespace(org.w3c.dom.Element domElement,
Namespace namespace) |
public DOMWriter()
public DOMWriter(java.lang.Class domDocumentClass)
public java.lang.Class getDomDocumentClass()
throws DocumentException
DocumentExceptionpublic void setDomDocumentClass(java.lang.Class domDocumentClass)
Documentimplementation class used by
the writer when creating DOM documents.domDocumentClass - is the Class implementing the
interfacepublic void setDomDocumentClassName(java.lang.String name)
throws DocumentException
Documentimplementation class name used
by the writer when creating DOM documents.name - is the name of the Class implementing the Document interfaceDocumentException - if the class could not be loadedpublic org.w3c.dom.Document write(Document document) throws DocumentException
DocumentExceptionpublic org.w3c.dom.Document write(Document document, org.w3c.dom.DOMImplementation domImpl) throws DocumentException
DocumentExceptionprotected void appendDOMTree(org.w3c.dom.Document domDocument,
org.w3c.dom.Node domCurrent,
java.util.List content)
protected void appendDOMTree(org.w3c.dom.Document domDocument,
org.w3c.dom.Node domCurrent,
Element element)
protected void appendDOMTree(org.w3c.dom.Document domDocument,
org.w3c.dom.Node domCurrent,
CDATA cdata)
protected void appendDOMTree(org.w3c.dom.Document domDocument,
org.w3c.dom.Node domCurrent,
Comment comment)
protected void appendDOMTree(org.w3c.dom.Document domDocument,
org.w3c.dom.Node domCurrent,
java.lang.String text)
protected void appendDOMTree(org.w3c.dom.Document domDocument,
org.w3c.dom.Node domCurrent,
Entity entity)
protected void appendDOMTree(org.w3c.dom.Document domDoc,
org.w3c.dom.Node domCurrent,
ProcessingInstruction pi)
protected void writeNamespace(org.w3c.dom.Element domElement,
Namespace namespace)
protected java.lang.String attributeNameForNamespace(Namespace namespace)
protected org.w3c.dom.Document createDomDocument(Document document) throws DocumentException
DocumentExceptionprotected org.w3c.dom.Document createDomDocumentViaJAXP()
throws DocumentException
DocumentExceptionprotected org.w3c.dom.Document createDomDocument(Document document, org.w3c.dom.DOMImplementation domImpl) throws DocumentException
DocumentExceptionprotected boolean isNamespaceDeclaration(Namespace ns)
protected void resetNamespaceStack()
Copyright © 2005 MetaStuff Ltd. All Rights Reserved. Hosted by