All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.godmonth.util.jaxb.adapters.joda.time.IntervalAdapter Maven / Gradle / Ivy

package com.godmonth.util.jaxb.adapters.joda.time;

import javax.xml.bind.annotation.adapters.XmlAdapter;

import org.joda.time.Interval;

public class IntervalAdapter extends XmlAdapter {

	public Interval unmarshal(String v) throws Exception {
		return new Interval(v);
	}

	public String marshal(Interval v) throws Exception {
		return v.toString();
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy