Interface JacksonXmlFileToObject

All Superinterfaces:
io.github.astrapi69.xml.api.XmlFileToObject
All Known Implementing Classes:
XmlFileToObjectConverter

public interface JacksonXmlFileToObject extends io.github.astrapi69.xml.api.XmlFileToObject
The interface JacksonXmlFileToObject extends the interface XmlFileToObject and will provide algorithms for transform a xml file to an object
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    toObject(File xmlFile, com.fasterxml.jackson.core.type.TypeReference<T> typeReference)
    Creates from the given xml string an java object.
    <T> T
    toObject(File xmlFile, com.fasterxml.jackson.databind.JavaType javaType)
    Creates from the given xml string an java object.

    Methods inherited from interface io.github.astrapi69.xml.api.XmlFileToObject

    toObject
  • Method Details

    • toObject

      <T> T toObject(File xmlFile, com.fasterxml.jackson.core.type.TypeReference<T> typeReference)
      Creates from the given xml string an java object.
      Type Parameters:
      T - the generic type of the return type
      Parameters:
      xmlFile - the xml file object
      typeReference - the type reference
      Returns:
      the object
    • toObject

      <T> T toObject(File xmlFile, 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:
      xmlFile - the xml file object
      javaType - the java type
      Returns:
      the object