users@jaxb.java.net

Referring to an adapter from XSD

From: Sean Landis <sean.landis_at_gmail.com>
Date: Thu, 15 Mar 2007 15:49:00 -0600

I have an existing adapter:

public class MoneyAdapter extends XmlAdapter<BigDecimal, Money> {

 @Override public BigDecimal marshal(Money money) throws Exception {
   return money.asBigDecimal();
 }

 @Override public Money unmarshal(BigDecimal bigDecimal) throws Exception {
   return new Money(bigDecimal);
 }
}


I want to write an XSD that uses this adapter. Is that possible?

Sean