Module xml.api.main

Interface Objectable

  • All Known Subinterfaces:
    Transformable<T>

    public interface Objectable
    If a class implements the interface Objectable have to implement the method for transformation to the generic object type
    • Method Summary

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

      • toObject

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