public class BeanMapper extends Object
| Constructor and Description |
|---|
BeanMapper() |
BeanMapper(PropertyErrorCollector errorCollector) |
| Modifier and Type | Method and Description |
|---|---|
void |
beanToMap(Object bean,
Map<String,String> map) |
void |
beanToMap(Object bean,
Properties properties) |
PropertyErrorCollector |
getErrors() |
<T> T |
getTypedValue(Class<T> expectedType,
String stringValue)
Returns the typed value instance after conversion from the given string value
|
void |
mapToBean(Map<String,String> map,
Object bean)
Set each map entry to the corresponding bean property, if it exists.
|
void |
mapToBean(Properties properties,
Object bean)
Set each properties entry to the corresponding bean property, if it exists.
|
public BeanMapper()
public BeanMapper(PropertyErrorCollector errorCollector)
public PropertyErrorCollector getErrors()
public <T> T getTypedValue(Class<T> expectedType, String stringValue)
expectedType - stringValue - public final void mapToBean(Map<String,String> map, Object bean)
map - bean - public final void mapToBean(Properties properties, Object bean)
properties - bean - public final void beanToMap(Object bean, Properties properties)
Copyright © 2016. All rights reserved.