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: 2017.12.08 at 10:18:04 AM CET
//

package nl.b3p.topnl.top250nl;

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));
  }
}