Print all values in a value object

Posted by SKDev on Programmers See other posts from Programmers or by SKDev
Published on 2012-11-13T23:05:23Z Indexed on 2012/11/13 23:21 UTC
Read the original article Hit count: 184

Filed under:
|

I have to debug an issue which requires me to print all the values of a Value Object that is returned by a web service call. The Value object is a complex object in the sense, it has another object as its member which in turn has another object. Printing all the values by using get methods is cumbersome. So was wondering if there is a way to break down the value object by any way to get to a primitive level like String or int or Date and print them all using one API? I had a look at the below question but my prob is that i don't have access to the source code of the value object. The sources are in obfuscated jar.

http://stackoverflow.com/questions/2413001/how-to-print-values-of-an-object-in-java

© Programmers or respective owner

Related posts about java

Related posts about debugging