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

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

public class IntegerAdapter
extends XmlAdapter<String,Integer>

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

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

Constructor Detail

IntegerAdapter

public IntegerAdapter()
Method Detail

marshal

public String marshal(Integer v)
               throws Exception

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

unmarshal

public Integer unmarshal(String v)
                  throws Exception

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


Copyright © 2013. All rights reserved.