Class XmlFileToObjectExtensions

java.lang.Object
io.github.astrapi69.jaxb.XmlFileToObjectExtensions

public class XmlFileToObjectExtensions extends Object
The class XmlFileToObjectExtensions provides methods for convert xml File to java objects
  • Constructor Details

    • XmlFileToObjectExtensions

      public XmlFileToObjectExtensions()
  • Method Details

    • toObject

      public static <T> T toObject(@NonNull @NonNull File xmlFile, @NonNull @NonNull Class<T> clazz)
      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
      clazz - the class from the class type of the object that will be returned
      Returns:
      the object