com.github.fedy2.weather.binding.adapter
Class TimeAdapter
java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<String,Time>
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"
TimeAdapter
public TimeAdapter()
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.