com.atlassian.jira.rest.bind
Class DateAdapter
java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<String,Date>
com.atlassian.jira.rest.bind.DateAdapter
public class DateAdapter
- extends XmlAdapter<String,Date>
Adapter for marshalling and unmarshalling calendar dates. This class must not be used to marshall dates
that correspond to a specific instant (that is, a date/time object). For date/time objects, the DateTimeAdapter
should be used instead.
The wire format used is ''
.
- Since:
- v4.4
- See Also:
Dates
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DateAdapter
public DateAdapter()
unmarshal
public Date unmarshal(String text)
throws Exception
- Specified by:
unmarshal
in class XmlAdapter<String,Date>
- Throws:
Exception
marshal
public String marshal(Date date)
throws Exception
- Specified by:
marshal
in class XmlAdapter<String,Date>
- Throws:
Exception
Copyright © 2002-2014 Atlassian. All Rights Reserved.