File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes OO, Patterns, UML and Refactoring and the fly likes Accessing inherited attributes in TogetherJ Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "Accessing inherited attributes in TogetherJ" Watch "Accessing inherited attributes in TogetherJ" New topic

Accessing inherited attributes in TogetherJ

John Wooten

Joined: Mar 05, 1999
Posts: 4
I have located an excellent UML tool called TogetherJ. A limited version is available for free download (do search for latest location). The full version can export to Rational Rose and it surpasses RR in its smoothness, ease of use, and round-trip development. However, I haven't found a good way to represent relationships between classes where I want to use an inherited attribute as the relationship. i.e. Person inherits from Associate which inherits from BaseObject. BaseObject has an attribute BaseObject location. Location is another class and Address inherits from it. I want to show Person has Address and associate the Address Class with the location attribute which it inherited. The current version doesn't have this ( next version ). Any ideas on a way to show it?
John W.
Member WWISA

Member WWISA
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
I do not know of any tool that provides formal support for analogies (i.e. relationships between relations), which is what I think you are talking about here. The UML notation for this is a dotted line with an arrowhead going from the more specific relationship (in you example, the relationship between Person and Address) to the more general relationship (in your example between BaseObject and Location). Of course, in order to do this you cannot show location just as an attribute of BaseObject - you must make the relationship to Location explicit.
I agree. Here's the link:
subject: Accessing inherited attributes in TogetherJ
It's not a secret anymore!