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

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

public class DistanceUnitAdapter
extends XmlAdapter<String,DistanceUnit>

Units for distance adapter, mi for miles or km for kilometers.

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

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

Constructor Detail

DistanceUnitAdapter

public DistanceUnitAdapter()
Method Detail

unmarshal

public DistanceUnit unmarshal(String v)
                       throws Exception

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

marshal

public String marshal(DistanceUnit v)
               throws Exception

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


Copyright © 2013. All rights reserved.