org.broadleafcommerce.common.money.util
Class CurrencyAdapter

java.lang.Object
  extended by javax.xml.bind.annotation.adapters.XmlAdapter<String,Currency>
      extended by 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

Constructor Summary
CurrencyAdapter()
           
 
Method Summary
 String marshal(Currency currency)
           
 Currency unmarshal(String currencyString)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CurrencyAdapter

public CurrencyAdapter()
Method Detail

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.