public class Mapl extends Object
构造器和说明 |
---|
Mapl() |
限定符和类型 | 方法和说明 |
---|---|
static Object |
cell(Object maplist,
String path)
访问MAP, List结构的数据, 通过 uers[2].name 这种形式.
|
static Object |
convert(Object maplist,
Object model)
结构转换, 详情参见:
StructureConvert |
static Object |
convert(Object maplist,
Reader model)
结构转换, 详情参见:
StructureConvert |
static void |
del(Object obj,
String path)
删除一个结点
|
static Object |
excludeFilter(Object maplist,
List<String> paths)
排除MapList过滤器, 详情参见:
FilterConvertImpl |
static Object |
includeFilter(Object maplist,
List<String> paths)
包含MapList过滤器, 详情参见:
FilterConvertImpl |
static Object |
maplistToObj(Object maplist,
Type type)
这个实现, 主要将 List, Map 的对象结构转换成真实的对象.
|
static <T> T |
maplistToT(Object maplist,
Class<T> clz)
与maplistToObj实现一样, 少了一步强制转换而已
|
static Object |
merge(Object... maplists)
转换器中间对象合并器
合并 Mapl 中定义的中间结构. |
static void |
put(Object obj,
String path,
Object val)
添加新的结点
|
static Object |
toMaplist(Object obj)
将对象转换成Maplist结构
|
static void |
update(Object obj,
String path,
Object val)
更新
|
public static Object maplistToObj(Object maplist, Type type)
规则:
public static <T> T maplistToT(Object maplist, Class<T> clz)
public static Object cell(Object maplist, String path)
maplist
- path
- 路径public static Object merge(Object... maplists)
Mapl
中定义的中间结构.public static Object includeFilter(Object maplist, List<String> paths)
FilterConvertImpl
maplist
- maplist结构的对象paths
- 过滤列表public static Object excludeFilter(Object maplist, List<String> paths)
FilterConvertImpl
maplist
- maplist结构的对象paths
- 过滤列表public static Object convert(Object maplist, Reader model)
StructureConvert
maplist
- maplist结构的对象model
- 转换模板, 一个JSON格式的readerpublic static Object convert(Object maplist, Object model)
StructureConvert
maplist
- maplist结构的对象model
- 转换模板, 也是一个规定格式的maplist结构public static void put(Object obj, String path, Object val)
obj
- 原始的MapListpath
- 路径val
- 值Copyright © 2017. All rights reserved.