org.broadleafcommerce.common.money.util
Class CurrencyAdapter
java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<String,Currency>
org.broadleafcommerce.common.money.util.CurrencyAdapter
public class CurrencyAdapter
- extends XmlAdapter<String,Currency>
Unfortunately, JAXB doesn't know how to deal with java.util.Currency because it doesn't have a
default constructor.
Source via: http://weblogs.java.net/blog/kohsuke/archive/2005/09/using_jaxb_20s.html
- Author:
- phillipverheyden
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CurrencyAdapter
public CurrencyAdapter()
marshal
public String marshal(Currency currency)
throws Exception
- Specified by:
marshal in class XmlAdapter<String,Currency>
- Throws:
Exception
unmarshal
public Currency unmarshal(String currencyString)
throws Exception
- Specified by:
unmarshal in class XmlAdapter<String,Currency>
- Throws:
Exception
Copyright © 2013. All Rights Reserved.