类 org.test4j.json.helper.JSONMap
的使用

使用 JSONMap 的软件包
org.test4j.json.decoder   
org.test4j.json.decoder.base   
org.test4j.json.decoder.spec   
 

org.test4j.json.decoderJSONMap 的使用
 

参数类型为 JSONMaporg.test4j.json.decoder 中的方法
protected  Object PoJoDecoder.getTarget(JSONMap map, Type toType)
           
protected  Map MapDecoder.getTarget(JSONMap map, Type toType)
           
protected  void MapDecoder.parseFromJSONMap(Map target, JSONMap jsonMap, Map<String,Object> references)
           
protected  void PoJoDecoder.parseFromJSONMap(Object target, JSONMap map, Map<String,Object> references)
           
 

org.test4j.json.decoder.baseJSONMap 的使用
 

参数类型为 JSONMaporg.test4j.json.decoder.base 中的方法
protected
<T> T
FixedTypeDecoder.decodeFromJSONMap(JSONMap map)
           
protected  void SpecTypeDecoder.fillTargetOtherProp(Object target, JSONMap map)
          填充非标准字段,比如用户自己扩展的属性
protected abstract  E MapPoJoBaseDecoder.getTarget(JSONMap map, Type toType)
           
protected  Class MapPoJoBaseDecoder.getTargetType(Type toType, JSONMap map)
          根据JSONMap在#class属性或者 Decoder传进来的class创建对象实例
如果实例被标记了ReferenceID,往references中追加一条记录
protected abstract  void MapPoJoBaseDecoder.parseFromJSONMap(E target, JSONMap jsonMap, Map<String,Object> references)
          解析jsonMap属性,填充target对象的值
 

org.test4j.json.decoder.specJSONMap 的使用
 

参数类型为 JSONMaporg.test4j.json.decoder.spec 中的方法
 Method MethodDecoder.decodeFrom(JSONMap map)
           
<T> T
ThrowableDecoder.decodeFrom(JSONMap map)
           
abstract
<T> T
SpecDecoder.decodeFrom(JSONMap map)
           
 



Copyright © 2013. All rights reserved.