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
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.