关于使用XStream时隐藏某个集合类的父结点
最近工作中做一个数据对接时对方传过来的数据为xml格式,而我则接收数据并转换为java bean进行操作,传过来的数据格式如下:
addImplicitCollection(Class ownerType, String fieldName)
其实中ownerType为转换的目标java bean,fieldName则为其成员集合类的名称
发布时间: 2012-10-24 14:15:58 作者: rapoo
关于使用XStream时隐藏某个集合类的父结点
最近工作中做一个数据对接时对方传过来的数据为xml格式,而我则接收数据并转换为java bean进行操作,传过来的数据格式如下:
addImplicitCollection(Class ownerType, String fieldName)
其实中ownerType为转换的目标java bean,fieldName则为其成员集合类的名称