wood burning stoves 2.0*
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
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.)
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Pattern to hold list of objects attribute name, value and data type
 
Similar Threads
Weblogic Connection Pool Issue
Question from HF second edition
JSTL fmt:formatNumber does not display currency
operation parameters - uml question
XML Schema: Use of Import