Package com.thoughtworks.xstream.io.xml
Class XppDomWriter
- java.lang.Object
-
- com.thoughtworks.xstream.io.AbstractWriter
-
- com.thoughtworks.xstream.io.xml.AbstractXmlWriter
-
- com.thoughtworks.xstream.io.xml.AbstractDocumentWriter
-
- com.thoughtworks.xstream.io.xml.XppDomWriter
-
- All Implemented Interfaces:
ExtendedHierarchicalStreamWriter
,HierarchicalStreamWriter
,DocumentWriter
,XmlFriendlyWriter
public class XppDomWriter extends AbstractDocumentWriter
-
-
Constructor Summary
Constructors Constructor Description XppDomWriter()
XppDomWriter(NameCoder nameCoder)
XppDomWriter(XmlFriendlyReplacer replacer)
Deprecated.As of 1.4 useXppDomWriter(NameCoder)
insteadXppDomWriter(XppDom parent)
XppDomWriter(XppDom parent, NameCoder nameCoder)
XppDomWriter(XppDom parent, XmlFriendlyReplacer replacer)
Deprecated.As of 1.4 useXppDomWriter(XppDom, NameCoder)
instead.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAttribute(java.lang.String key, java.lang.String value)
protected java.lang.Object
createNode(java.lang.String name)
Create a node.XppDom
getConfiguration()
void
setValue(java.lang.String text)
Write the value (text content) of the current node.private XppDom
top()
-
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
-
Methods inherited from class com.thoughtworks.xstream.io.AbstractWriter
encodeAttribute, encodeNode, 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
-
XppDomWriter
public XppDomWriter()
-
XppDomWriter
public XppDomWriter(XppDom parent)
- Since:
- 1.2.1
-
XppDomWriter
public XppDomWriter(NameCoder nameCoder)
- Since:
- 1.4
-
XppDomWriter
public XppDomWriter(XmlFriendlyReplacer replacer)
Deprecated.As of 1.4 useXppDomWriter(NameCoder)
instead- Since:
- 1.2
-
XppDomWriter
public XppDomWriter(XppDom parent, XmlFriendlyReplacer replacer)
Deprecated.As of 1.4 useXppDomWriter(XppDom, NameCoder)
instead.- Since:
- 1.2.1
-
-
Method Detail
-
getConfiguration
public XppDom getConfiguration()
-
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. IfAbstractDocumentWriter.getCurrent()
returnsnull
the node is a top level node.- Specified by:
createNode
in classAbstractDocumentWriter
- 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)
-
top
private XppDom top()
-
-