Details

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

      Description

      Rather than globally mapping a class to an alias, it would be nice to make a mapping contextual; that is, to make a mapping conditional upon parent nodes.

      For example, if my class has a list of, say, usernames, the generated (and expected) XML for it might look like:

      ...
      <users>
      <string>Tom</string>
      <string>Dick</string>
      <string>Harry</string>
      </users>
      ...

      In this case, it would be nice to alias java.lang.String as "user" when contained by "users", resulting in:

      ...
      <users>
      <user>Tom</user>
      ...

      Globally aliasing java.lang.String has some obvious drawbacks.

      I looked through the code and it looks like this would be a rather large undertaking, but thought I'd toss the idea out.

        Issue Links

          People

          • Assignee:
            Jörg Schaible
            Reporter:
            Marty Lamb
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: