Class MonthDayAdapter


  • public class MonthDayAdapter
    extends javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,​java.time.MonthDay>
    XmlAdapter for MonthDay. 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
      MonthDayAdapter()  
    • Method Summary

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

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

      • MonthDayAdapter

        public MonthDayAdapter()
    • Method Detail

      • unmarshal

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

        public java.lang.String marshal​(java.time.MonthDay v)
        Specified by:
        marshal in class javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,​java.time.MonthDay>