com.godmonth.util.jaxb.adapters.joda.time.LocalTimeAdapter Maven / Gradle / Ivy
package com.godmonth.util.jaxb.adapters.joda.time;
import javax.xml.bind.annotation.adapters.XmlAdapter;
import org.joda.time.LocalTime;
public class LocalTimeAdapter extends XmlAdapter {
public LocalTime unmarshal(String v) throws Exception {
return new LocalTime(v);
}
public String marshal(LocalTime v) throws Exception {
return v.toString();
}
}