Class LocalDateAdapter


  • public class LocalDateAdapter
    extends javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,​java.time.LocalDate>
    XmlAdapter for LocalDate. 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.LocalDateAdapter.class),
         ...
     })
     package com.acme.foo;
     
     
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String marshal​(java.time.LocalDate v)  
      java.time.LocalDate 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

      • LocalDateAdapter

        public LocalDateAdapter()
    • Method Detail

      • unmarshal

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

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