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

public Class Dom4JWriter

extends AbstractDocumentWriter
Class Inheritance
Imports
com.thoughtworks.xstream.io.naming.NameCoder, org.dom4j.Branch, .DocumentFactory, .Element

Deprecated

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

Field Summary

Modifier and TypeField and Description
private final DocumentFactory

Constructor Summary

AccessConstructor and Description
public
Dom4JWriter(final Branch root, final DocumentFactory factory, final NameCoder nameCoder)

public
Dom4JWriter(final DocumentFactory factory, final NameCoder nameCoder)

public
Dom4JWriter(final Branch root, final NameCoder nameCoder)

public
Dom4JWriter(final Branch root, final DocumentFactory factory, final XmlFriendlyReplacer replacer)

public
Dom4JWriter(final DocumentFactory factory, final XmlFriendlyReplacer replacer)

Deprecated As of 1.4 use Dom4JWriter#Dom4JWriter(DocumentFactory, NameCoder) instead.
public
Dom4JWriter(final DocumentFactory documentFactory)

public
Dom4JWriter(final Branch root, final XmlFriendlyReplacer replacer)

Deprecated As of 1.4 use Dom4JWriter#Dom4JWriter(Branch, NameCoder) instead
public
Dom4JWriter(final Branch root)

public

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 Branch
top()

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

Field Detail

documentFactoryback to summary
private final DocumentFactory documentFactory

Constructor Detail

Dom4JWriterback to summary
public Dom4JWriter(final Branch root, final DocumentFactory factory, final NameCoder nameCoder)
Since
1.4
Dom4JWriterback to summary
public Dom4JWriter(final DocumentFactory factory, final NameCoder nameCoder)
Since
1.4
Dom4JWriterback to summary
public Dom4JWriter(final Branch root, final NameCoder nameCoder)
Since
1.4
Dom4JWriterback to summary
public Dom4JWriter(final Branch root, final DocumentFactory factory, final XmlFriendlyReplacer replacer)
Since
1.2.1
Dom4JWriterback to summary
public Dom4JWriter(final DocumentFactory factory, final XmlFriendlyReplacer replacer)

Deprecated

As of 1.4 use Dom4JWriter#Dom4JWriter(DocumentFactory, NameCoder) instead.

Since
1.2.1
Dom4JWriterback to summary
public Dom4JWriter(final DocumentFactory documentFactory)
Since
1.2.1
Dom4JWriterback to summary
public Dom4JWriter(final Branch root, final XmlFriendlyReplacer replacer)

Deprecated

As of 1.4 use Dom4JWriter#Dom4JWriter(Branch, NameCoder) instead

Since
1.2.1
Dom4JWriterback to summary
public Dom4JWriter(final Branch root)
Dom4JWriterback to summary
public Dom4JWriter()
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

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 Branch top()