Package be.ehealth.technicalconnector.adapter

# Class XmlTimeAdapter

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

Direct Known Subclasses:
  `XmlTimeNoTzAdapter`

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

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `XmlTimeAdapter()`

- ## Method Summary

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

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

  - ### XmlTimeAdapter

    public XmlTimeAdapter()

- ## Method Details

  - ### unmarshal

    public Instant unmarshal(String lexicalXSDTime) 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`