users@jaxb.java.net

Re: binding complexType element defintions to Fields

From: Mark Hansen <mark_at_javector.com>
Date: Fri, 06 Jan 2006 14:08:02 -0500

I assume this mapping to a Field would be specified with a binding
language extension as described in Section 7.1.1 of the JAXB specification?

Kohsuke Kawaguchi wrote:

> mark_at_javector.com wrote:
>
>> I know its possible to map Java fields to element definitions when
>> generating
>> schema from Java. However, is there a way to use the binding
>> language to do
>> the reverse - i.e., map an element definition to a JAXB generated Field
>> (instead of a bean property with getter/setter methods)?
>
>
> Unfortunately, no.
>
> You are welcome to modify our compiler to do that, though :-)
> You can modify field renderer a bit and you'll be done.
>
> If you are interested in doing so, we can talk more about details.
>