T - 转换对象类型public class BeanPropertyFormatConvertor<T> extends BeanPropertyConvertor<T>
格式化转换器
logger| 构造器和说明 |
|---|
BeanPropertyFormatConvertor(FormatConvertor<T> convertor) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected T |
doToObject(java.lang.String value,
cn.featherfly.common.bean.BeanProperty<T> beanProperty)
字符串转换为对象
|
protected java.lang.String |
doToString(T value,
cn.featherfly.common.bean.BeanProperty<T> beanProperty)
对象转换为字符串
|
FormatConvertor<T> |
getConvertor()
返回convertor
|
supportForgetGenricType, getType, toObject, toStringpublic BeanPropertyFormatConvertor(FormatConvertor<T> convertor)
convertor - convertorprotected java.lang.String doToString(T value, cn.featherfly.common.bean.BeanProperty<T> beanProperty)
对象转换为字符串
doToString 在类中 AbstractConvertor<T,cn.featherfly.common.bean.BeanProperty<T>>value - 对象beanProperty - 指定对象的上下文属性protected T doToObject(java.lang.String value, cn.featherfly.common.bean.BeanProperty<T> beanProperty)
字符串转换为对象
doToObject 在类中 AbstractConvertor<T,cn.featherfly.common.bean.BeanProperty<T>>value - 字符串beanProperty - 指定对象的上下文属性public FormatConvertor<T> getConvertor()