Skip to content

Commit

Permalink
UML generation: Mark the urm-maven-plugin execution to be ignored in …
Browse files Browse the repository at this point in the history
…Eclipse and recreate all .puml files
  • Loading branch information
iluwatar committed Sep 18, 2016
1 parent b030cd4 commit 6026eed
Show file tree
Hide file tree
Showing 78 changed files with 1,568 additions and 1,501 deletions.
36 changes: 18 additions & 18 deletions abstract-document/etc/abstract-document.urm.puml
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,30 @@ package com.iluwatar.abstractdocument.domain {
class Part {
+ Part(properties : Map<String, Object>)
}
class Car {
+ Car(properties : Map<String, Object>)
}
interface HasModel {
interface HasPrice {
+ PROPERTY : String {static}
+ getModel() : Optional<String>
+ getPrice() : Optional<Number>
}
interface HasParts {
+ PROPERTY : String {static}
+ getParts() : Stream<Part>
}
class Car {
+ Car(properties : Map<String, Object>)
}
interface HasType {
+ PROPERTY : String {static}
+ getType() : Optional<String>
}
interface HasPrice {
interface HasModel {
+ PROPERTY : String {static}
+ getPrice() : Optional<Number>
+ getModel() : Optional<String>
}
}
package com.iluwatar.abstractdocument {
interface Document {
+ children(String, Function<Map<String, Object>, T>) : Stream<T> {abstract}
+ get(String) : Object {abstract}
+ put(String, Object) {abstract}
class App {
+ App()
+ main(args : String[]) {static}
}
abstract class AbstractDocument {
- properties : Map<String, Object>
Expand All @@ -37,23 +36,24 @@ package com.iluwatar.abstractdocument {
+ put(key : String, value : Object)
+ toString() : String
}
class App {
+ App()
+ main(args : String[]) {static}
interface Document {
+ children(String, Function<Map<String, Object>, T>) : Stream<T> {abstract}
+ get(String) : Object {abstract}
+ put(String, Object) {abstract}
}
}
AbstractDocument --+ Map
Part ..|> HasType
Part ..|> HasModel
Part ..|> HasPrice
Part --|> AbstractDocument
AbstractDocument ..|> Document
HasPrice --|> Document
HasParts --|> Document
Car ..|> HasModel
Car ..|> HasPrice
Car ..|> HasParts
Car --|> AbstractDocument
HasModel --|> Document
HasParts --|> Document
AbstractDocument ..|> Document
HasType --|> Document
HasPrice --|> Document
HasModel --|> Document
@enduml
72 changes: 36 additions & 36 deletions abstract-factory/etc/abstract-factory.urm.puml
Original file line number Diff line number Diff line change
@@ -1,22 +1,5 @@
@startuml
package com.iluwatar.abstractfactory {
interface Castle {
+ getDescription() : String {abstract}
}
class OrcKingdomFactory {
+ OrcKingdomFactory()
+ createArmy() : Army
+ createCastle() : Castle
+ createKing() : King
}
class ElfKing {
~ DESCRIPTION : String {static}
+ ElfKing()
+ getDescription() : String
}
interface King {
+ getDescription() : String {abstract}
}
class App {
- army : Army
- castle : Castle
Expand All @@ -34,55 +17,72 @@ package com.iluwatar.abstractfactory {
- setCastle(castle : Castle)
- setKing(king : King)
}
class OrcKing {
~ DESCRIPTION : String {static}
+ OrcKing()
+ getDescription() : String
}
class ElfKingdomFactory {
+ ElfKingdomFactory()
class OrcKingdomFactory {
+ OrcKingdomFactory()
+ createArmy() : Army
+ createCastle() : Castle
+ createKing() : King
}
interface Army {
+ getDescription() : String {abstract}
class ElfCastle {
~ DESCRIPTION : String {static}
+ ElfCastle()
+ getDescription() : String
}
class OrcArmy {
class OrcCastle {
~ DESCRIPTION : String {static}
+ OrcArmy()
+ OrcCastle()
+ getDescription() : String
}
interface KingdomFactory {
+ createArmy() : Army {abstract}
+ createCastle() : Castle {abstract}
+ createKing() : King {abstract}
}
class ElfKing {
~ DESCRIPTION : String {static}
+ ElfKing()
+ getDescription() : String
}
class ElfArmy {
~ DESCRIPTION : String {static}
+ ElfArmy()
+ getDescription() : String
}
class ElfCastle {
interface Castle {
+ getDescription() : String {abstract}
}
interface Army {
+ getDescription() : String {abstract}
}
class OrcKing {
~ DESCRIPTION : String {static}
+ ElfCastle()
+ OrcKing()
+ getDescription() : String
}
class OrcCastle {
class OrcArmy {
~ DESCRIPTION : String {static}
+ OrcCastle()
+ OrcArmy()
+ getDescription() : String
}
interface King {
+ getDescription() : String {abstract}
}
class ElfKingdomFactory {
+ ElfKingdomFactory()
+ createArmy() : Army
+ createCastle() : Castle
+ createKing() : King
}
}
App --> "-castle" Castle
App --> "-king" King
App --> "-army" Army
OrcKingdomFactory ..|> KingdomFactory
ElfCastle ..|> Castle
OrcCastle ..|> Castle
ElfKing ..|> King
ElfArmy ..|> Army
OrcKing ..|> King
ElfKingdomFactory ..|> KingdomFactory
OrcArmy ..|> Army
ElfArmy ..|> Army
ElfCastle ..|> Castle
OrcCastle ..|> Castle
ElfKingdomFactory ..|> KingdomFactory
@enduml
22 changes: 11 additions & 11 deletions adapter/etc/adapter.urm.puml
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
@startuml
package com.iluwatar.adapter {
class App {
+ App()
+ main(args : String[]) {static}
}
interface BattleShip {
+ fire() {abstract}
+ move() {abstract}
}
class BattleFishingBoat {
- boat : FishingBoat
+ BattleFishingBoat()
+ fire()
+ move()
}
class App {
+ App()
+ main(args : String[]) {static}
}
class Captain {
- battleship : BattleShip
+ Captain()
Expand All @@ -16,12 +22,6 @@ package com.iluwatar.adapter {
+ move()
+ setBattleship(battleship : BattleShip)
}
class BattleFishingBoat {
- boat : FishingBoat
+ BattleFishingBoat()
+ fire()
+ move()
}
class FishingBoat {
+ FishingBoat()
+ fish()
Expand All @@ -30,6 +30,6 @@ package com.iluwatar.adapter {
}
BattleFishingBoat --> "-boat" FishingBoat
Captain --> "-battleship" BattleShip
Captain ..|> BattleShip
BattleFishingBoat ..|> BattleShip
Captain ..|> BattleShip
@enduml
38 changes: 19 additions & 19 deletions aggregator-microservices/etc/aggregator-service.urm.puml
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
@startuml
package com.iluwatar.aggregator.microservices {
class Aggregator {
- informationClient : ProductInformationClient
- inventoryClient : ProductInventoryClient
+ Aggregator()
+ getProduct() : Product
class ProductInventoryClientImpl {
+ ProductInventoryClientImpl()
+ getProductInventories() : int
}
class ProductInformationClientImpl {
+ ProductInformationClientImpl()
+ getProductTitle() : String
class App {
+ App()
+ main(args : String[]) {static}
}
interface ProductInformationClient {
+ getProductTitle() : String {abstract}
interface ProductInventoryClient {
+ getProductInventories() : int {abstract}
}
class Product {
- productInventories : int
Expand All @@ -22,20 +20,22 @@ package com.iluwatar.aggregator.microservices {
+ setProductInventories(productInventories : int)
+ setTitle(title : String)
}
class ProductInventoryClientImpl {
+ ProductInventoryClientImpl()
+ getProductInventories() : int
class Aggregator {
- informationClient : ProductInformationClient
- inventoryClient : ProductInventoryClient
+ Aggregator()
+ getProduct() : Product
}
class App {
+ App()
+ main(args : String[]) {static}
class ProductInformationClientImpl {
+ ProductInformationClientImpl()
+ getProductTitle() : String
}
interface ProductInventoryClient {
+ getProductInventories() : int {abstract}
interface ProductInformationClient {
+ getProductTitle() : String {abstract}
}
}
Aggregator --> "-inventoryClient" ProductInventoryClient
Aggregator --> "-informationClient" ProductInformationClient
ProductInformationClientImpl ..|> ProductInformationClient
ProductInventoryClientImpl ..|> ProductInventoryClient
ProductInformationClientImpl ..|> ProductInformationClient
@enduml
8 changes: 4 additions & 4 deletions aggregator-microservices/etc/inventory-microservice.urm.puml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
@startuml
package com.iluwatar.inventory.microservice {
class InventoryApplication {
+ InventoryApplication()
+ main(args : String[]) {static}
}
class InventoryController {
+ InventoryController()
+ getProductInventories() : int
}
class InventoryApplication {
+ InventoryApplication()
+ main(args : String[]) {static}
}
}
@enduml
28 changes: 14 additions & 14 deletions api-gateway/etc/api-gateway-service.urm.puml
Original file line number Diff line number Diff line change
@@ -1,14 +1,26 @@
@startuml
package com.iluwatar.api.gateway {
interface ImageClient {
+ getImagePath() : String {abstract}
class App {
+ App()
+ main(args : String[]) {static}
}
class PriceClientImpl {
+ PriceClientImpl()
+ getPrice() : String
}
class ImageClientImpl {
+ ImageClientImpl()
+ getImagePath() : String
}
class MobileProduct {
- price : String
+ MobileProduct()
+ getPrice() : String
+ setPrice(price : String)
}
interface ImageClient {
+ getImagePath() : String {abstract}
}
class ApiGateway {
- imageClient : ImageClient
- priceClient : PriceClient
Expand All @@ -28,18 +40,6 @@ package com.iluwatar.api.gateway {
interface PriceClient {
+ getPrice() : String {abstract}
}
class PriceClientImpl {
+ PriceClientImpl()
+ getPrice() : String
}
class ImageClientImpl {
+ ImageClientImpl()
+ getImagePath() : String
}
class App {
+ App()
+ main(args : String[]) {static}
}
}
ApiGateway --> "-imageClient" ImageClient
ApiGateway --> "-priceClient" PriceClient
Expand Down
Loading

0 comments on commit 6026eed

Please sign in to comment.