users@jaxb.java.net

Re: Better xs:duration support?

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Tue, 15 Jul 2003 17:22:44 -0700

Gary Gregory <ggregory_at_seagullsw.com> wrote:
> Hello,
>
> Are there any plans to support unmarshalling of xs:duration to something
> more interesting that a String? To a long representing seconds for example,
> since seconds seems to be the smallest level of granularity for that type
> ("PT0H0M1S" = 1 second)?
>
> Is there a doo-dad in JAXB buried somewhere that does this?

There's a plan. But there's nothing in the current release. Any
contribution of the conversion code is welcome, though.

If you have any requirements on the duration support (e.g., how does
your program manipulate durations?), please let us know.



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