users@jaxb.java.net

RE: Re: XSComplexType

From: <HeruMartinus.Salim_at_infineon.com>
Date: Wed, 15 Nov 2006 12:47:20 +0100

How to do this?
I mean, should I put them inside the run method of the plugin?
When this FieldRenderer will be called?
Any sample on the net about this?

Regards,
Heru

-----Original Message-----
From: Aleksei Valikov [mailto:valikov_at_gmx.net]
Sent: Wednesday, November 15, 2006 12:19 PM
To: users_at_jaxb.dev.java.net
Subject: Re: XSComplexType

Hi.

> By the way, can we change the property of class Jmethod? For example
> change the mods, the return value, etc.

No, code model is intended to be read-only. Well theoretically you can
hack JMethod and change private field per reflection, but I'd rather not
recommend this approach.

If you want to override how JAXB generates methods, you can set your own
FieldRendererFactory in options via plugin.

But please be aware that this can be done only once (two plugins can't
do the same).

Bye.
/lexi


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net