[Simple-support] Transforming a map
Brought to you by:
niallg
|
From: Gabi K. <gka...@ya...> - 2011-08-12 10:27:04
|
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
|