Class ZonedLocalDateXmlAdapter


  • public class ZonedLocalDateXmlAdapter
    extends javax.xml.bind.annotation.adapters.XmlAdapter<String,​LocalDate>
    Formatter a LocalDate as a 'zoned date', using XmlUtils.DEFAULT_ZONE This makes xml bindings independent of system locale.
    Since:
    2.5
    Author:
    Michiel Meeuwissen
    • Constructor Detail

      • ZonedLocalDateXmlAdapter

        public ZonedLocalDateXmlAdapter()
    • Method Detail

      • unmarshal

        public LocalDate unmarshal​(String dateValue)
        Specified by:
        unmarshal in class javax.xml.bind.annotation.adapters.XmlAdapter<String,​LocalDate>
      • marshal

        public String marshal​(LocalDate v)
        Specified by:
        marshal in class javax.xml.bind.annotation.adapters.XmlAdapter<String,​LocalDate>