add possibility to show "not navigable"

+1 vote
asked Dec 1, 2015 in Wanted features by eicke (180 points)
In newer UML 2 it is possible to specify for a relation in a class diagram, that one direction in not navigable by crossing one end.

I suggest something like:  Bob x-> Lisa

See http://www.omg.org/spec/UML/2.4.1/Infrastructure/PDF Figure 11.8 p.p. 117

2 Answers

+2 votes
answered Sep 29, 2016 by plantuml (294,960 points)
selected Dec 8, 2016 by eicke
 
Best answer

In version 8048, we have implemented the following syntax:

@startuml
class Bob
class Lisa
Bob x--> Lisa
@enduml

This has not been widely tested : feedback welcome!

commented Dec 9, 2016 by eicke (180 points)
Works great.  Only the main line moves when you change from "x-->" to "x--".
commented Dec 10, 2016 by plantuml (294,960 points)
Sorry, not sure to understand your remark.
Did you find an issue?
For us http://www.plantuml.com/plantuml/uml/SoWkIImgAStDuKhEIImkLd3AJuAoV3AB4xc0N8KANLq8no4rBmMe4W00 looks fine, doesn't it ?
commented Dec 12, 2016 by plantuml (294,960 points)
Ok, got it. It was tiny...
This should be fixed in last beta https://dl.dropboxusercontent.com/u/13064071/plantuml.jar
Thanks!
0 votes
answered Sep 29, 2016 by anonymous
I would love such a possibility too. The notation you suggest is similar to the one I tried befor I realized it is not (yet) implemented.

 

As a workaround I use:

Bob "x" -->  Lisa

or with multiplicity

Bob "x 0..*" --> "1"  Lisa
...