How to draw the lollipop socket symbol in a class diagram - (consumes)?

+1 vote
asked Jul 29, 2014 in To be sorted by alberto (140 points)

I've found how to draw lollipops in class diagrams: I've also found that the lollipop support for component diagrams is pretty good: . But I have tried to define a "consumes" relationship in the classdiagram, and I only get syntax errors.

This is what I want to do:

lollipop socket

I have tried many parenthesis-dashes combinations to no avail. Is this possible? (I'm using plantuml v.7999)

1 Answer

+1 vote
answered Jul 29, 2014 by plantuml (257,900 points)
Best answer

No this is not possible yet.

But somehow we are working on improving lollipops support in PlantUML, so thanks for your request, we will integrate this in some future (but not before september 2014, sorry about that).

If you have suggestions about the syntax you would expect, feel free to post it here.

commented Mar 19, 2017 by anonymous

Somehow this doesnt work for my uml.. Check this out:

Could you please suggest why it is giving that weird error - its not recognising this notation :- ")--"
commented Mar 20, 2017 by plantuml (257,900 points)
This has been implemented in last beta:
Tel us if it's not working for you.
commented Mar 22, 2017 by plantuml (257,900 points)
With last beta
We have added the "circle" keyword.

So you can have now:
left to right direction
class P
class C1
class C2
interface A1
circle A2
C1 ..> A1
C2 --( A2
A1 <|.. B1
A1 <|.. B2
B1 --|> P
B2 --|> P
A2 -- B2
commented Oct 15, 2019 by rd27 (460 points)
Just wondering, when joining component with its interface how is "Provider -() Interface" different from just "Provider - Interface"?