public final class XmlToObjectExtensions
extends java.lang.Object
XmlToObjectExtensions.| Constructor and Description |
|---|
XmlToObjectExtensions() |
| Modifier and Type | Method and Description |
|---|---|
static com.thoughtworks.xstream.XStream |
initializeXStream(com.thoughtworks.xstream.XStream xstream,
java.util.Map<java.lang.String,java.lang.Class<?>> aliases)
Initialize the given
XStream object with the given aliases |
static <T> T |
toObjectWithXMLDecoder(java.lang.String xmlString)
Creates from the given xml string an java object.
|
static <T> T |
toObjectWithXStream(java.lang.String xmlString)
Creates from the given xml string an java object.
|
static <T> T |
toObjectWithXStream(java.lang.String xmlString,
java.util.Map<java.lang.String,java.lang.Class<?>> aliases)
Creates from the given xml string an Object.
|
static <T> T |
toObjectWithXStream(com.thoughtworks.xstream.XStream xstream,
java.lang.String xmlString)
Creates from the given xml string an java object.
|
static <T> T |
toObjectWithXStream(com.thoughtworks.xstream.XStream xstream,
java.lang.String xmlString,
java.util.Map<java.lang.String,java.lang.Class<?>> aliases)
Creates from the given xml string an java object.
|
public static <T> T toObjectWithXMLDecoder(java.lang.String xmlString)
T - the generic typexmlString - the xml string to transform to an java object.public static <T> T toObjectWithXStream(java.lang.String xmlString)
T - the generic type of the return typexmlString - the xml as string objectpublic static <T> T toObjectWithXStream(java.lang.String xmlString,
java.util.Map<java.lang.String,java.lang.Class<?>> aliases)
T - the generic type of the return typexmlString - the xml as string objectaliases - the aliasespublic static <T> T toObjectWithXStream(com.thoughtworks.xstream.XStream xstream,
java.lang.String xmlString)
T - the generic type of the return typexstream - the xstream object.xmlString - the xml as string objectpublic static <T> T toObjectWithXStream(com.thoughtworks.xstream.XStream xstream,
java.lang.String xmlString,
java.util.Map<java.lang.String,java.lang.Class<?>> aliases)
T - the generic type of the return typexstream - the xstream object.xmlString - the xmlaliases - the aliasespublic static com.thoughtworks.xstream.XStream initializeXStream(com.thoughtworks.xstream.XStream xstream,
java.util.Map<java.lang.String,java.lang.Class<?>> aliases)
XStream object with the given aliasesxstream - the XStream objectaliases - the aliasesXStream object