Add custom label for bracket syntax

0 votes
asked May 6, 2016 in Wanted features by anonymous
Hello,

First thanks for your work !

I would like to know if it is possible to add custom label with the bracket syntax in Deployment diagram.

I know that this type of diagram seems to be under developpment, but I would like to know if it is possible to handle this syntax :

For Class diagram :

***

class foo as "bar"
class bar as "foo" {
 String data
}

***

This syntax works fine, but not for Deployment diagram, for artifact, node, storage, etc :

***

node node_foo as "foo"
node node_bar as "node_foo" {
 artifact node_bar_ar1 as "ar1"
}

***

The first line is well parsed, but not the second one, resulting in syntax error.

 

Thanks!

1 Answer

0 votes
answered May 8, 2016 by plantuml (131,770 points)

Thanks for the suggestion...

In last beta https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

You can use [ and ] for using some custom label.

For example, you can have:

@startuml
node bar {
 artifact foo1 [
 foo
 foo2
 ]
 node node2 [
 this
 is
 a
 node
 ]
}
@enduml


Is this what you are looking for ?

This has not been highly tested, so feed back welcome!

...