public class

DomWriter

extends AbstractDocumentWriter
java.lang.Object
   ↳ com.thoughtworks.xstream.io.xml.AbstractXmlWriter
     ↳ com.thoughtworks.xstream.io.xml.AbstractDocumentWriter
       ↳ com.thoughtworks.xstream.io.xml.DomWriter

Summary

Public Constructors
DomWriter(Document document)
DomWriter(Element rootElement)
DomWriter(Document document, XmlFriendlyReplacer replacer)
DomWriter(Element element, Document document, XmlFriendlyReplacer replacer)
DomWriter(Element rootElement, XmlFriendlyReplacer replacer)
Public Methods
void addAttribute(String name, String value)
void setValue(String text)
Protected Methods
Object createNode(String name)
Create a node.
[Expand]
Inherited Methods
From class com.thoughtworks.xstream.io.xml.AbstractDocumentWriter
From class com.thoughtworks.xstream.io.xml.AbstractXmlWriter
From class java.lang.Object
From interface com.thoughtworks.xstream.io.ExtendedHierarchicalStreamWriter
From interface com.thoughtworks.xstream.io.HierarchicalStreamWriter
From interface com.thoughtworks.xstream.io.xml.DocumentWriter
From interface com.thoughtworks.xstream.io.xml.XmlFriendlyWriter

Public Constructors

public DomWriter (Document document)

public DomWriter (Element rootElement)

public DomWriter (Document document, XmlFriendlyReplacer replacer)

public DomWriter (Element element, Document document, XmlFriendlyReplacer replacer)

public DomWriter (Element rootElement, XmlFriendlyReplacer replacer)

Public Methods

public void addAttribute (String name, String value)

public void setValue (String text)

Protected Methods

protected Object createNode (String name)

Create a node. The provided node name is not yet XML friendly. If getCurrent() returns null the node is a top level node.

Parameters
name the node name
Returns
  • the new node