This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes OO, Patterns, UML and Refactoring and the fly likes Pattern to hold list of objects attribute name, value and data type Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Reply Bookmark "Pattern to hold list of objects attribute name, value and data type" Watch "Pattern to hold list of objects attribute name, value and data type" New topic
Author

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

Mat Michel
Greenhorn

Joined: Mar 03, 2011
Posts: 2
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

Joined: Apr 16, 2008
Posts: 2187
Read documentation for Decorator design pattern (if you are unable to add a method directly to your JavaBean classes.)
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Pattern to hold list of objects attribute name, value and data type
 
Similar Threads
Question from HF second edition
JSTL fmt:formatNumber does not display currency
Weblogic Connection Pool Issue
XML Schema: Use of Import
operation parameters - uml question