Class MonthAsTextXmlAdapter


  • public class MonthAsTextXmlAdapter
    extends XmlAdapter<java.lang.String,​java.time.Month>
    XmlAdapter mapping JSR-310 Month to ISO proleptic month string

    Month string interpretation details (transformed to a string):

    • Month.of(int)
    • Month.getValue()

    This adapter is suitable for xsd:gMonth types.

    See Also:
    XmlAdapter, Month
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String marshal​(java.time.Month value)  
      java.time.Month unmarshal​(java.lang.String stringValue)  
      • Methods inherited from class java.lang.Object

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

      • MonthAsTextXmlAdapter

        public MonthAsTextXmlAdapter()
    • Method Detail

      • unmarshal

        public java.time.Month unmarshal​(java.lang.String stringValue)
        Specified by:
        unmarshal in class XmlAdapter<java.lang.String,​java.time.Month>
      • marshal

        public java.lang.String marshal​(java.time.Month value)
        Specified by:
        marshal in class XmlAdapter<java.lang.String,​java.time.Month>