users@jaxb.java.net

Re: Need a schema representation of a multivalue attribute for JAXB

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Wed, 09 Jul 2003 16:09:40 -0700

Thank you for sharing your findings. I suppose you could define a
semantics in such a way that the empty attribute value / missing
attribute means NONE.

e.g.,
    <foo editPermissions="" />
    <foo />

This would work quite nicely with JAXB where you could check

    if( foo.getEditPermissions().isEmpty() )
        // no permission!
    else
        // do something else


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