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

    Modifier and Type
    Method
    Description
    <T> T
    toObject(@NonNull String xmlString, @NonNull com.fasterxml.jackson.core.type.TypeReference<T> typeReference)
    Transforms the given xml String object to an object of the given type reference
    <T> T
    toObject(@NonNull String xmlString, @NonNull com.fasterxml.jackson.databind.JavaType javaType)
    Creates from the given xml string an java object.

    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 xml String 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 as String object
      typeReference - 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 xml
      javaType - the java type
      Returns:
      the object