users@jaxb.java.net

Re: How to add size constraint to a collection

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Mon, 14 May 2007 17:24:56 -0700

Nicolas Garcin wrote:
> Is there a way to add some constraint on the number of items in a java
> collection so that the generated xsd has in the corresponding sequence
> the min/maxOccurs set accordingly?

Not right now.

There has been some discussion of coming up with a set of facets as a
first step, but nobody has done it AFAIK.

Looking for a volunteer to work on it.

-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com