Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Pattern to hold list of objects attribute name, value and data type

 
Mat Michel
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am not sure what could be exact name for this type of pattern.

My problem is : We have set of java bean classes having various type of attributes and values, we need some kind of generic pattern using which we can
provide single method to xml or any other format to print java beans attribute name and value.

thanks,
Mat
 
Jimmy Clark
Ranch Hand
Posts: 2187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read documentation for Decorator design pattern (if you are unable to add a method directly to your JavaBean classes.)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic