Hello Jimmy, In this area you can model and forward engineer some constructs that would be reverse engineered in a different way.
If class A contains in code a Vector called myVector, which is populated with objects of class B, upon reverse engineering you will not obtain a relationship from class A to class B. You will get an attribute of type Vector in class A. You could also get an association from class A to the class Vector, depending on the settings of the Fundamental Types in Rose. You would not obtain a relationship from A to B because the part of Java code where you fill the Vector with objects of type B is inside some method body, and Rose does not reverse engineer method bodies (Rose can infer the relationship from A to B in C++, where an instantiated template Vector<B> is used for the same kind of purpose). On the other hand, when modeling, you can construct an association from A to B and specify a property called ContainerClass that will generate the association role as a Vector (if the multiplicity of the role is greater than 1). For more details on how to forward engineer these constructs, please see the Solutions below. http://solutions.rational.com/solutions/display.jsp?solutionId=146238182 http://solutions.rational.com/solutions/display.jsp?solutionId=115043601 http://solutions.rational.com/solutions/display.jsp?solutionId=26016 Regards, Lara ========================================================================== Solutions knowledge base http://solutions.rational.com ========================================================================== Lara Ziosi Technical Support Engineer Rational WW Customer Service Rational Software Phone: +31 (0)20 4546 200 Fax: +31 (0)20 4546 201 Beechavenue 30 -- 1119 PV Schiphol-Rijk The Netherlands Email: [EMAIL PROTECTED] http://www.rational.com/support ========================================================================== -----Original Message----- From: Jimmy Szychowski [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 06, 2003 10:49 AM To: [EMAIL PROTECTED] Subject: (ROSE) reverse engineering java collections Hello, I would like to reverse engineering java class, but I'm having troubles with object collections. What do I have to do for rose to understand : 1) my object is a collection and has to be transformed in a relation between 2 objects. 2) which Object is going to be in the collection. I can't find this... Thank's for your help Jimmy Szychowski ************************************************************************ * Rose Forum is a public venue for ideas and discussions. * For technical support, visit http://www.rational.com/support * Only plain-text messages are supported. * HTML or Rich-Text messages may be rejected. * * Post or Reply to: [EMAIL PROTECTED] * Subscription Requests: [EMAIL PROTECTED] * Archive of messages: * http://www.rational.com/support/usergroups/rose/rose_forum.jsp * 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 * Only plain-text messages are supported. * HTML or Rich-Text messages may be rejected. * * Post or Reply to: [EMAIL PROTECTED] * Subscription Requests: [EMAIL PROTECTED] * Archive of messages: * http://www.rational.com/support/usergroups/rose/rose_forum.jsp * Other Requests: [EMAIL PROTECTED] * * To unsubscribe from the list, please send email * To: [EMAIL PROTECTED] * Subject: <BLANK> * Body: unsubscribe rose_forum *************************************************************************
