@StableMinor(version="12.4", sinceVersion="8.0") public class RichDateTimeXmlAdapter extends XmlAdapter<RichDateTimeXmlAdapter.RichDateTime,Date>
Sample date output in JSON:
{"iso":"2014-09-08T15:29:34.251-03:00","timeInMillis":1410200974251,"formatted":"08/09/14 15:29"}
Sample date input formats in JSON:
Modifier and Type | Class and Description |
---|---|
static class |
RichDateTimeXmlAdapter.RichDateTime
JAXB mapped class used as Date adaptation by
RichDateTimeXmlAdapter . |
Constructor and Description |
---|
RichDateTimeXmlAdapter() |
Modifier and Type | Method and Description |
---|---|
RichDateTimeXmlAdapter.RichDateTime |
marshal(Date date) |
Date |
unmarshal(RichDateTimeXmlAdapter.RichDateTime richDate) |
public Date unmarshal(RichDateTimeXmlAdapter.RichDateTime richDate) throws Exception
unmarshal
in class XmlAdapter<RichDateTimeXmlAdapter.RichDateTime,Date>
Exception
public RichDateTimeXmlAdapter.RichDateTime marshal(Date date) throws Exception
marshal
in class XmlAdapter<RichDateTimeXmlAdapter.RichDateTime,Date>
Exception
LumisXP 12.4.0.200625 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.