Class DateAdapter
- java.lang.Object
-
- javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.util.Date>
-
- de.hybris.platform.webservicescommons.jaxb.adapters.DateAdapter
-
public class DateAdapter extends javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.util.Date>DateAdaper is used by JAXB to convert Dates to String and vice versa.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDATE_FORMAT
-
Constructor Summary
Constructors Constructor Description DateAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringmarshal(java.util.Date d)java.util.Dateunmarshal(java.lang.String d)
-
-
-
Field Detail
-
DATE_FORMAT
public static final java.lang.String DATE_FORMAT
- See Also:
- Constant Field Values
-
-
Method Detail
-
marshal
public java.lang.String marshal(java.util.Date d)
- Specified by:
marshalin classjavax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.util.Date>
-
unmarshal
public java.util.Date unmarshal(java.lang.String d)
- Specified by:
unmarshalin classjavax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.util.Date>
-
-