Wiki source code of yUML Macro

Last modified by Mireille Blay-Fornarino on 2023/04/25 09:19

Show last authors
1 Draws UML diagrams using [[yUML>>http://www.yuml.me/]].
2
3 = Examples =
4
5 == Class Diagram ==
6
7 {{code language="none"}}
8 {{yuml}}
9 [Customer]+1->*[Order]
10 [Order]++1-items >*[LineItem]
11 [Order]-0..1>[PaymentMethod]
12 {{/yuml}}
13 {{/code}}
14
15 Generates:
16
17 {{yuml}}
18 [Customer]+1->*[Order]
19 [Order]++1-items >*[LineItem]
20 [Order]-0..1>[PaymentMethod]
21 {{/yuml}}
22
23 == Activity Diagram ==
24
25 {{code language="none"}}
26 {{yuml type="activity"}}
27 (start)-><d1>logged in->(Show Dashboard)->|a|->(end)
28 <d1>not logged in->(Show Login)->|a|
29 {{/yuml}}
30 {{/code}}
31
32 Generates:
33
34 {{yuml type="activity"}}
35 (start)-><d1>logged in->(Show Dashboard)->|a|->(end)
36 <d1>not logged in->(Show Login)->|a|
37 {{/yuml}}
38
39 == Use Case Diagram ==
40
41 {{code language="none"}}
42 {{yuml type="usecase"}}
43 [User]-(Login)
44 [User]-(Logout)
45 (Login)<(Reminder)
46 (Login)>(Captcha)
47 {{/yuml}}
48 {{/code}}
49
50 Generates:
51
52 {{yuml type="usecase"}}
53 [User]-(Login)
54 [User]-(Logout)
55 (Login)<(Reminder)
56 (Login)>(Captcha)
57 {{/yuml}}
58
59
60 = Parameters =
61
62 {{velocity}}
63 #foreach ($param in $doc.getObjects("XWiki.WikiMacroParameterClass"))
64 ; $param.getProperty("name").value
65 : $param.getProperty("description").value
66 #end
67 {{/velocity}}