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