users@jaxb.java.net

Re: Source code for binding compiler?

From: Ryan Shoemaker - JavaSoft East <Ryan.Shoemaker_at_Sun.COM>
Date: Tue, 30 Nov 2004 18:22:38 -0500

Perry, Steve wrote:
> Thanks, Ryan. Actually I did ask the question several weeks ago :->. The
> issue is how to customize the binding for an empty sequence with
> minOccurs=". I personally see having an empty, optional sequence as
> pretty much less than useless, but the schema was forced on us and we
> cannot modify it (although we had to because I couldn't figure out how
> to customize the binding in time to start coding).
>

Sorry about that - we've been pretty busy (as you know). I'll see if
someone on the team can respond to your previous thread in the next day
or so...

> Plus, I would like to have a deeper understanding of how the binding
> compiler works, and the source serves that purpose nicely (plus I can
> generate javadoc not elsewhere available, if javadoc comments exist,
> haven't looked at the code much yet).
>
> I have grabbed the weekly build source, extracted it, but am not finding
> LauncherBootstrap (the main class executed by xjc.bat). Am I missing
> something?
>

That batch file is used when JAXB is integrated in JWSDP, so you won't
find the source code for the bootstrap. The main class for xjc is:

com.sun.tools.xjc.Driver

All of the schema compiler code lives under the "xjc" directory.

Happy hunting...

--Ryan


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net