dev@jaxb2-commons.java.net

Re-Post: Finer grained controll over the code model.

From: <Julio.A.Mistral_at_wellsfargo.com>
Date: Tue, 19 Dec 2006 13:20:15 -0600

Hi,

I'm new to XJC plugin development and so I'm unsure about what I've been
doing is the correct way to go. Basically, I've been adding the
following methods to sun.codemodel classes to have finer control over
the generated classes:

JPackage
1. public void add( JDefinedClass class ): Adds the provided class to
the package

JDefinedClass
2. public void setPackage( JPackage pack ): Sets the owner to the
provided package

3. public JMethod removeMethod(String name, JType[] params): Removes
the method from the classes method list and returns a reference of the
removed method, or null if the method doesn't exist.

First off, is there a way to do this with the existing API? If not, can
I petition to have these changes added to the API so I don't have to
patch these changes into every release after 2.0.3?

Thanks in advance,
-Julio