Details
-
Type: New Feature
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.1.3
-
Component/s: None
-
Labels:None
Description
Although XStream should already serialize EnumSet and EnumMap correctly (by following the serialization specification), the XML is bloaty. It would be nicer to have something leaner.
For example, something like:
<enum-set enum="com.blah.MyEnum">GREEN,BLUE,RED</enum-set>
<enum-map enum="com.blah.MyEnum">
<GREEN>
<string>hello</string>
</GREEN>
<RED>
<int>123</int>
</RED>
</enum-map>