开发者

How to alias object through xstream?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜