Class JDomWriter
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.JDomWriter
- All Implemented Interfaces:
ExtendedHierarchicalStreamWriter, HierarchicalStreamWriter, DocumentWriter, XmlFriendlyWriter
- Author:
- Laurent Bihanic
-
Constructor Summary
ConstructorsConstructorDescriptionJDomWriter(org.jdom.Element container) JDomWriter(org.jdom.Element container, NameCoder nameCoder) JDomWriter(org.jdom.Element container, XmlFriendlyReplacer replacer) Deprecated.JDomWriter(org.jdom.Element container, org.jdom.JDOMFactory factory) JDomWriter(org.jdom.Element container, org.jdom.JDOMFactory factory, NameCoder nameCoder) JDomWriter(org.jdom.Element container, org.jdom.JDOMFactory factory, XmlFriendlyReplacer replacer) Deprecated.As of 1.4 useJDomWriter(Element, JDOMFactory, NameCoder)instead.JDomWriter(org.jdom.JDOMFactory factory) JDomWriter(org.jdom.JDOMFactory factory, NameCoder nameCoder) JDomWriter(org.jdom.JDOMFactory factory, XmlFriendlyReplacer replacer) Deprecated.As of 1.4 useJDomWriter(JDOMFactory, NameCoder)instead. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttribute(String key, String value) protected ObjectcreateNode(String name) Create a node.voidWrite the value (text content) of the current node.Methods inherited from class AbstractDocumentWriter
close, endNode, endNodeInternally, flush, getCurrent, getTopLevelNodes, startNodeMethods inherited from class AbstractXmlWriter
escapeXmlNameMethods inherited from class AbstractWriter
encodeAttribute, encodeNode, startNode, underlyingWriterMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface HierarchicalStreamWriter
underlyingWriter
-
Constructor Details
-
JDomWriter
- Since:
- 1.4
-
JDomWriter
public JDomWriter(org.jdom.Element container, org.jdom.JDOMFactory factory, XmlFriendlyReplacer replacer) Deprecated.As of 1.4 useJDomWriter(Element, JDOMFactory, NameCoder)instead.- Since:
- 1.2
-
JDomWriter
public JDomWriter(org.jdom.Element container, org.jdom.JDOMFactory factory) -
JDomWriter
- Since:
- 1.4
-
JDomWriter
Deprecated.As of 1.4 useJDomWriter(JDOMFactory, NameCoder)instead.- Since:
- 1.2.1
-
JDomWriter
public JDomWriter(org.jdom.JDOMFactory factory) -
JDomWriter
- Since:
- 1.4
-
JDomWriter
Deprecated.As of 1.4 useJDomWriter(Element, NameCoder)instead.- Since:
- 1.2.1
-
JDomWriter
public JDomWriter(org.jdom.Element container) -
JDomWriter
public JDomWriter()
-
-
Method Details
-
createNode
Description copied from class:AbstractDocumentWriterCreate a node. The provided node name is not yet XML friendly. IfAbstractDocumentWriter.getCurrent()returnsnullthe node is a top level node.- Specified by:
createNodein classAbstractDocumentWriter- Parameters:
name- the node name- Returns:
- the new node
-
setValue
Description copied from interface:HierarchicalStreamWriterWrite the value (text content) of the current node. -
addAttribute
-
JDomWriter(Element, NameCoder)instead.