org.test4j.json.decoder
类 PoJoDecoder
java.lang.Object
org.test4j.json.decoder.base.BaseDecoder
org.test4j.json.decoder.base.MapPoJoBaseDecoder<Object>
org.test4j.json.decoder.PoJoDecoder
- 所有已实现的接口:
- IDecoder
public class PoJoDecoder
- extends MapPoJoBaseDecoder<Object>
反序列json为pojo对象
- 作者:
- darui.wudr
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
toPOJO
public static final PoJoDecoder toPOJO
PoJoDecoder
public PoJoDecoder()
parseFromJSONMap
protected void parseFromJSONMap(Object target,
JSONMap map,
Map<String,Object> references)
- 从类
MapPoJoBaseDecoder 复制的描述
- 解析jsonMap属性,填充target对象的值
- 指定者:
- 类
MapPoJoBaseDecoder<Object> 中的 parseFromJSONMap
accept
public boolean accept(Type type)
- 从接口
IDecoder 复制的描述
- 是否接受是该类型json解码器
- 返回:
getTarget
protected Object getTarget(JSONMap map,
Type toType)
- 指定者:
- 类
MapPoJoBaseDecoder<Object> 中的 getTarget
Copyright © 2013. All rights reserved.