File tree Expand file tree Collapse file tree 5 files changed +75
-0
lines changed Expand file tree Collapse file tree 5 files changed +75
-0
lines changed Original file line number Diff line number Diff line change @@ -8,3 +8,8 @@ To translate one interface for a class into a compatible interface. An adapter a
8
8
9
9
* DB Client libraries adapter
10
10
* using multiple different webservices and adapters normalize data so that the outcome is the same for all
11
+
12
+ ## UML Diagram
13
+
14
+ <img src =" uml.svg " alt =" Adapter UML Diagram " >
15
+ ![ Alt Adapter UML Diagram] ( uml.svg )
Original file line number Diff line number Diff line change
1
+ @startuml
2
+ interface PaperBookInterface {
3
+ +turnPage()
4
+ +open()
5
+ }
6
+
7
+ interface EBookInterface {
8
+ +pressNext()
9
+ +pressStart()
10
+ }
11
+
12
+ class Book {
13
+ +open()
14
+ +turnPage()
15
+ }
16
+
17
+ class Kindle {
18
+ +pressNext()
19
+ +pressStart()
20
+ }
21
+
22
+ class EBookAdapter {
23
+ #eBook : EBookInterface
24
+ +__construct(ebook : EBookInterface)
25
+ +open()
26
+ +turnPage()
27
+ }
28
+
29
+ PaperBookInterface <|.. Book
30
+ PaperBookInterface <|.. EBookAdapter
31
+ EBookInterface <|.. Kindle
32
+ EBookAdapter o-- EBookInterface
33
+ @enduml
You can’t perform that action at this time.
0 commit comments