public final class XmlToObjectExtensions extends Object
XmlToObjectExtensions.| Constructor and Description |
|---|
XmlToObjectExtensions() |
| Modifier and Type | Method and Description |
|---|---|
static com.thoughtworks.xstream.XStream |
initializeXStream(com.thoughtworks.xstream.XStream xstream,
Map<String,Class<?>> aliases)
Initialize the given
XStream object with the given aliases |
static <T> T |
toObjectWithXMLDecoder(String xmlString)
Creates from the given xml string an java object.
|
static <T> T |
toObjectWithXStream(String xmlString)
Creates from the given xml string an java object.
|
static <T> T |
toObjectWithXStream(String xmlString,
Map<String,Class<?>> aliases)
Creates from the given xml string an Object.
|
static <T> T |
toObjectWithXStream(com.thoughtworks.xstream.XStream xstream,
String xmlString)
Creates from the given xml string an java object.
|
static <T> T |
toObjectWithXStream(com.thoughtworks.xstream.XStream xstream,
String xmlString,
Map<String,Class<?>> aliases)
Creates from the given xml string an java object.
|
public static <T> T toObjectWithXMLDecoder(String xmlString)
T - the generic typexmlString - the xml string to transform to an java object.public static <T> T toObjectWithXStream(String xmlString)
T - the generic type of the return typexmlString - the xml as string objectpublic static <T> T toObjectWithXStream(String xmlString, Map<String,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,
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,
String xmlString,
Map<String,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,
Map<String,Class<?>> aliases)
XStream object with the given aliasesxstream - the XStream objectaliases - the aliasesXStream objectCopyright © 2015–2019 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.