aspose file tools*
The moose likes Java in General and the fly likes Populate Complex Java Object using Reflection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Populate Complex Java Object using Reflection" Watch "Populate Complex Java Object using Reflection" New topic
Author

Populate Complex Java Object using Reflection

sam kulkarni
Greenhorn

Joined: Mar 18, 2011
Posts: 12
Hi,

I need to populate a complex object using reflection.

e.g.

I need to populate Employee Class fields including Address fields.
What approach should I use? Is there any API available? cause it can be a multilevel hierarchy of POJO's.


Thanks in advance
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14270
    
  21

I think you can do things like that with Apache JXPath.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
sam kulkarni
Greenhorn

Joined: Mar 18, 2011
Posts: 12
It helped me!!!
Thanks a ton
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Populate Complex Java Object using Reflection