Hello Scott,

If you go to Tools|Options, look under the Java tab and set the 'Type:' to Attribute 
you
will see a list of properties.     In here if you set the PropertyType to Simple and 
the
Read/Write to Read & Write this will ensure that all attributes created from this 
point on
have get and set
operations generated for them.   If you set the Read/Write property to be Read then 
only a
get function will be generated and if you set the Read/Write to be Write then only a 
set
function will be generated.

If you want to apply this to the attributes that already exist in the model then you 
can
either do so from the specification for each individual attribute, i.e. set the Type 
and
Read/Write properties in the attribute spec or run the attached script.   The attached
script will cause get AND set functions to be generated for all of the attributes in 
the
model (for any classes that you have selected in the model).   You can modify this to 
only
generate get functions or only generate set functions if thats what you want.

Vishu


"Davidson, Scott" wrote:

> I can't seem to find any mention where Rose generates accessors for class
> attributes when in the Java progamming language. Can someone please point me
> to how I set this or confirm (I can't believe it!!) that this is a C++ ONLY
> feature :(
>
> Thanks!,
> Scott Davidson
>
> ************************************************************************
> * Rose Forum is a public venue for ideas and discussions.
> * For technical support, visit http://www.rational.com/support
> *
> * Admin.Subscription Requests: [EMAIL PROTECTED]
> * Archive of messages: 
>http://www.rational.com/products/rose/usergroups/rose_forum.jtmpl
> * Other Requests: [EMAIL PROTECTED]
> *
> * To unsubscribe from the list, please send email
> *
> * To: [EMAIL PROTECTED]
> * Subject:<BLANK>
> * Body: unsubscribe rose_forum
> *
> *************************************************************************

--
---
Annamalai "Vishu" Viswanathan  --  [EMAIL PROTECTED]
Rose Technical Support Engineer
Rational WW Customer Service


Check out http://www.therationaledge.com/ for tips and news for Rose users

---


SetJavaAttGetSetNew.ebs

Reply via email to