/
githubmirror
/
java-design-patterns
Обзор
Документация
Войти
/
githubmirror
/
java-design-patterns
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
property/etc/property.urm.puml
54 строки
1 KB
Ilkka Seppälä
#1113 Add uml-reverse-mapper plugin
07 дек 2019, 19:03
07 дек 2019, 19:03
0685a50
Код
Авторство
О чём код?
@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