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

字段摘要
static PoJoDecoder toPOJO
           
 
构造方法摘要
PoJoDecoder()
           
 
方法摘要
 boolean accept(Type type)
          是否接受是该类型json解码器
protected  Object getTarget(JSONMap map, Type toType)
           
protected  void parseFromJSONMap(Object target, JSONMap map, Map<String,Object> references)
          解析jsonMap属性,填充target对象的值
 
从类 org.test4j.json.decoder.base.MapPoJoBaseDecoder 继承的方法
decode, getTargetType
 
从类 org.test4j.json.decoder.base.BaseDecoder 继承的方法
getArgType, getError, getError, getRawType, isInterfaceOrAbstract, newInstance
 
从类 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.