com.github.fedy2.weather.binding.adapter
Class DateAdapter

java.lang.Object
  extended by javax.xml.bind.annotation.adapters.XmlAdapter<String,Date>
      extended by com.github.fedy2.weather.binding.adapter.DateAdapter

public class DateAdapter
extends XmlAdapter<String,Date>

Author:
"Federico De Faveri defaveri@gmail.com"

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

Constructor Detail

DateAdapter

public DateAdapter()
Method Detail

marshal

public String marshal(Date v)
               throws Exception

Specified by:
marshal in class XmlAdapter<String,Date>
Throws:
Exception

unmarshal

public Date unmarshal(String v)
               throws Exception

Specified by:
unmarshal in class XmlAdapter<String,Date>
Throws:
Exception


Copyright © 2013. All rights reserved.