org.w3._2001.xmlschema.Adapter1 Maven / Gradle / Ivy
//
// This file was generated by the Eclipse Implementation of JAXB, v2.3.6
// See https://eclipse-ee4j.github.io/jaxb-ri
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2023.06.23 at 10:32:49 AM CEST
//
package org.w3._2001.xmlschema;
import java.time.ZonedDateTime;
import javax.xml.bind.annotation.adapters.XmlAdapter;
public class Adapter1
extends XmlAdapter
{
public ZonedDateTime unmarshal(String value) {
return (java.time.ZonedDateTime.parse(value));
}
public String marshal(ZonedDateTime value) {
return (java.time.format.DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(value));
}
}