Package org.faktorips.runtime.jaxb
Class LocalDateAdapter
- java.lang.Object
-
- javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.time.LocalDate>
-
- org.faktorips.runtime.jaxb.LocalDateAdapter
-
public class LocalDateAdapter extends javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.time.LocalDate>XmlAdapterforLocalDate. The adapter can be used for individual elements/attributes or registered inpackage-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;
-
-
Constructor Summary
Constructors Constructor Description LocalDateAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringmarshal(java.time.LocalDate v)java.time.LocalDateunmarshal(java.lang.String v)
-
-
-
Method Detail
-
unmarshal
public java.time.LocalDate unmarshal(java.lang.String v)
- Specified by:
unmarshalin classjavax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.time.LocalDate>
-
marshal
public java.lang.String marshal(java.time.LocalDate v)
- Specified by:
marshalin classjavax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.time.LocalDate>
-
-