public final class ObjectToXmlExtensions extends Object
ObjectToXmlExtensions.| Constructor and Description |
|---|
ObjectToXmlExtensions() |
| Modifier and Type | Method and Description |
|---|---|
static <T> String |
toXmlWithXMLEncoder(T obj)
Deprecated.
use instead the method with the xstream
Note: will be removed in next minor release |
static <T> String |
toXmlWithXStream(T objectToXML)
Creates from the given Object an xml string.
|
static <T> String |
toXmlWithXStream(T objectToXML,
Map<String,Class<?>> aliases)
Creates from the given Object an xml string.
|
static <T> String |
toXmlWithXStream(com.thoughtworks.xstream.XStream xstream,
T objectToXML)
Creates from the given Object an xml string.
|
static <T> String |
toXmlWithXStream(com.thoughtworks.xstream.XStream xstream,
T objectToXML,
Map<String,Class<?>> aliases)
Creates from the given Object an xml string.
|
@Deprecated public static <T> String toXmlWithXMLEncoder(T obj)
T - the generic type of the return typeobj - the obj to transform to an xml string.public static <T> String toXmlWithXStream(T objectToXML)
T - the generic type of the return typeobjectToXML - the object to xmlpublic static <T> String toXmlWithXStream(T objectToXML, Map<String,Class<?>> aliases)
T - the generic type of the object that will be transformed to xmlobjectToXML - the object to xmlaliases - the aliasespublic static <T> String toXmlWithXStream(com.thoughtworks.xstream.XStream xstream, T objectToXML)
T - the generic type of the object that will be transformed to xmlxstream - the xstream object.objectToXML - the object to xmlpublic static <T> String toXmlWithXStream(com.thoughtworks.xstream.XStream xstream, T objectToXML, Map<String,Class<?>> aliases)
T - the generic type of the return typexstream - the xstreamobjectToXML - the object to xmlaliases - the aliasesCopyright © 2015–2019 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.