Module xml.api.main

Interface ObjectToXmlFile


  • public interface ObjectToXmlFile
    The interface ObjectToXmlFile provides a single method for convert an object to a xml string
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      <T> void toXml​(T object, @NonNull java.io.File file)
      Converts the given object to a xml file
    • Method Detail

      • toXml

        <T> void toXml​(@NonNull
                       T object,
                       @NonNull
                       @NonNull java.io.File file)
        Converts the given object to a xml file
        Type Parameters:
        T - the generic type of the return type
        Parameters:
        object - the object to convert to xml
        file - the file to copy the object as xml