Hello,

I think Vincet wants String-objects as attributes within a class and not as
associations from a class. Therefore here is an older posting resloving this
requirement.

...

The answer is partly about the philosophy of attributes :-)

The UML and many other design books suggest an attribute is something
that has no intrinsic behaviour - in other words, it has none of its
own operations, it can only be operated on.

This means that primitives, fundamental types, POD (Plain Old Data)
types like struct and union can all be attributes, but classes (like
String) cannot or should not. In this case, structural features
involving items with intrinsic behaviour should be modelled as
relationships to classes instead.

Having said that, there are numerous times when a class is used for
POD, or is used so often that it becomes convenient to make it into a
fundamental type. The java.lang classes often fall into this case
(String, Integer, Double, etc.). To tell Rose to treat these as
fundamental types, you have to let the add-in know about them. Each
addin can have a registry setting for this - here is the one for Java:

HKEY_LOCAL_MACHINE\SOFTWARE\Rational
Software\Rose\AddIns\Java\FundamentalTypes

I currently have mine set to:

boolean; char; byte; short; int; long; float; double; Boolean;
Character; Byte; Short; Integer; Long; Float; Double; String;

This lets me treat all Class-like fundamental types as attributes.

...

Regards,
Oliver Schoenhaar

-----Ursprüngliche Nachricht-----
Von: Oppermann, Klaus [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 2. März 2001 14:00
An: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
Betreff: AW: (ROSE) reverse engineering with java



During reverse engineering everything were a dependency can be exist on must
be reachable by the system classpath. This is true for the simple
java.lang.String and for all other classes regardless if they exist inside
the rose model.
e.g. classpath = ...;jdk_install_folder\jre\lib\rt.jar;...
kop

-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]Im Auftrag von
[EMAIL PROTECTED]
Gesendet am: Freitag, 2. März 2001 13:43
An: [EMAIL PROTECTED]
Betreff: (ROSE) reverse engineering with java


Hello,

I'm using Rose 2001 with Java. Iwant to make a reverse engineering of java
code.

The problem is that I have attributes of type String. 

When I make my reverse, the attributes of type String don't appear in my
class diagramm. But there are association create with String Class.

How can I resolve this problem ?

Thank you
_________________________________________

 Vincent IBANEZ
 THALES COMMUNICATION
 Service Genie Logiciel 
 *   01 46 13 31 29 
 *  [EMAIL PROTECTED]
_________________________________________



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