be.ehealth.technicalconnector.adapter
Class XmlDateAdapter

java.lang.Object
  extended by javax.xml.bind.annotation.adapters.XmlAdapter<String,org.joda.time.DateTime>
      extended by be.ehealth.technicalconnector.adapter.XmlDateAdapter
Direct Known Subclasses:
XmlDateNoTzAdapter

public class XmlDateAdapter
extends XmlAdapter<String,org.joda.time.DateTime>

Converts xs:date from string to org.joda.time.DateTime and vice versa.


Constructor Summary
XmlDateAdapter()
           
 
Method Summary
 String marshal(org.joda.time.DateTime value)
           
 org.joda.time.DateTime unmarshal(String value)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlDateAdapter

public XmlDateAdapter()
Method Detail

unmarshal

public org.joda.time.DateTime unmarshal(String value)
                                 throws Exception
Specified by:
unmarshal in class XmlAdapter<String,org.joda.time.DateTime>
Throws:
Exception

marshal

public String marshal(org.joda.time.DateTime value)
               throws Exception
Specified by:
marshal in class XmlAdapter<String,org.joda.time.DateTime>
Throws:
Exception



Connector Packaging TECHNICAL 3.25.0 API
Copyright © {inceptionYear}-2023 eHealth. All Rights Reserved.