Module xml.jackson.extensions
Package io.github.astrapi69.xml.jackson
Class XmlFileToObjectConverter
java.lang.Object
io.github.astrapi69.xml.jackson.XmlFileToObjectConverter
- All Implemented Interfaces:
io.github.astrapi69.xml.api.XmlFileToObject
,JacksonXmlFileToObject
The class
XmlFileToObjectConverter
can convert a given xml file to an object-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> T
<T> T
Creates from the given xml string an java object.<T> T
Creates from the given xml string an java object.
-
Constructor Details
-
XmlFileToObjectConverter
public XmlFileToObjectConverter()
-
-
Method Details
-
toObject
Creates from the given xml string an java object.- Specified by:
toObject
in interfaceJacksonXmlFileToObject
- Type Parameters:
T
- the generic type of the return type- Parameters:
xmlFile
- the xml file objecttypeReference
- the type reference- Returns:
- the object
-
toObject
Creates from the given xml string an java object.- Specified by:
toObject
in interfaceJacksonXmlFileToObject
- Type Parameters:
T
- the generic type of the return type- Parameters:
xmlFile
- the xml file objectjavaType
- the java type- Returns:
- the object
-
toObject
- Specified by:
toObject
in interfaceio.github.astrapi69.xml.api.XmlFileToObject
-