org.test4j.json.decoder.base
类 SpecTypeDecoder

java.lang.Object
  继承者 org.test4j.json.decoder.base.BaseDecoder
      继承者 org.test4j.json.decoder.base.SpecTypeDecoder
所有已实现的接口:
IDecoder
直接已知子类:
AppendableDecoder, DateDecoder, EnumDecoder

public abstract class SpecTypeDecoder
extends BaseDecoder


构造方法摘要
SpecTypeDecoder()
           
 
方法摘要
<E> E
decode(JSONObject json, Type toType, Map<String,Object> references)
          将json串反序列为对象
protected abstract  Object decodeFromString(String value, Type type)
           
protected  void fillTargetOtherProp(Object target, JSONMap map)
          填充非标准字段,比如用户自己扩展的属性
 
从类 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
 
从接口 org.test4j.json.decoder.IDecoder 继承的方法
accept
 

构造方法详细信息

SpecTypeDecoder

public SpecTypeDecoder()
方法详细信息

decode

public <E> E decode(JSONObject json,
                    Type toType,
                    Map<String,Object> references)
从接口 IDecoder 复制的描述
将json串反序列为对象

返回:

decodeFromString

protected abstract Object decodeFromString(String value,
                                           Type type)

fillTargetOtherProp

protected void fillTargetOtherProp(Object target,
                                   JSONMap map)
填充非标准字段,比如用户自己扩展的属性

参数:
target -
map -


Copyright © 2013. All rights reserved.