Module xml.api.main

Interface XmlToObject


  • public interface XmlToObject
    If a class implements the interface XmlToObject can transform a xml string to an object
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      <T> T toObject​(@NonNull java.lang.String xmlString, @NonNull java.lang.Class<T> clazz)
      Transforms the given xml String object to an object of the given class type
    • Method Detail

      • toObject

        <T> T toObject​(@NonNull
                       @NonNull java.lang.String xmlString,
                       @NonNull
                       @NonNull java.lang.Class<T> clazz)
        Transforms the given xml String object to an object of the given class type
        Type Parameters:
        T - the generic type of the argument object class type
        Parameters:
        xmlString - the xml as String object
        clazz - the class from the object that will be returned
        Returns:
        the object