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

public Class XppDomWriter

extends AbstractDocumentWriter
Class Inheritance
Imports
com.thoughtworks.xstream.io.naming.NameCoder, com.thoughtworks.xstream.io.xml.xppdom.XppDom

Deprecated

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

Constructor Summary

AccessConstructor and Description
public
public
XppDomWriter(final XppDom parent)

public
XppDomWriter(final NameCoder nameCoder)

public
XppDomWriter(final XppDom parent, final NameCoder nameCoder)

public
XppDomWriter(final XmlFriendlyReplacer replacer)

Deprecated As of 1.4 use XppDomWriter#XppDomWriter(NameCoder) instead
public
XppDomWriter(final XppDom parent, final XmlFriendlyReplacer replacer)

Deprecated As of 1.4 use XppDomWriter#XppDomWriter(XppDom, 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 XppDom
public void
setValue(final String text)

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

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

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

Constructor Detail

XppDomWriterback to summary
public XppDomWriter()
XppDomWriterback to summary
public XppDomWriter(final XppDom parent)
Since
1.2.1
XppDomWriterback to summary
public XppDomWriter(final NameCoder nameCoder)
Since
1.4
XppDomWriterback to summary
public XppDomWriter(final XppDom parent, final NameCoder nameCoder)
Since
1.4
XppDomWriterback to summary
public XppDomWriter(final XmlFriendlyReplacer replacer)

Deprecated

As of 1.4 use XppDomWriter#XppDomWriter(NameCoder) instead

Since
1.2
XppDomWriterback to summary
public XppDomWriter(final XppDom parent, final XmlFriendlyReplacer replacer)

Deprecated

As of 1.4 use XppDomWriter#XppDomWriter(XppDom, NameCoder) instead.

Since
1.2.1

Method Detail

addAttributeback to summary
public void addAttribute(final String key, 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

getConfigurationback to summary
public XppDom getConfiguration()
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 XppDom top()