开发者

How to alias object through xstream?

开发者 https://www.devze.com 2023-02-24 04:56 出处:网络
I\'ve got an object which contains list of strings. How is it possible to define that the String.cl开发者_运维技巧ass should be serialized with alias \"somealias\" instead of \"string\" through annota

I've got an object which contains list of strings. How is it possible to define that the String.cl开发者_运维技巧ass should be serialized with alias "somealias" instead of "string" through annotations?


@XStreamImplicit(itemFieldName="somealias")
private List<String> content;
0

精彩评论

暂无评论...
验证码 换一张
取 消