Class DateAdapter
- java.lang.Object
-
- javax.xml.bind.annotation.adapters.XmlAdapter<String,LocalDateTime>
-
- io.mosip.kernel.core.cbeffutil.common.DateAdapter
-
public class DateAdapter extends javax.xml.bind.annotation.adapters.XmlAdapter<String,LocalDateTime>
-
-
Constructor Summary
Constructors Constructor Description DateAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringmarshal(LocalDateTime v)LocalDateTimeunmarshal(String v)
-
-
-
Method Detail
-
unmarshal
public LocalDateTime unmarshal(String v) throws Exception
- Specified by:
unmarshalin classjavax.xml.bind.annotation.adapters.XmlAdapter<String,LocalDateTime>- Parameters:
v- formatted date- Returns:
- Date
- Throws:
Exception
-
marshal
public String marshal(LocalDateTime v) throws Exception
- Specified by:
marshalin classjavax.xml.bind.annotation.adapters.XmlAdapter<String,LocalDateTime>- Parameters:
v- date- Returns:
- String formatted date
- Throws:
Exception
-
-