users@jaxb.java.net

Re: jxb:javaType with int

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Wed, 07 May 2003 07:33:20 -0700

There was a change (or clarification) in the specification that led to
this change in the RI.

> Shouldn't those only be required for non-primitive types?

As a matter of fact, no. I liked the way it was before, but anyhow, the
way it's done today is by design. There's little technical detail behind
it about the mismatch between JDK and XML Schema datatypes, which made
us think that this is better.

You can simply specify the built-in converters like:

    <jaxb:javaType name="int"
        printMethod="javax.xml.bind.DatatypeConverter.printInt"
        parseMethod="javax.xml.bind.DatatypeConverter.parseInt"

regards,
--
Kohsuke KAWAGUCHI                  408-276-7063 (x17063)
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com