public class DomWriter extends AbstractDocumentWriter
| Modifier and Type | Field and Description |
|---|---|
private org.w3c.dom.Document |
document |
private boolean |
hasRootElement |
| Constructor and Description |
|---|
DomWriter(org.w3c.dom.Document document) |
DomWriter(org.w3c.dom.Document document,
NameCoder nameCoder) |
DomWriter(org.w3c.dom.Document document,
XmlFriendlyReplacer replacer)
Deprecated.
As of 1.4 use
DomWriter(Document, NameCoder) instead. |
DomWriter(org.w3c.dom.Element rootElement) |
DomWriter(org.w3c.dom.Element element,
org.w3c.dom.Document document,
NameCoder nameCoder) |
DomWriter(org.w3c.dom.Element element,
org.w3c.dom.Document document,
XmlFriendlyReplacer replacer)
Deprecated.
As of 1.4 use
DomWriter(Element, Document, NameCoder) instead. |
DomWriter(org.w3c.dom.Element rootElement,
NameCoder nameCoder) |
DomWriter(org.w3c.dom.Element rootElement,
XmlFriendlyReplacer replacer)
Deprecated.
As of 1.4 use
DomWriter(Element, NameCoder) instead. |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(java.lang.String name,
java.lang.String value) |
protected java.lang.Object |
createNode(java.lang.String name)
Create a node.
|
void |
setValue(java.lang.String text)
Write the value (text content) of the current node.
|
private org.w3c.dom.Element |
top() |
close, endNode, endNodeInternally, flush, getCurrent, getTopLevelNodes, startNodeescapeXmlNameencodeAttribute, encodeNode, startNode, underlyingWriterclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitunderlyingWriterprivate final org.w3c.dom.Document document
private boolean hasRootElement
public DomWriter(org.w3c.dom.Document document)
public DomWriter(org.w3c.dom.Element rootElement)
public DomWriter(org.w3c.dom.Document document,
NameCoder nameCoder)
public DomWriter(org.w3c.dom.Element element,
org.w3c.dom.Document document,
NameCoder nameCoder)
public DomWriter(org.w3c.dom.Element rootElement,
NameCoder nameCoder)
public DomWriter(org.w3c.dom.Document document,
XmlFriendlyReplacer replacer)
DomWriter(Document, NameCoder) instead.public DomWriter(org.w3c.dom.Element element,
org.w3c.dom.Document document,
XmlFriendlyReplacer replacer)
DomWriter(Element, Document, NameCoder) instead.public DomWriter(org.w3c.dom.Element rootElement,
XmlFriendlyReplacer replacer)
DomWriter(Element, NameCoder) instead.protected java.lang.Object createNode(java.lang.String name)
AbstractDocumentWriterAbstractDocumentWriter.getCurrent()
returns null the node is a top level node.createNode in class AbstractDocumentWritername - the node namepublic void addAttribute(java.lang.String name,
java.lang.String value)
public void setValue(java.lang.String text)
HierarchicalStreamWriterprivate org.w3c.dom.Element top()