001 //
002 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
003 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
004 // Any modifications to this file will be lost upon recompilation of the source schema.
005 // Generated on: 2011.01.08 at 06:04:30 PM CET
006 //
007
008
009 package org.openstreetmap.josm.data.imagery.types;
010
011 import java.util.Calendar;
012
013 import javax.xml.bind.annotation.adapters.XmlAdapter;
014
015 public class Adapter1
016 extends XmlAdapter<String, Calendar>
017 {
018
019
020 @Override
021 public Calendar unmarshal(String value) {
022 return (javax.xml.bind.DatatypeConverter.parseDate(value));
023 }
024
025 @Override
026 public String marshal(Calendar value) {
027 if (value == null)
028 return null;
029 return (org.openstreetmap.josm.data.imagery.WmsCache.printDate(value));
030 }
031
032 }