com.atlassian.jira.rest.bind
Class DateTimeAdapter

java.lang.Object
  extended by javax.xml.bind.annotation.adapters.XmlAdapter<String,Date>
      extended by 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

Constructor Summary
DateTimeAdapter()
           
 
Method Summary
 String marshal(Date date)
           
 Date unmarshal(String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateTimeAdapter

public DateTimeAdapter()
Method Detail

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.