XStream
  1. XStream
  2. XSTR-123

Ability to have Converters for base classes

    Details

    • Type: New Feature New Feature
    • Status: Closed Closed
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      In the following case I might want to have a converter for base, that is also used when I serialize derived.

      class base
      {
      String it
      }
      class derived extends base
      {
      String second
      }

      The base converted might place its members in attributes, while derived (via standard marshaling) will place it in elements:

      <derived it="dd">
      <second>bla</string>
      </derived>

        People

        • Assignee:
          Unassigned
          Reporter:
          Michael Kopp
        • Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: