Class MonthAdapter


  • public class MonthAdapter
    extends javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.Integer,​java.time.Month>
    XmlAdapter for Month. The adapter can be used for individual elements/attributes or registered in package-info.java:
     
     @javax.xml.bind.annotation.adapters.XmlJavaTypeAdapters({
         @javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(value = de.faktorzehn.commons.jaxb.MonthAdapter.class),
         ...
     })
     package com.acme.foo;
     
     
    • Constructor Summary

      Constructors 
      Constructor Description
      MonthAdapter()  
    • Method Summary

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

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

      • MonthAdapter

        public MonthAdapter()
    • Method Detail

      • unmarshal

        public java.time.Month unmarshal​(java.lang.Integer i)
        Specified by:
        unmarshal in class javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.Integer,​java.time.Month>
      • marshal

        public java.lang.Integer marshal​(java.time.Month m)
        Specified by:
        marshal in class javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.Integer,​java.time.Month>