Can the mapping of Java fields to UML attributes and/or associations be made more flexible?

Suggested improvements and new features.

Moderator: Moderators

Can the mapping of Java fields to UML attributes and/or associations be made more flexible?

Postby Jim Mayer » Thu Feb 21, 2002 1:40 pm

I've just spent a few days bringing my project over to 5.0 SP1 and am really
enjoying your product. In doing the porting, I've noticed a few things that
I think would improve your product (to keep things simple, I'll stick to one
suggestion per post).

Here's my first:

When reverse engineering Java, I seem to have two choices for how to
interpret fields in Java classes:

(1) All fields are mapped to UML attributes.
(2) All fields are mapped to UML associations.

I would like to be able to provide exception lists for both options. For
example, I would like to be able to say:

All fields should be interpreted as UML associations EXCEPT for
java.lang.String.

or

All fields should be mapped to UML attributes EXCEPT those who's
types match "com.mycompany.myproject.*"

or even

All fields should be mapped to UML associations EXCEPT classes who's
names match "*.Test*".

More formally, I'd suggest the following:

(1) Allow matching against regular expressions as well as types.
(2) Always match against the fully qualified class name (e.g.,
"java.lang.String").
(3) Make the lists persistent. I'm not sure whether they should be stored
with the project or the reverse engineering set.

Thank you!

-- Jim Mayer
Xerox Corporation


Jim Mayer
 
Posts Rating:

Re: Can the mapping of Java fields to UML attributes and/or associations be made more flexible?

Postby Andrius Strazdauskas » Sun Feb 24, 2002 10:05 am

Jim,

thanks for suggestion.
It's is really good and worth implementing.

Hopefully it will be added into our autumn release.

Regards,
--
Andrius Strazdauskas
Product Research and Development Manager
No Magic Lithuanian Development Center
P.O. box 2166, LT-3000, Kaunas
Phone: +370 7 425795 Fax: +370 7 320670
E-mail: andriuss
WWW: http://www.nomagic.com


Andrius Strazdauskas
 
Posts Rating:


Return to Suggestions

Who is online

Users browsing this forum: No registered users and 0 guests