Adapter1.java

  1. //
  2. // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference
  3. // Implementation, v2.2.8-b130911.1802
  4. // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
  5. // Any modifications to this file will be lost upon recompilation of the source schema.
  6. // Generated on: 2018.12.31 at 10:32:54 AM CET
  7. //

  8. package nl.b3p.topnl.top50nl;

  9. import java.util.Calendar;
  10. import javax.xml.bind.annotation.adapters.XmlAdapter;

  11. public class Adapter1 extends XmlAdapter<String, Calendar> {

  12.   @Override
  13.   public Calendar unmarshal(String value) {
  14.     return (javax.xml.bind.DatatypeConverter.parseDateTime(value));
  15.   }

  16.   @Override
  17.   public String marshal(Calendar value) {
  18.     if (value == null) {
  19.       return null;
  20.     }
  21.     return (javax.xml.bind.DatatypeConverter.printDateTime(value));
  22.   }
  23. }