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

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

public class TimeAdapter
extends XmlAdapter<String,Time>

The time is a string in a local time format of "h:mm am/pm", for example "7:02 am" (string)

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

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

Constructor Detail

TimeAdapter

public TimeAdapter()
Method Detail

unmarshal

public Time unmarshal(String v)
               throws Exception

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

marshal

public String marshal(Time v)
               throws Exception

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


Copyright © 2013. All rights reserved.