Class EnumToStringXmlAdapter<T extends java.lang.Enum<T>>

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected EnumToStringXmlAdapter​(java.lang.Class<T> clazz, T defaultValue)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String marshal​(T nodeType)
      T unmarshal​(java.lang.String status)
      • Methods inherited from class java.lang.Object

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

      • EnumToStringXmlAdapter

        protected EnumToStringXmlAdapter​(java.lang.Class<T> clazz,
                                         T defaultValue)
    • Method Detail

      • marshal

        public java.lang.String marshal​(T nodeType)
                                 throws java.lang.Exception
        Specified by:
        marshal in class javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,​T extends java.lang.Enum<T>>
        Throws:
        java.lang.Exception
      • unmarshal

        public T unmarshal​(java.lang.String status)
                    throws java.lang.Exception
        Specified by:
        unmarshal in class javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,​T extends java.lang.Enum<T>>
        Throws:
        java.lang.Exception