#1113 Add uml-reverse-mapper plugin
This commit is contained in:
54
property/etc/property.urm.puml
Normal file
54
property/etc/property.urm.puml
Normal file
@ -0,0 +1,54 @@
|
||||
@startuml
|
||||
package com.iluwatar.property {
|
||||
class App {
|
||||
- LOGGER : Logger {static}
|
||||
+ App()
|
||||
+ main(args : String[]) {static}
|
||||
}
|
||||
class Character {
|
||||
- name : String
|
||||
- properties : Map<Stats, Integer>
|
||||
- prototype : Prototype
|
||||
- type : Type
|
||||
+ Character()
|
||||
+ Character(name : String, prototype : Character)
|
||||
+ Character(type : Type, prototype : Prototype)
|
||||
+ get(stat : Stats) : Integer
|
||||
+ has(stat : Stats) : boolean
|
||||
+ name() : String
|
||||
+ remove(stat : Stats)
|
||||
+ set(stat : Stats, val : Integer)
|
||||
+ toString() : String
|
||||
+ type() : Type
|
||||
}
|
||||
enum Type {
|
||||
+ MAGE {static}
|
||||
+ ROGUE {static}
|
||||
+ WARRIOR {static}
|
||||
+ valueOf(name : String) : Type {static}
|
||||
+ values() : Type[] {static}
|
||||
}
|
||||
interface Prototype {
|
||||
+ get(Stats) : Integer {abstract}
|
||||
+ has(Stats) : boolean {abstract}
|
||||
+ remove(Stats) {abstract}
|
||||
+ set(Stats, Integer) {abstract}
|
||||
}
|
||||
enum Stats {
|
||||
+ AGILITY {static}
|
||||
+ ARMOR {static}
|
||||
+ ATTACK_POWER {static}
|
||||
+ ENERGY {static}
|
||||
+ INTELLECT {static}
|
||||
+ RAGE {static}
|
||||
+ SPIRIT {static}
|
||||
+ STRENGTH {static}
|
||||
+ valueOf(name : String) : Stats {static}
|
||||
+ values() : Stats[] {static}
|
||||
}
|
||||
}
|
||||
Character --> "-prototype" Prototype
|
||||
Type ..+ Character
|
||||
Character --> "-type" Type
|
||||
Character ..|> Prototype
|
||||
@enduml
|
Reference in New Issue
Block a user