Module xml.api.main

Interface ObjectToXml


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

      • toXml

        <T> java.lang.String toXml​(@NonNull
                                   T object)
        Converts the given object to a xml string
        Type Parameters:
        T - the generic type of the return type
        Parameters:
        object - the object to convert to xml
        Returns:
        the xml string from the given object