dcsimg
July 23, 2018
Hot Topics:

User Code: BeanBuilder 1.1

  • March 28, 2002
  • By Rakesh Nagar
  • Send Email »
  • More Articles »

This is a utility for all those who hate coding JavaBeans -- especially the javadoc for get and set methods. BeanBuilder enables you to generate JavaBean source code by declaring class attributes in a descriptor file.

Silent features:

  • Primitive javadoc for get/set methods.
  • toString method to print the state of member variables.
  • Resolves attribute type from fully qualified class name to class name and add them in class import.
  • Enables user to specify initial values for member variables.

Usage: java BeanBuilder <Descriptor File> <Target Directory> [makeSer] makeSer flag makes the bean Serializable.

Example: java BeanBuilder NewBean.des .\ makeSer

Download

About the Author

Please send your comments or suggestions to Rakesh Nagar, a software engineer with L&T Infotech Ltd.

Java users are encouraged to submit samples of useful code for publication in the pages of Gamelan. Send your files and comments to editor@developer.com for consideration. Thank you.






Comment and Contribute

 


(Maximum characters: 1200). You have characters left.

 

 


Enterprise Development Update

Don't miss an article. Subscribe to our newsletter below.

By submitting your information, you agree that developer.com may send you developer offers via email, phone and text message, as well as email offers about other products and services that developer believes may be of interest to you. developer will process your information in accordance with the Quinstreet Privacy Policy.

Sitemap

Thanks for your registration, follow us on our social networks to keep up-to-date