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

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

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

Constructor Detail

DegreeUnitAdapter

public DegreeUnitAdapter()
Method Detail

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.