public class DomWriter extends AbstractDocumentWriter
| Constructor and Description |
|---|
DomWriter(org.w3c.dom.Document document) |
DomWriter(org.w3c.dom.Document document,
XmlFriendlyReplacer replacer) |
DomWriter(org.w3c.dom.Element rootElement) |
DomWriter(org.w3c.dom.Element element,
org.w3c.dom.Document document,
XmlFriendlyReplacer replacer) |
DomWriter(org.w3c.dom.Element rootElement,
XmlFriendlyReplacer replacer) |
| 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.
|
close, endNode, endNodeInternally, flush, getCurrent, getTopLevelNodes, startNodeescapeXmlName, startNode, underlyingWriterclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitunderlyingWriterpublic DomWriter(org.w3c.dom.Document document)
public DomWriter(org.w3c.dom.Element rootElement)
public DomWriter(org.w3c.dom.Document document,
XmlFriendlyReplacer replacer)
public DomWriter(org.w3c.dom.Element element,
org.w3c.dom.Document document,
XmlFriendlyReplacer replacer)
public DomWriter(org.w3c.dom.Element rootElement,
XmlFriendlyReplacer replacer)
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)
HierarchicalStreamWriterJoe Walnes, http://xstream.codehaus.org/