com.atlassian.jira.rest.bind
Class DateTimeAdapter
java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<String,Date>
com.atlassian.jira.rest.bind.DateTimeAdapter
public class DateTimeAdapter
- extends XmlAdapter<String,Date>
Adapter for marshalling and unmarshalling date/time objects, or instants in time. Note that this class should
not be used to marshall calendar dates that do not represent a specific point in time (e.g. ). In those cases
DateAdapter should be used.
The wire format used is ''.
- Since:
- v4.1
- See Also:
Dates
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DateTimeAdapter
public DateTimeAdapter()
unmarshal
public Date unmarshal(String s)
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-2012 Atlassian. All Rights Reserved.