Class AbstractXmlAdapter.EnumIoOrdinals<T extends java.lang.Enum<T>>

  • Type Parameters:
    T - generic Enum class.
    Enclosing class:
    AbstractXmlAdapter

    public static class AbstractXmlAdapter.EnumIoOrdinals<T extends java.lang.Enum<T>>
    extends AbstractXmlAdapter.EnumIO<T>
    Support for Enum I/O to XML using the enum's ordinal numbers in String form.

    String or mapped I/LO should he preferred.

    This converts to and from ordinal numbers so the order of definitions in the enum has to match up with the (former) constant values.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.lang.Class<T> clazz  
    • Constructor Summary

      Constructors 
      Constructor Description
      EnumIoOrdinals​(java.lang.Class<T> clazz)