public class

XomWriter

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

Summary

Public Constructors
XomWriter()
XomWriter(Element parentElement)
XomWriter(Element parentElement, 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 XomWriter ()

public XomWriter (Element parentElement)

public XomWriter (Element parentElement, 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