Class ZonedLocalDateXmlAdapter

java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<String,LocalDate>
nl.vpro.xml.bind.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 Details

    • ZonedLocalDateXmlAdapter

      public ZonedLocalDateXmlAdapter()
  • Method Details

    • 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>