com.thoughtworks.xstream.io.xml
Class XomWriter
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.XomWriter
- All Implemented Interfaces:
- ExtendedHierarchicalStreamWriter, HierarchicalStreamWriter, DocumentWriter, XmlFriendlyWriter
public class XomWriter
- extends AbstractDocumentWriter
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XomWriter
public XomWriter()
- Since:
- 1.2.1
XomWriter
public XomWriter(nu.xom.Element parentElement)
XomWriter
public XomWriter(nu.xom.Element parentElement,
NameCoder nameCoder)
- Since:
- 1.4
XomWriter
public XomWriter(nu.xom.Element parentElement,
XmlFriendlyReplacer replacer)
- Deprecated. As of 1.4 use
XomWriter(Element, NameCoder)
instead
- Since:
- 1.2
createNode
protected Object createNode(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
addAttribute
public void addAttribute(String name,
String value)
setValue
public void setValue(String text)
- Description copied from interface:
HierarchicalStreamWriter
- Write the value (text content) of the current node.
Copyright © 2004-2014 XStream. All Rights Reserved.