JiBX
  1. JiBX
  2. JIBX-264

Codegen: add toString() method on generated enum class

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: JiBX 1.2 beta 1
    • Fix Version/s: JiBX 1.2
    • Component/s: core
    • Labels:
      None
    • Number of attachments :
      0

      Description

      It would be nice if toString() on a generated enum class returned the enumeration value, rather than the generated enumeration name.

      For example, the generated name for the value "3.2" is "_32". I think toString() should return "3.2" rather than "_32".

        Activity

        Hide
        Dennis Sosnoski added a comment -

        Ok, talked me into the change.

        Show
        Dennis Sosnoski added a comment - Ok, talked me into the change.

          People

          • Assignee:
            Dennis Sosnoski
            Reporter:
            Nigel Charman
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: