users@jaxb.java.net

Re: sequence bound with a get but no set?

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Tue, 24 Jun 2003 13:06:39 -0700

"Corbett J. Klempay" <Corbett.Klempay_at_trilogy.com> wrote:
> Hello everyone...I'm a newbie (as my question may soon reveal?).
>
> I downloaded 1.0.1 and generated a set of bindings for an XSD. The part
> that is confusing me: in my schema, I have an element called context
> hanging right off the root, minOccurs=1, maxOccurs=unbounded. In the
> generated wrapper for the root element, I have a getContext() method that
> returns a List (as I'd expect)....but no set method at all. The two
> attributes on this root element both have getters and setters, as I'd
> expect...it's just this pesky contained sequence that is the problem.

If you look at the javadoc generated with the get method, you'll see why
you don't need the set method.

Let us know if the javadoc could be improved.

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