public final class ObjectToXmlExtensions
extends java.lang.Object
ObjectToXmlExtensions.| Constructor and Description |
|---|
ObjectToXmlExtensions() |
| Modifier and Type | Method and Description |
|---|---|
static <T> java.lang.String |
toXmlWithXStream(T objectToXML)
Creates from the given Object an xml string.
|
static <T> java.lang.String |
toXmlWithXStream(T objectToXML,
java.util.Map<java.lang.String,java.lang.Class<?>> aliases)
Creates from the given Object an xml string.
|
static <T> java.lang.String |
toXmlWithXStream(com.thoughtworks.xstream.XStream xstream,
T objectToXML)
Creates from the given Object an xml string.
|
static <T> java.lang.String |
toXmlWithXStream(com.thoughtworks.xstream.XStream xstream,
T objectToXML,
java.util.Map<java.lang.String,java.lang.Class<?>> aliases)
Creates from the given Object an xml string.
|
public static <T> java.lang.String toXmlWithXStream(T objectToXML)
T - the generic type of the return typeobjectToXML - the object to xmlpublic static <T> java.lang.String toXmlWithXStream(T objectToXML,
java.util.Map<java.lang.String,java.lang.Class<?>> aliases)
T - the generic type of the object that will be transformed to xmlobjectToXML - the object to xmlaliases - the aliasespublic static <T> java.lang.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> java.lang.String toXmlWithXStream(com.thoughtworks.xstream.XStream xstream,
T objectToXML,
java.util.Map<java.lang.String,java.lang.Class<?>> aliases)
T - the generic type of the return typexstream - the xstreamobjectToXML - the object to xmlaliases - the aliases