users@jaxb.java.net

Re: enumeration with empty string as value

From: Ed Mooney <Ed.Mooney_at_sun.com>
Date: Tue, 03 Dec 2002 20:35:40 -0500

Hi Lisa,

I see ... thanks for the insight.

It seems an unimplemented feature would indeed address your problem, but
a colleague suggests it's typesafeEnumMember. That will be implemented
for FCS (Q1 2003).

Regards,
--
Ed Mooney         |Sun Microsystems, Inc.|Time flies like
Java Web Services |UBUR02-201            |an arrow, but
Ed.Mooney_at_Sun.COM |1 Network Drive       |fruit flies like
781-442-0459      |Burlington, MA  01803 |a banana. Groucho
Lisa Bahler wrote:
> Ed,
>
> This does seem weird, does it not, to use an empty string as an
> enumeration?  We wanted to use nillable in our schemas for our string
> elements, but we found that Turbo XML did not work as we expected,
> although XML Spy worked fine.  Wanting to produce schemas that worked
> with the largest number of tools out there, we decided to implement
> nillable by using a union, as so, since we are not concerned with
> defaults:
[ ... ]