You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Ch...@sybase.com on 2008/05/02 18:28:13 UTC

Overriding toString() on generated objects

I'm using the wsdl2java script to generate my client side objects. I would 
like to be able to override the default toString() method in these objects 
without having to touch each object by hand. Is there a way that I can do 
this by perhaps specifying something in my customer JAXB binding files for 
each service?

Thanks for the help...

Chris 

Re: Overriding toString() on generated objects

Posted by Daniel Kulp <dk...@apache.org>.
Chris,

We have a "ts" (for toString) plugin to xjc that can provide some of 
that.  I think you just need to pass -xjc-Xts to wsdl2java to have it 
work for you.

Dan


Christopher.Mathrusse@sybase.com wrote:
> I'm using the wsdl2java script to generate my client side objects. I would 
> like to be able to override the default toString() method in these objects 
> without having to touch each object by hand. Is there a way that I can do 
> this by perhaps specifying something in my customer JAXB binding files for 
> each service?
> 
> Thanks for the help...
> 
> Chris 

-- 
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog