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

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

public class PressureUnitAdapter
extends XmlAdapter<String,PressureUnit>

Units of barometric pressure adapter, in for pounds per square inch or mb for millibars.

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

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

Constructor Detail

PressureUnitAdapter

public PressureUnitAdapter()
Method Detail

unmarshal

public PressureUnit unmarshal(String v)
                       throws Exception

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

marshal

public String marshal(PressureUnit v)
               throws Exception

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


Copyright © 2013. All rights reserved.