Steven Elliott Setter/Getter accessor creation for Java
Oct 24, 2008; 05:06
Steven Elliott
Setter/Getter accessor creation for Java
I¹m not sure if this has been discussed/posted but a search at the current groups forum returned no result and I¹m not sure how to access/search the previous maillist or even if it is possible.
If you are a Java programmer with a need to create JavaBeans this may speed development slightly. The following is a means to rapidly create setter/getter accessor methods using Find/Replace (much faster/more integrated than using Unix scripts etc.).
1) First create your class structure and properties
public void setProp1( String T ) { this.prop1 = T; } public String getProp1() { return prop1; }; public void setProp2( Integer T ) { this.prop2 = T; } public Integer getProp2() { return prop2; }; public void setProp3( boolean T ) { this.prop3 = T; } public boolean getProp3() { return prop3; };
If you have Beans with more than a few properties this can save you real time. You can tweak and save it for just setters or for more advanced accessor creation (e.g. change listeners).
The output is formatted for my coding style and you may want to tweak the output.
have fun!
Steven
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "BBEdit Talk" group. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en If you have a specific feature request or would like to report a suspected (or confirmed) problem with the software, please email to "support@barebones.com" rather than posting to the group. -~----------~----~----~----~------~----~------~--~-
Search
Lasso Programming
This site manages and broadcasts several email lists pertaining to Lasso Programming and technologies related and used by Lasso developers. Sign up today!