intarsys runtime library

de.intarsys.tools.jaxb
Class IntegerAdapter

java.lang.Object
  extended by javax.xml.bind.annotation.adapters.XmlAdapter<String,Integer>
      extended by de.intarsys.tools.jaxb.IntegerAdapter

public class IntegerAdapter
extends XmlAdapter<String,Integer>

Convert a string to an integer, supporting decimal, hex, octal and binary formats.


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

intarsys runtime library

Copyright © 2012 intarsys consulting GmbH. All Rights Reserved.