constraint to association

+1 vote
asked Jul 29, 2015 in Wanted features by anonymous

 Hello I would like to know if it is possible to express constrins between association

,-----.       ,---.
|Dummy|<>---> |Foo|
|-----|   |   |   |
|     |   |   |   |
|     |  XOR  |   |
|     |   |   |   |
|     |   |   |---|
|-----|<*>--> |---|
`-----'       `---'

Dummy could have one Composition with Foo or or one Agregation with Foo but not both at the same time

 

 

2 Answers

0 votes
answered Jul 30, 2015 by plantuml (298,400 points)

Hello,

You cannot do this right now.
This is quite difficult to implement. We add this to the backlog list, but do not expect a solution on short term.

As workaround, you can have:

class Dummy
class Foo
Dummy *--> Foo : -XOR-
Dummy o--> Foo




or

class Dummy
class Foo
Dummy *--> Foo
note right on link
XOR
end note
Dummy o--> Foo



Hope this helps!

commented Jul 30, 2015 by anonymous
Hello,
Thank for the prompt answer.
I think the first one could be enough by now

And also just to let you know that I really like plantUML.
0 votes
answered Jan 15, 2018 by anonymous
Is there any news on this topic? I would need that feature as well.
...