Skip to content

Commit 74d1823

Browse files
committed
Merge pull request #1 from fluxw42/add-delegation-pattern
Generate UML for delegation pattern
2 parents a49dbef + 32e7181 commit 74d1823

File tree

2 files changed

+97
-0
lines changed

2 files changed

+97
-0
lines changed

delegation/etc/delegation.png

22.3 KB
Loading

delegation/etc/delegation.ucls

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<class-diagram version="1.1.9" icons="true" automaticImage="PNG" always-add-relationships="false" generalizations="true"
3+
realizations="true" associations="true" dependencies="false" nesting-relationships="true" router="FAN">
4+
<interface id="1" language="java" name="com.iluwatar.delegation.simple.Printer" project="delegation"
5+
file="/delegation/src/main/java/com/iluwatar/delegation/simple/Printer.java" binary="false" corner="BOTTOM_RIGHT">
6+
<position height="-1" width="-1" x="362" y="84"/>
7+
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
8+
sort-features="false" accessors="true" visibility="true">
9+
<attributes public="true" package="true" protected="true" private="true" static="true"/>
10+
<operations public="true" package="true" protected="true" private="true" static="true"/>
11+
</display>
12+
</interface>
13+
<class id="2" language="java" name="com.iluwatar.delegation.simple.AbstractPrinterController" project="delegation"
14+
file="/delegation/src/main/java/com/iluwatar/delegation/simple/AbstractPrinterController.java" binary="false"
15+
corner="BOTTOM_RIGHT">
16+
<position height="97" width="191" x="41" y="37"/>
17+
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
18+
sort-features="false" accessors="true" visibility="true">
19+
<attributes public="true" package="true" protected="true" private="true" static="true"/>
20+
<operations public="true" package="true" protected="true" private="true" static="true"/>
21+
</display>
22+
</class>
23+
<class id="3" language="java" name="com.iluwatar.delegation.simple.PrinterController" project="delegation"
24+
file="/delegation/src/main/java/com/iluwatar/delegation/simple/PrinterController.java" binary="false"
25+
corner="BOTTOM_RIGHT">
26+
<position height="-1" width="-1" x="136" y="214"/>
27+
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
28+
sort-features="false" accessors="true" visibility="true">
29+
<attributes public="true" package="true" protected="true" private="true" static="true"/>
30+
<operations public="true" package="true" protected="true" private="true" static="true"/>
31+
</display>
32+
</class>
33+
<class id="4" language="java" name="com.iluwatar.delegation.simple.printers.HPPrinter" project="delegation"
34+
file="/delegation/src/main/java/com/iluwatar/delegation/simple/printers/HPPrinter.java" binary="false"
35+
corner="BOTTOM_RIGHT">
36+
<position height="-1" width="-1" x="187" y="333"/>
37+
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
38+
sort-features="false" accessors="true" visibility="true">
39+
<attributes public="true" package="true" protected="true" private="true" static="true"/>
40+
<operations public="true" package="true" protected="true" private="true" static="true"/>
41+
</display>
42+
</class>
43+
<class id="5" language="java" name="com.iluwatar.delegation.simple.printers.EpsonPrinter" project="delegation"
44+
file="/delegation/src/main/java/com/iluwatar/delegation/simple/printers/EpsonPrinter.java" binary="false"
45+
corner="BOTTOM_RIGHT">
46+
<position height="-1" width="-1" x="362" y="333"/>
47+
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
48+
sort-features="false" accessors="true" visibility="true">
49+
<attributes public="true" package="true" protected="true" private="true" static="true"/>
50+
<operations public="true" package="true" protected="true" private="true" static="true"/>
51+
</display>
52+
</class>
53+
<class id="6" language="java" name="com.iluwatar.delegation.simple.printers.CanonPrinter" project="delegation"
54+
file="/delegation/src/main/java/com/iluwatar/delegation/simple/printers/CanonPrinter.java" binary="false"
55+
corner="BOTTOM_RIGHT">
56+
<position height="-1" width="-1" x="537" y="333"/>
57+
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
58+
sort-features="false" accessors="true" visibility="true">
59+
<attributes public="true" package="true" protected="true" private="true" static="true"/>
60+
<operations public="true" package="true" protected="true" private="true" static="true"/>
61+
</display>
62+
</class>
63+
<generalization id="7">
64+
<end type="SOURCE" refId="3"/>
65+
<end type="TARGET" refId="2"/>
66+
</generalization>
67+
<realization id="8">
68+
<end type="SOURCE" refId="5"/>
69+
<end type="TARGET" refId="1"/>
70+
</realization>
71+
<realization id="9">
72+
<end type="SOURCE" refId="4"/>
73+
<end type="TARGET" refId="1"/>
74+
</realization>
75+
<association id="10">
76+
<end type="SOURCE" refId="2" navigable="false">
77+
<attribute id="11" name="printer"/>
78+
<multiplicity id="12" minimum="0" maximum="1"/>
79+
</end>
80+
<end type="TARGET" refId="1" navigable="true"/>
81+
<display labels="true" multiplicity="true"/>
82+
</association>
83+
<realization id="13">
84+
<end type="SOURCE" refId="6"/>
85+
<end type="TARGET" refId="1"/>
86+
</realization>
87+
<realization id="14">
88+
<end type="SOURCE" refId="2"/>
89+
<end type="TARGET" refId="1"/>
90+
</realization>
91+
<classifier-display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
92+
sort-features="false" accessors="true" visibility="true">
93+
<attributes public="true" package="true" protected="true" private="true" static="true"/>
94+
<operations public="true" package="true" protected="true" private="true" static="true"/>
95+
</classifier-display>
96+
<association-display labels="true" multiplicity="true"/>
97+
</class-diagram>

0 commit comments

Comments
 (0)