Package jmri.configurexml
Class AbstractXmlAdapter.EnumIoNamesNumbers<T extends java.lang.Enum<T>>
- java.lang.Object
-
- jmri.configurexml.AbstractXmlAdapter.EnumIO<T>
-
- jmri.configurexml.AbstractXmlAdapter.EnumIoNames<T>
-
- jmri.configurexml.AbstractXmlAdapter.EnumIoNamesNumbers<T>
-
- Type Parameters:
T
- generic enum class.
- Enclosing class:
- AbstractXmlAdapter
public static class AbstractXmlAdapter.EnumIoNamesNumbers<T extends java.lang.Enum<T>> extends AbstractXmlAdapter.EnumIoNames<T>
Support for Enum I/O to XML using the enum's element names; for backward compatibility, it will also accept ordinal numbers when reading.
-
-
Field Summary
-
Fields inherited from class jmri.configurexml.AbstractXmlAdapter.EnumIoNames
clazz, mapToEnum
-
-
Constructor Summary
Constructors Constructor Description EnumIoNamesNumbers(java.lang.Class<T> clazz)
This constructor converts to and from strings using the enum element names and, on read only, ordinal numbers
-
Method Summary
-
Methods inherited from class jmri.configurexml.AbstractXmlAdapter.EnumIoNames
inputFromString, outputFromEnum
-
Methods inherited from class jmri.configurexml.AbstractXmlAdapter.EnumIO
inputFromAttribute
-
-
-
-
Constructor Detail
-
EnumIoNamesNumbers
public EnumIoNamesNumbers(@Nonnull java.lang.Class<T> clazz)
This constructor converts to and from strings using the enum element names and, on read only, ordinal numbers- Parameters:
clazz
- enum class type.
-
-