users@jaxb.java.net

Re: toString() methods on generated classes

From: Johnny Tolliver <jxt_at_ornl.gov>
Date: Wed, 13 Sep 2006 13:29:14 -0400 (EDT)

On Wed, 13 Sep 2006, Aleksei Valikov wrote:

> Should this be recursive?
> I.e. if bean contains other beans, should properties of the sub-bean be
> printed as well?

Yes, absolutely, else it's not really useful. If printing of the first list
can be done, via introspection or whatever, then doing the recursion should
be easy -- just call the sub-bean's toString().

Johnny S. Tolliver
Oak Ridge National Laboratory
tolliverjs_at_ornl.gov, 865-574-1305