You can modify the containerClass property for all relationships, or on a
case by case basis.

Global Change:
Select menu option Tools | Options
Select the Java tab on the Options dialog
Select Role in the Type drop down box
Change value of ContainerClass to "List" (without quotes)
Now, all relationships that have multiplicity that is unbounded will be
represented by a List instead of the default array.

Local Change:
Open specification for a particular relationship
Select either the JavaA or JavaB tab (depends which side of the relationship
your class is on)
Modify ContainerClass property, same as above.

-------------------------------------------------
Tony Picarello
Engineer
Science Applications International Corp.

Voice: 407-207-2791
Fax:    407-282-4530
Email: mailto:[EMAIL PROTECTED]


-----Original Message-----
From: Christophe Geraud [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 27, 2001 11:00 AM
To: Rose Forum
Subject: (ROSE) java aggregate



Hello,

I'm using Rose 2000 for a Java class model.

If the class A is an aggregation of B objects, Rose produce

class A {
    B b[];
}

It create an array of B's objects.
I would prefer to use List instead of array.
So I would like to have :
class A {
    List b;
}

Is-it possible to configure Rose for doing this ?

Thanks for help

Christophe Geraud

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