Package io.github.astrapi69.xml.api
Interface XmlToObject
-
public interface XmlToObjectA class that implements this interface can transform an xml string or file to an object
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> TtoObject(@NonNull java.lang.String xmlString, @NonNull java.lang.Class<T> clazz)Transformes the given xml string to an Object of type T.
-
-
-
Method Detail
-
toObject
<T> T toObject(@NonNull @NonNull java.lang.String xmlString, @NonNull @NonNull java.lang.Class<T> clazz)Transformes the given xml string to an Object of type T.- Type Parameters:
T- the generic type of the return type- Parameters:
xmlString- the xml Stringclazz- the class from the object that will be returned- Returns:
- the Object.
-
-