Class SdkDateXmlAdapter

java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<String,Temporal>
com.nedap.archie.xml.adapters.DateXmlAdapter
org.ehrbase.openehr.sdk.serialisation.xmlencoding.SdkDateXmlAdapter

public class SdkDateXmlAdapter extends com.nedap.archie.xml.adapters.DateXmlAdapter
This JAXB adapter is used to work around archie parsing date-time values that contain invalid dates (i.e. 2023-13, ignoring leap years)
  • Constructor Details

    • SdkDateXmlAdapter

      public SdkDateXmlAdapter()
  • Method Details

    • marshal

      public String marshal(Temporal value)
      Overrides:
      marshal in class com.nedap.archie.xml.adapters.DateXmlAdapter
    • unmarshal

      public Temporal unmarshal(String stringValue)
      Overrides:
      unmarshal in class com.nedap.archie.xml.adapters.DateXmlAdapter