Package be.ehealth.technicalconnector.adapter

# Class XmlDateAdapter

java.lang.Object
jakarta.xml.bind.annotation.adapters.XmlAdapter<String,Instant>
be.ehealth.technicalconnector.adapter.AbstractAdapter
be.ehealth.technicalconnector.adapter.XmlDateAdapter

Direct Known Subclasses:
  `XmlDateNoTzAdapter`

public class XmlDateAdapter extends AbstractAdapter
Converts xs:date from string to org.joda.time.DateTime and vice versa.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `XmlDateAdapter()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `marshal(Instant instant)`
  `Instant`
  `unmarshal(String lexicalXSDDate)`

  ### Methods inherited from class be.ehealth.technicalconnector.adapter.AbstractAdapter

  `toCalendar`

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### XmlDateAdapter

    public XmlDateAdapter()

- ## Method Details

  - ### unmarshal

    public Instant unmarshal(String lexicalXSDDate) throws Exception
    Specified by:
      `unmarshal` in class `jakarta.xml.bind.annotation.adapters.XmlAdapter<String,Instant>`
    Throws:
      `Exception`

  - ### marshal

    public String marshal(Instant instant) throws Exception
    Specified by:
      `marshal` in class `jakarta.xml.bind.annotation.adapters.XmlAdapter<String,Instant>`
    Throws:
      `Exception`