Class JAXBElementConverter
- java.lang.Object
-
- com.github.dozermapper.core.converters.JAXBElementConverter
-
- All Implemented Interfaces:
org.apache.commons.beanutils.Converter
public class JAXBElementConverter extends Object implements org.apache.commons.beanutils.Converter
-
-
Constructor Summary
Constructors Constructor Description JAXBElementConverter(String destObjClass, String destFieldName, DateFormat dateFormat, BeanContainer beanContainer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectconvert(Class type, Object value)Convert the specified input object into an output object of the specified type.StringgetBeanId()Resolve the beanId associated to destination field name
-
-
-
Constructor Detail
-
JAXBElementConverter
public JAXBElementConverter(String destObjClass, String destFieldName, DateFormat dateFormat, BeanContainer beanContainer)
-
-
Method Detail
-
convert
public Object convert(Class type, Object value)
Convert the specified input object into an output object of the specified type.- Specified by:
convertin interfaceorg.apache.commons.beanutils.Converter- Parameters:
type- Data type to which this value should be convertedvalue- The input value to be converted- Returns:
- The converted value
- Throws:
org.apache.commons.beanutils.ConversionException- if conversion cannot be performed successfully
-
getBeanId
public String getBeanId()
Resolve the beanId associated to destination field name- Returns:
- bean id
-
-