de.intarsys.tools.jaxb
Class IntegerAdapter
java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<String,Integer>
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.
IntegerAdapter
public IntegerAdapter()
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 © 2012 intarsys consulting GmbH. All Rights Reserved.