Module xml.jackson.extensions
Interface JacksonXmlToObject
- All Superinterfaces:
io.github.astrapi69.xml.api.XmlToObject
- All Known Implementing Classes:
XmlToObjectConverter
public interface JacksonXmlToObject
extends io.github.astrapi69.xml.api.XmlToObject
If a class implements the interface
JacksonXmlToObject
extends the interface
XmlFileToObject
and will provide algorithms for transform a xml string to an object-
Method Summary
Methods inherited from interface io.github.astrapi69.xml.api.XmlToObject
toObject
-
Method Details
-
toObject
<T> T toObject(@NonNull @NonNull String xmlString, @NonNull @NonNull com.fasterxml.jackson.core.type.TypeReference<T> typeReference) Transforms the given xmlString
object to an object of the given type reference- Type Parameters:
T
- the generic type of the argument object class type- Parameters:
xmlString
- the xml asString
objecttypeReference
- the type reference- Returns:
- the object
-
toObject
<T> T toObject(@NonNull @NonNull String xmlString, @NonNull @NonNull com.fasterxml.jackson.databind.JavaType javaType) Creates from the given xml string an java object.- Type Parameters:
T
- the generic type of the return type- Parameters:
xmlString
- the xmljavaType
- the java type- Returns:
- the object
-