Skip to content

Commit 6026eed

Browse files
committed
UML generation: Mark the urm-maven-plugin execution to be ignored in Eclipse and recreate all .puml files
1 parent b030cd4 commit 6026eed

File tree

78 files changed

+1568
-1501
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+1568
-1501
lines changed

abstract-document/etc/abstract-document.urm.puml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,30 @@ package com.iluwatar.abstractdocument.domain {
33
class Part {
44
+ Part(properties : Map<String, Object>)
55
}
6-
class Car {
7-
+ Car(properties : Map<String, Object>)
8-
}
9-
interface HasModel {
6+
interface HasPrice {
107
+ PROPERTY : String {static}
11-
+ getModel() : Optional<String>
8+
+ getPrice() : Optional<Number>
129
}
1310
interface HasParts {
1411
+ PROPERTY : String {static}
1512
+ getParts() : Stream<Part>
1613
}
14+
class Car {
15+
+ Car(properties : Map<String, Object>)
16+
}
1717
interface HasType {
1818
+ PROPERTY : String {static}
1919
+ getType() : Optional<String>
2020
}
21-
interface HasPrice {
21+
interface HasModel {
2222
+ PROPERTY : String {static}
23-
+ getPrice() : Optional<Number>
23+
+ getModel() : Optional<String>
2424
}
2525
}
2626
package com.iluwatar.abstractdocument {
27-
interface Document {
28-
+ children(String, Function<Map<String, Object>, T>) : Stream<T> {abstract}
29-
+ get(String) : Object {abstract}
30-
+ put(String, Object) {abstract}
27+
class App {
28+
+ App()
29+
+ main(args : String[]) {static}
3130
}
3231
abstract class AbstractDocument {
3332
- properties : Map<String, Object>
@@ -37,23 +36,24 @@ package com.iluwatar.abstractdocument {
3736
+ put(key : String, value : Object)
3837
+ toString() : String
3938
}
40-
class App {
41-
+ App()
42-
+ main(args : String[]) {static}
39+
interface Document {
40+
+ children(String, Function<Map<String, Object>, T>) : Stream<T> {abstract}
41+
+ get(String) : Object {abstract}
42+
+ put(String, Object) {abstract}
4343
}
4444
}
4545
AbstractDocument --+ Map
4646
Part ..|> HasType
4747
Part ..|> HasModel
4848
Part ..|> HasPrice
4949
Part --|> AbstractDocument
50+
AbstractDocument ..|> Document
51+
HasPrice --|> Document
52+
HasParts --|> Document
5053
Car ..|> HasModel
5154
Car ..|> HasPrice
5255
Car ..|> HasParts
5356
Car --|> AbstractDocument
54-
HasModel --|> Document
55-
HasParts --|> Document
56-
AbstractDocument ..|> Document
5757
HasType --|> Document
58-
HasPrice --|> Document
58+
HasModel --|> Document
5959
@enduml
Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,5 @@
11
@startuml
22
package com.iluwatar.abstractfactory {
3-
interface Castle {
4-
+ getDescription() : String {abstract}
5-
}
6-
class OrcKingdomFactory {
7-
+ OrcKingdomFactory()
8-
+ createArmy() : Army
9-
+ createCastle() : Castle
10-
+ createKing() : King
11-
}
12-
class ElfKing {
13-
~ DESCRIPTION : String {static}
14-
+ ElfKing()
15-
+ getDescription() : String
16-
}
17-
interface King {
18-
+ getDescription() : String {abstract}
19-
}
203
class App {
214
- army : Army
225
- castle : Castle
@@ -34,55 +17,72 @@ package com.iluwatar.abstractfactory {
3417
- setCastle(castle : Castle)
3518
- setKing(king : King)
3619
}
37-
class OrcKing {
38-
~ DESCRIPTION : String {static}
39-
+ OrcKing()
40-
+ getDescription() : String
41-
}
42-
class ElfKingdomFactory {
43-
+ ElfKingdomFactory()
20+
class OrcKingdomFactory {
21+
+ OrcKingdomFactory()
4422
+ createArmy() : Army
4523
+ createCastle() : Castle
4624
+ createKing() : King
4725
}
48-
interface Army {
49-
+ getDescription() : String {abstract}
26+
class ElfCastle {
27+
~ DESCRIPTION : String {static}
28+
+ ElfCastle()
29+
+ getDescription() : String
5030
}
51-
class OrcArmy {
31+
class OrcCastle {
5232
~ DESCRIPTION : String {static}
53-
+ OrcArmy()
33+
+ OrcCastle()
5434
+ getDescription() : String
5535
}
5636
interface KingdomFactory {
5737
+ createArmy() : Army {abstract}
5838
+ createCastle() : Castle {abstract}
5939
+ createKing() : King {abstract}
6040
}
41+
class ElfKing {
42+
~ DESCRIPTION : String {static}
43+
+ ElfKing()
44+
+ getDescription() : String
45+
}
6146
class ElfArmy {
6247
~ DESCRIPTION : String {static}
6348
+ ElfArmy()
6449
+ getDescription() : String
6550
}
66-
class ElfCastle {
51+
interface Castle {
52+
+ getDescription() : String {abstract}
53+
}
54+
interface Army {
55+
+ getDescription() : String {abstract}
56+
}
57+
class OrcKing {
6758
~ DESCRIPTION : String {static}
68-
+ ElfCastle()
59+
+ OrcKing()
6960
+ getDescription() : String
7061
}
71-
class OrcCastle {
62+
class OrcArmy {
7263
~ DESCRIPTION : String {static}
73-
+ OrcCastle()
64+
+ OrcArmy()
7465
+ getDescription() : String
7566
}
67+
interface King {
68+
+ getDescription() : String {abstract}
69+
}
70+
class ElfKingdomFactory {
71+
+ ElfKingdomFactory()
72+
+ createArmy() : Army
73+
+ createCastle() : Castle
74+
+ createKing() : King
75+
}
7676
}
7777
App --> "-castle" Castle
7878
App --> "-king" King
7979
App --> "-army" Army
8080
OrcKingdomFactory ..|> KingdomFactory
81+
ElfCastle ..|> Castle
82+
OrcCastle ..|> Castle
8183
ElfKing ..|> King
84+
ElfArmy ..|> Army
8285
OrcKing ..|> King
83-
ElfKingdomFactory ..|> KingdomFactory
8486
OrcArmy ..|> Army
85-
ElfArmy ..|> Army
86-
ElfCastle ..|> Castle
87-
OrcCastle ..|> Castle
87+
ElfKingdomFactory ..|> KingdomFactory
8888
@enduml

adapter/etc/adapter.urm.puml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
@startuml
22
package com.iluwatar.adapter {
3-
class App {
4-
+ App()
5-
+ main(args : String[]) {static}
6-
}
73
interface BattleShip {
84
+ fire() {abstract}
95
+ move() {abstract}
106
}
7+
class BattleFishingBoat {
8+
- boat : FishingBoat
9+
+ BattleFishingBoat()
10+
+ fire()
11+
+ move()
12+
}
13+
class App {
14+
+ App()
15+
+ main(args : String[]) {static}
16+
}
1117
class Captain {
1218
- battleship : BattleShip
1319
+ Captain()
@@ -16,12 +22,6 @@ package com.iluwatar.adapter {
1622
+ move()
1723
+ setBattleship(battleship : BattleShip)
1824
}
19-
class BattleFishingBoat {
20-
- boat : FishingBoat
21-
+ BattleFishingBoat()
22-
+ fire()
23-
+ move()
24-
}
2525
class FishingBoat {
2626
+ FishingBoat()
2727
+ fish()
@@ -30,6 +30,6 @@ package com.iluwatar.adapter {
3030
}
3131
BattleFishingBoat --> "-boat" FishingBoat
3232
Captain --> "-battleship" BattleShip
33-
Captain ..|> BattleShip
3433
BattleFishingBoat ..|> BattleShip
34+
Captain ..|> BattleShip
3535
@enduml
Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
@startuml
22
package com.iluwatar.aggregator.microservices {
3-
class Aggregator {
4-
- informationClient : ProductInformationClient
5-
- inventoryClient : ProductInventoryClient
6-
+ Aggregator()
7-
+ getProduct() : Product
3+
class ProductInventoryClientImpl {
4+
+ ProductInventoryClientImpl()
5+
+ getProductInventories() : int
86
}
9-
class ProductInformationClientImpl {
10-
+ ProductInformationClientImpl()
11-
+ getProductTitle() : String
7+
class App {
8+
+ App()
9+
+ main(args : String[]) {static}
1210
}
13-
interface ProductInformationClient {
14-
+ getProductTitle() : String {abstract}
11+
interface ProductInventoryClient {
12+
+ getProductInventories() : int {abstract}
1513
}
1614
class Product {
1715
- productInventories : int
@@ -22,20 +20,22 @@ package com.iluwatar.aggregator.microservices {
2220
+ setProductInventories(productInventories : int)
2321
+ setTitle(title : String)
2422
}
25-
class ProductInventoryClientImpl {
26-
+ ProductInventoryClientImpl()
27-
+ getProductInventories() : int
23+
class Aggregator {
24+
- informationClient : ProductInformationClient
25+
- inventoryClient : ProductInventoryClient
26+
+ Aggregator()
27+
+ getProduct() : Product
2828
}
29-
class App {
30-
+ App()
31-
+ main(args : String[]) {static}
29+
class ProductInformationClientImpl {
30+
+ ProductInformationClientImpl()
31+
+ getProductTitle() : String
3232
}
33-
interface ProductInventoryClient {
34-
+ getProductInventories() : int {abstract}
33+
interface ProductInformationClient {
34+
+ getProductTitle() : String {abstract}
3535
}
3636
}
3737
Aggregator --> "-inventoryClient" ProductInventoryClient
3838
Aggregator --> "-informationClient" ProductInformationClient
39-
ProductInformationClientImpl ..|> ProductInformationClient
4039
ProductInventoryClientImpl ..|> ProductInventoryClient
40+
ProductInformationClientImpl ..|> ProductInformationClient
4141
@enduml
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
@startuml
22
package com.iluwatar.inventory.microservice {
3-
class InventoryApplication {
4-
+ InventoryApplication()
5-
+ main(args : String[]) {static}
6-
}
73
class InventoryController {
84
+ InventoryController()
95
+ getProductInventories() : int
106
}
7+
class InventoryApplication {
8+
+ InventoryApplication()
9+
+ main(args : String[]) {static}
10+
}
1111
}
1212
@enduml

api-gateway/etc/api-gateway-service.urm.puml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,26 @@
11
@startuml
22
package com.iluwatar.api.gateway {
3-
interface ImageClient {
4-
+ getImagePath() : String {abstract}
3+
class App {
4+
+ App()
5+
+ main(args : String[]) {static}
6+
}
7+
class PriceClientImpl {
8+
+ PriceClientImpl()
9+
+ getPrice() : String
10+
}
11+
class ImageClientImpl {
12+
+ ImageClientImpl()
13+
+ getImagePath() : String
514
}
615
class MobileProduct {
716
- price : String
817
+ MobileProduct()
918
+ getPrice() : String
1019
+ setPrice(price : String)
1120
}
21+
interface ImageClient {
22+
+ getImagePath() : String {abstract}
23+
}
1224
class ApiGateway {
1325
- imageClient : ImageClient
1426
- priceClient : PriceClient
@@ -28,18 +40,6 @@ package com.iluwatar.api.gateway {
2840
interface PriceClient {
2941
+ getPrice() : String {abstract}
3042
}
31-
class PriceClientImpl {
32-
+ PriceClientImpl()
33-
+ getPrice() : String
34-
}
35-
class ImageClientImpl {
36-
+ ImageClientImpl()
37-
+ getImagePath() : String
38-
}
39-
class App {
40-
+ App()
41-
+ main(args : String[]) {static}
42-
}
4343
}
4444
ApiGateway --> "-imageClient" ImageClient
4545
ApiGateway --> "-priceClient" PriceClient

0 commit comments

Comments
 (0)