public class

JDomWriter

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

Summary

Public Constructors
JDomWriter(Element container, JDOMFactory factory, XmlFriendlyReplacer replacer)
JDomWriter(Element container, JDOMFactory factory)
JDomWriter(JDOMFactory factory, XmlFriendlyReplacer replacer)
JDomWriter(JDOMFactory factory)
JDomWriter(Element container, XmlFriendlyReplacer replacer)
JDomWriter(Element container)
JDomWriter()
Public Methods
void addAttribute(String key, String value)
List getResult()
This method is deprecated. since 1.2.1, use getTopLevelNodes() instead
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 JDomWriter (Element container, JDOMFactory factory, XmlFriendlyReplacer replacer)

public JDomWriter (Element container, JDOMFactory factory)

public JDomWriter (JDOMFactory factory, XmlFriendlyReplacer replacer)

public JDomWriter (JDOMFactory factory)

public JDomWriter (Element container, XmlFriendlyReplacer replacer)

public JDomWriter (Element container)

public JDomWriter ()

Public Methods

public void addAttribute (String key, String value)

public List getResult ()

This method is deprecated.
since 1.2.1, use getTopLevelNodes() instead

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