com.atlassian.jira.rest.bind
Class DateAdapter

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

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

Constructor Detail

DateAdapter

public DateAdapter()
Method Detail

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.