XStream
  1. XStream
  2. XSTR-492

Enum as attribute in lower case format

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.3
    • Fix Version/s: 1.x Maintenance
    • Component/s: Converters
    • Labels:
      None
    • JDK version and platform:
      jdk 1.5 / 1.6

      Description

      The class EnumSingleValueConverter could be changed to read enum im lower case format:
      @XStreamAlias("protocol")
      class Protocol{
      @XStreamAsAttribute
      TYPE type;
      }

      enum TYPE {
      ASCII,BINARY;
      }

      Xml format:

      <protocol type="ascii"/>

      I think a change is simple and very useful,needs only a toUpperCase and toLowerCase on convert method.

        People

        • Assignee:
          Jörg Schaible
          Reporter:
          Maxwell Chiareli
        • Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: