Re: [Simple-support] Transforming a map
Brought to you by:
niallg
|
From: Niall G. <gal...@ya...> - 2011-08-13 01:30:45
|
Check this out https://simple.svn.sourceforge.net/svnroot/simple/branches/location/src/test/java/org/simpleframework/xml/core/MapWithValueAttributeTest.java --- On Fri, 12/8/11, Gabi Kaltman <gka...@ya...> wrote: From: Gabi Kaltman <gka...@ya...> Subject: [Simple-support] Transforming a map To: "sim...@li..." <sim...@li...> Received: Friday, 12 August, 2011, 3:26 AM Hi, I'm new to Simple and I would like to ask you for some help. I have a class looking like: public void MyClass { private String type; private Map<String, String> nameToValueMap; } I can not manage to get this class serialized in the following:<type name1="value1", name2="value2".../> I tried with ElementMap annotation, but I can not get to:1. Inline the pairs (name,value) as attributes.2. Set the name of the node to the String type. Thank you very much,gabriel -----Inline Attachment Follows----- ------------------------------------------------------------------------------ Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-dev2dev -----Inline Attachment Follows----- _______________________________________________ Simple-support mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simple-support |