public abstract class TXW
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
private |
TXW() |
Modifier and Type | Method and Description |
---|---|
static <T extends TypedXmlWriter> |
create(java.lang.Class<T> rootElement,
XmlSerializer out)
Creates a new
TypedXmlWriter to write a new instance of a document. |
static <T extends TypedXmlWriter> |
create(javax.xml.namespace.QName tagName,
java.lang.Class<T> rootElement,
XmlSerializer out)
Creates a new
TypedXmlWriter to write a new instance of a document. |
(package private) static javax.xml.namespace.QName |
getTagName(java.lang.Class<?> c) |
static javax.xml.namespace.QName getTagName(java.lang.Class<?> c)
public static <T extends TypedXmlWriter> T create(java.lang.Class<T> rootElement, XmlSerializer out)
TypedXmlWriter
to write a new instance of a document.rootElement
- The TypedXmlWriter
interface that declares the content model of the root element.
This interface must have XmlElement
annotation on it to designate the tag name
of the root element.out
- The target of the writing.public static <T extends TypedXmlWriter> T create(javax.xml.namespace.QName tagName, java.lang.Class<T> rootElement, XmlSerializer out)
TypedXmlWriter
to write a new instance of a document.
Similar to the other method, but this version allows the caller to set the tag name at the run-time.
tagName
- The tag name of the root document.create(Class,XmlSerializer)