Module xml.api.main

Interface XmlFileToGenericObject


  • public interface XmlFileToGenericObject
    If a class implements the interface XmlFileToGenericObject can transform a xml file to an object without giving explicitly the class type of the return type
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      <T> T toObject​(@NonNull java.io.File xmlFile)
      Transforms the given xml File object to an object of the given class type
    • Method Detail

      • toObject

        <T> T toObject​(@NonNull
                       @NonNull java.io.File xmlFile)
        Transforms the given xml File object to an object of the given class type
        Type Parameters:
        T - the generic type of the argument object class type
        Parameters:
        xmlFile - the xml file
        Returns:
        the object