Hi all,

I'm using Rose Professional J and I try to generate the Get and Set methods
with a default body for the attributes of my Java classes.

I have downloaded the script 'generate_gets_and_sets.ebs' from rose server
and I have adapted it to java language.
It creates the methods signature but not the body.

The interesting part of script is

        Set GetOperation = theClass.AddOperation(GetOperationName,
theAttribute.Type)
        GetOperation.ExportControl.Name = "PublicAccess"
        isOverriden = GetOperation.OverrideProperty("Java", "Inline",
"False")
        isOverriden = GetOperation.OverrideProperty("Java", "DefaultBody",
"return " + theAttribute.Name + ";")

Thanks for help

Joaquim Vieira
---------------------
Silverpeas
E-Mail : [EMAIL PROTECTED]
Tel : 04 76 18 54 90

************************************************************************
* 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
*
*************************************************************************

Reply via email to