com.github.fedy2.weather.binding.adapter
Class DegreeUnitAdapter
java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<String,DegreeUnit>
com.github.fedy2.weather.binding.adapter.DegreeUnitAdapter
public class DegreeUnitAdapter
- extends XmlAdapter<String,DegreeUnit>
Degree unit adapter: f for Fahrenheit or c for Celsius (character)
- Author:
- "Federico De Faveri defaveri@gmail.com"
DegreeUnitAdapter
public DegreeUnitAdapter()
unmarshal
public DegreeUnit unmarshal(String v)
throws Exception
-
- Specified by:
unmarshal in class XmlAdapter<String,DegreeUnit>
- Throws:
Exception
marshal
public String marshal(DegreeUnit v)
throws Exception
-
- Specified by:
marshal in class XmlAdapter<String,DegreeUnit>
- Throws:
Exception
Copyright © 2013. All rights reserved.