Class ObjectToXmlFileConverter

  • All Implemented Interfaces:
    io.github.astrapi69.xml.api.ObjectToXmlFile

    public class ObjectToXmlFileConverter
    extends java.lang.Object
    implements io.github.astrapi69.xml.api.ObjectToXmlFile
    The class ObjectToXmlFileConverter provides a single method for convert an object to a xml file
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> void toXml​(T object, @NonNull java.io.File file)
      Converts the given object to a xml string
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ObjectToXmlFileConverter

        public ObjectToXmlFileConverter()
    • Method Detail

      • toXml

        public <T> void toXml​(@NonNull
                              T object,
                              @NonNull
                              @NonNull java.io.File file)
        Converts the given object to a xml string
        Specified by:
        toXml in interface io.github.astrapi69.xml.api.ObjectToXmlFile
        Type Parameters:
        T - the generic type of the return type
        Parameters:
        object - the object to convert to xml