how to make a note with implementation in a UML class-diagram in visual paradigm

325 views Asked by At

I have been looking around for this for ages, but could not find any way to link a UML note to an operation of a class or to display the provided implementation in the specification of an operation. The idea is illustrated in the picture.

the goal I want to achieve

I tried to add the implementation to the operation, but I don't manage to make it appear in my diagram. I also tried making a note and then connecting it to the method, but this leads to unclear floating line-ends.

If anybody could let me know how this could be achieved with visual paradigm or let me know it is impossible, that would be nice.

Thanks in advance.

1

There are 1 answers

4
qwerty_so On BEST ANSWER

I have no idea how or whether this is possible with VP (I know for sure that you can't do it with Enterprise Architect which is pretty much UML2.x compliant). But you could hook the link near the position in the appropriate compartment (EA also has a feature to lock the connector at a certain position of an element).

Edit I have looked into Superstructures 2.5:

Comment [Class]

Description

A Comment is a textual annotation that can be attached to a set of Elements.

So actually what you want to do is not UML compliant. A comment can only be attached to an element. Attributes/operations are not UML elements.