XStream
  1. XStream
  2. XSTR-206

Converter for EnumMap and EnumSet

    Details

    • Type: New Feature New Feature
    • Status: Closed Closed
    • Priority: Major 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>

        People

        • Assignee:
          Unassigned
          Reporter:
          Joe Walnes
        • Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: