Class XmlEnumUtils


  • public class XmlEnumUtils
    extends Object
    Utility methods for JAXB Enum classes
    • Method Detail

      • getConversionType

        public static Class getConversionType​(Class e)
        Parameters:
        e - Class of enum
        Returns:
        a base type that can be used for constructing the enum
      • fromValue

        public static Object fromValue​(Class e,
                                       Object convObject)
        Parameters:
        e - enumeration class
        convObject - Object of conversion type
        Returns:
        Object of enum