public final class XmlToObjectExtensions extends Object
XmlToObjectExtensions.| Constructor and Description |
|---|
XmlToObjectExtensions() |
| Modifier and Type | Method and Description |
|---|---|
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 aliasesCopyright © 2015–2018 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.