org.w3._2001.xmlschema.Adapter2 Maven / Gradle / Ivy
package org.w3._2001.xmlschema;
import java.util.Calendar;
import javax.xml.bind.annotation.adapters.XmlAdapter;
public class Adapter2
extends XmlAdapter
{
public Calendar unmarshal(String value) {
return (javax.xml.bind.DatatypeConverter.parseTime(value));
}
public String marshal(Calendar value) {
if (value == null) {
return null;
}
return (javax.xml.bind.DatatypeConverter.printTime(value));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy