users@jaxb.java.net

Re: Changing access modifiers of generated classes

From: Wolfgang Laun <wolfgang.laun_at_gmail.com>
Date: Thu, 26 Nov 2009 09:41:37 +0100

On Wed, Nov 25, 2009 at 11:11 PM, jurgen quipere <jquipere_at_hotmail.com>wrote:

> Hi,
>
> Is it possible to change the access modifier of a generated class from
> public to none? Can't find out how to do this in a plugin.
>

Perhaps a simple sed script would be adequate, e.g., for modifying just the
setters:

   sed -e '/ public void set/s/public //' SomeClass.Java

Plus a little shell glue to handle file copying.

-W