
com.godmonth.util.jaxb.adapters.joda.LocalDateAdapter Maven / Gradle / Ivy
package com.godmonth.util.jaxb.adapters.joda;
import javax.xml.bind.annotation.adapters.XmlAdapter;
import org.joda.time.LocalDate;
public class LocalDateAdapter extends XmlAdapter {
public LocalDate unmarshal(String v) throws Exception {
return new LocalDate(v);
}
public String marshal(LocalDate v) throws Exception {
return v.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy