public class Xml2BeanConverter extends Object
Constructor and Description |
---|
Xml2BeanConverter(Xml2BeanOptions... options) |
Modifier and Type | Method and Description |
---|---|
<T> T |
convert(Element elem,
Class<T> klass)
Attempts to convert the passed DOM subtree into an object of the
specified class.
|
Object |
convertWithoutCast(Element elem,
Class<?> klass)
Attempts to convert the passed DOM subtree into an object of the
specified class.
|
List<ConversionException> |
getDeferredExceptions()
If the deferred exceptions option has been set, returns the list of
deferred exceptions.
|
public Xml2BeanConverter(Xml2BeanOptions... options)
public <T> T convert(Element elem, Class<T> klass)
public List<ConversionException> getDeferredExceptions()
The returned list is immutable.
public Object convertWithoutCast(Element elem, Class<?> klass)
Integer.TYPE
the
same as Integer.class
, and the cast prevents that.