Re: [Simple-support] Transforming a map
Brought to you by:
niallg
|
From: Gabi K. <gka...@ya...> - 2011-08-12 13:09:05
|
Managed to do it using a converter. Maybe there is a simpler way as well..
Regards,
gabriel
________________________________
From: Gabi Kaltman <gka...@ya...>
To: "sim...@li..." <sim...@li...>
Sent: Friday, August 12, 2011 1:26 PM
Subject: [Simple-support] Transforming a map
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
------------------------------------------------------------------------------
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
_______________________________________________
Simple-support mailing list
Sim...@li...
https://lists.sourceforge.net/lists/listinfo/simple-support |