users@jaxb.java.net

Re: JAXBPlugin: Is it possible to move a class into another package?

From: Aleksei Valikov <valikov_at_gmx.net>
Date: Fri, 6 Mar 2009 13:03:17 +0100

Hi.

> The business task is to clean up the root package from
> all abstract (and for an user unnecessary) classes to
> provide a clean API.

(Offtopic) To be honest, I don't think it's a good idea. I don't see
any reason to consider generated abstract classes "dirty" while other
generated classes as "clean".

> I can't change the schema and I don't won't to write
> customizations in an external binding file...

I've checked the code once again. I think your best option would be to
iterate over CClassInfos in postProcessModel and use
CClassInfo.setUserSpecifiedImplClass(...) to set the desired name of
the target class. This may be in a different package.

However I'm not 100% sure that generated classes will work.

Bye.
/lexi