com.thoughtworks.xstream.io.xml
Class Dom4JWriter

java.lang.Object
  extended bycom.thoughtworks.xstream.io.xml.AbstractXmlWriter
      extended bycom.thoughtworks.xstream.io.xml.AbstractDocumentWriter
          extended bycom.thoughtworks.xstream.io.xml.Dom4JWriter
All Implemented Interfaces:
DocumentWriter, ExtendedHierarchicalStreamWriter, HierarchicalStreamWriter

public class Dom4JWriter
extends AbstractDocumentWriter


Constructor Summary
Dom4JWriter()
           
Dom4JWriter(org.dom4j.Branch root)
           
Dom4JWriter(org.dom4j.Branch root, org.dom4j.DocumentFactory factory, XmlFriendlyReplacer replacer)
           
Dom4JWriter(org.dom4j.Branch root, XmlFriendlyReplacer replacer)
           
Dom4JWriter(org.dom4j.DocumentFactory documentFactory)
           
Dom4JWriter(org.dom4j.DocumentFactory factory, XmlFriendlyReplacer replacer)
           
 
Method Summary
 void addAttribute(java.lang.String key, java.lang.String value)
           
protected  java.lang.Object createNode(java.lang.String name)
          Create a node.
 void setValue(java.lang.String text)
          Write the value (text content) of the current node.
 
Methods inherited from class com.thoughtworks.xstream.io.xml.AbstractDocumentWriter
close, endNode, endNodeInternally, flush, getCurrent, getTopLevelNodes, startNode
 
Methods inherited from class com.thoughtworks.xstream.io.xml.AbstractXmlWriter
escapeXmlName, startNode, underlyingWriter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.thoughtworks.xstream.io.HierarchicalStreamWriter
underlyingWriter
 

Constructor Detail

Dom4JWriter

public Dom4JWriter(org.dom4j.Branch root,
                   org.dom4j.DocumentFactory factory,
                   XmlFriendlyReplacer replacer)
Since:
1.2.1

Dom4JWriter

public Dom4JWriter(org.dom4j.DocumentFactory factory,
                   XmlFriendlyReplacer replacer)
Since:
1.2.1

Dom4JWriter

public Dom4JWriter(org.dom4j.DocumentFactory documentFactory)
Since:
1.2.1

Dom4JWriter

public Dom4JWriter(org.dom4j.Branch root,
                   XmlFriendlyReplacer replacer)
Since:
1.2.1

Dom4JWriter

public Dom4JWriter(org.dom4j.Branch root)

Dom4JWriter

public Dom4JWriter()
Since:
1.2.1
Method Detail

createNode

protected java.lang.Object createNode(java.lang.String name)
Description copied from class: AbstractDocumentWriter
Create a node. The provided node name is not yet XML friendly. If AbstractDocumentWriter.getCurrent() returns null the node is a top level node.

Specified by:
createNode in class AbstractDocumentWriter
Parameters:
name - the node name
Returns:
the new node

setValue

public void setValue(java.lang.String text)
Description copied from interface: HierarchicalStreamWriter
Write the value (text content) of the current node.


addAttribute

public void addAttribute(java.lang.String key,
                         java.lang.String value)


Joe Walnes, http://xstream.codehaus.org/