Class LocalDateTimeAdapter


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

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

      • LocalDateTimeAdapter

        public LocalDateTimeAdapter()
    • Method Detail

      • unmarshal

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

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