users@jaxb.java.net

Re: XJC and the visitor pattern

From: Wolfgang Laun <wolfgang.laun_at_gmail.com>
Date: Mon, 26 Oct 2009 18:47:11 +0100

On Mon, Oct 26, 2009 at 5:58 PM, Christian Schulte <cs_at_schulte.it> wrote:

> Hello,
>
> I would like XJC to add visitor support to schema derived classes.
> Looking at jaxb2-commons and hyperjaxb3 I could not find a plugin
> supporting this. Does such a plugin exist ?
>
>
Not specifically.

There is one for general purpose code injection. Adding the "accept" to any
number of complexType definitions in the schema is probably abhorrent,
depending on the nature of your schema.

A simple XSLT might take care of inserting the required annotation in all
required places.

-W



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