| 限定符和类型 | 字段和说明 |
|---|---|
protected org.slf4j.Logger |
logger
日志
|
| 构造器和说明 |
|---|
AbstractConvertor() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected abstract T |
doToObject(java.lang.String value,
G genericType)
字符串转换为对象
|
protected abstract java.lang.String |
doToString(T value,
G genericType)
对象转换为字符串
|
protected java.lang.Class<T> |
getGenricType()
返回泛型声明的类型
|
java.lang.Class<T> |
getType()
返回转换器对应的类型
|
protected abstract boolean |
supportFor(cn.featherfly.common.lang.GenericType<T> generecType)
是否提供对传入类型的支持
|
<GT extends cn.featherfly.common.lang.GenericType<T>> |
toObject(java.lang.String value,
GT genericType)
字符串转换为对象
|
<GT extends cn.featherfly.common.lang.GenericType<T>> |
toString(T value,
GT genericType)
对象转换为字符串
|
protected abstract boolean supportFor(cn.featherfly.common.lang.GenericType<T> generecType)
是否提供对传入类型的支持
generecType - generecTypeprotected abstract java.lang.String doToString(T value, G genericType)
对象转换为字符串
value - 对象genericType - 指定对象的上下文属性protected abstract T doToObject(java.lang.String value, G genericType)
字符串转换为对象
value - 字符串genericType - 指定对象的上下文属性public <GT extends cn.featherfly.common.lang.GenericType<T>> java.lang.String toString(T value, GT genericType)
对象转换为字符串
public <GT extends cn.featherfly.common.lang.GenericType<T>> T toObject(java.lang.String value, GT genericType)
字符串转换为对象
protected java.lang.Class<T> getGenricType()
返回泛型声明的类型