Top Constructors Methods
com.thoughtworks.xstream.io.xml

public Class XomWriter

extends AbstractDocumentWriter
Class Inheritance
Imports
com.thoughtworks.xstream.io.naming.NameCoder, nu.xom.Attribute, .Element

Deprecated

as a consequence of AbstractDocumentWriter being deprecated. See corresponding docs for further information.

Constructor Summary

AccessConstructor and Description
public
public
XomWriter(final Element parentElement)

public
XomWriter(final Element parentElement, final NameCoder nameCoder)

public
XomWriter(final Element parentElement, final XmlFriendlyReplacer replacer)

Deprecated As of 1.4 use XomWriter#XomWriter(Element, NameCoder) instead

Method Summary

Modifier and TypeMethod and Description
public void
protected Object
createNode(final String
the node name
name
)

Implements abstract com.thoughtworks.xstream.io.xml.AbstractDocumentWriter.createNode.

Create a node.
public void
setValue(final String text)

Implements com.thoughtworks.xstream.io.HierarchicalStreamWriter.setValue.

Write the value (text content) of the current node.
private Element
top()

Inherited from com.thoughtworks.xstream.io.xml.AbstractDocumentWriter:
closeendNodeendNodeInternallyflushgetCurrentgetTopLevelNodesstartNode

Constructor Detail

XomWriterback to summary
public XomWriter()
Since
1.2.1
XomWriterback to summary
public XomWriter(final Element parentElement)
XomWriterback to summary
public XomWriter(final Element parentElement, final NameCoder nameCoder)
Since
1.4
XomWriterback to summary
public XomWriter(final Element parentElement, final XmlFriendlyReplacer replacer)

Deprecated

As of 1.4 use XomWriter#XomWriter(Element, NameCoder) instead

Since
1.2

Method Detail

addAttributeback to summary
public void addAttribute(final String name, final String value)

Implements com.thoughtworks.xstream.io.HierarchicalStreamWriter.addAttribute.

createNodeback to summary
protected Object createNode(final String name)

Implements abstract com.thoughtworks.xstream.io.xml.AbstractDocumentWriter.createNode.

Doc from com.thoughtworks.xstream.io.xml.AbstractDocumentWriter.createNode.

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:String

the node name

Returns:Object

the new node

setValueback to summary
public void setValue(final String text)

Implements com.thoughtworks.xstream.io.HierarchicalStreamWriter.setValue.

Doc from com.thoughtworks.xstream.io.HierarchicalStreamWriter.setValue.

Write the value (text content) of the current node.

topback to summary
private Element top()