|Re: Custom serialization of Map$Entry [message #653778 is a reply to message #653720]
||Fri, 11 February 2011 07:05
| Ed Merks
Registered: July 2009
You'd have to specialize XMLHandler and XMLSaveImpl to achieve such a
result. It will be quite a bit of work.
> I have a class that has a containment reference of type
> StringToValueMapEntry with multiplicity 0..*. StringToValueMapEntry is
> a java.util.Map$Entry with an attribute key of type EString and a
> value of type Value. Finally, Value is a class with two attributes, a
> and b of type EString.
> The default serialization produces
> <element key="key">
> <value a="value of a" b="value of b"/>
> I would like to have
> <element key="key" a="value of a" b="value of b"/>
> How can I achieve this? Any help will be very much appreciated.
Professional Support: https://www.macromodeling.com/
Powered by FUDForum
. Page generated in 0.02194 seconds