Class XmlToEnumMapper<T extends java.lang.Enum<?>>


  • public final class XmlToEnumMapper<T extends java.lang.Enum<?>>
    extends java.lang.Object
    Efficient lookup from xml enums to java enums
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static <T extends java.lang.Enum<?>>
      XmlToEnumMapper<T>
      create​(T[] enumValues)
      Creates a new XmlToEnumMapper from xml value to enum value.
      T xmlToEnum​(java.lang.String value)
      Look up T from the XmlEnumValue
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • xmlToEnum

        public T xmlToEnum​(java.lang.String value)
        Look up T from the XmlEnumValue
      • create

        public static <T extends java.lang.Enum<?>> XmlToEnumMapper<T> create​(T[] enumValues)
        Creates a new XmlToEnumMapper from xml value to enum value.