Module xml.api.main

Interface XmlToGenericObject


  • public interface XmlToGenericObject
    If a class implements the interface XmlToGenericObject 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.lang.String xmlString)
      Transforms the given xml string to an object of type T
    • Method Detail

      • toObject

        <T> T toObject​(@NonNull
                       @NonNull java.lang.String xmlString)
        Transforms the given xml string to an object of type T
        Type Parameters:
        T - the generic type of the return type
        Parameters:
        xmlString - the xml String
        Returns:
        the object