Adapter2.java
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference
// Implementation, v2.2.8-b130911.1802
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2016.12.07 at 02:40:39 PM CET
//
package nl.b3p.topnl.top100nl;
import java.util.Calendar;
import javax.xml.bind.annotation.adapters.XmlAdapter;
public class Adapter2 extends XmlAdapter<String, Calendar> {
@Override
public Calendar unmarshal(String value) {
return (javax.xml.bind.DatatypeConverter.parseDate(value));
}
@Override
public String marshal(Calendar value) {
if (value == null) {
return null;
}
return (javax.xml.bind.DatatypeConverter.printDate(value));
}
}