#1113 Add uml-reverse-mapper plugin
This commit is contained in:
		
							
								
								
									
										32
									
								
								decorator/etc/decorator.urm.puml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								decorator/etc/decorator.urm.puml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,32 @@
 | 
			
		||||
@startuml
 | 
			
		||||
package com.iluwatar.decorator {
 | 
			
		||||
  class App {
 | 
			
		||||
    - LOGGER : Logger {static}
 | 
			
		||||
    + App()
 | 
			
		||||
    + main(args : String[]) {static}
 | 
			
		||||
  }
 | 
			
		||||
  class ClubbedTroll {
 | 
			
		||||
    - LOGGER : Logger {static}
 | 
			
		||||
    - decorated : Troll
 | 
			
		||||
    + ClubbedTroll(decorated : Troll)
 | 
			
		||||
    + attack()
 | 
			
		||||
    + fleeBattle()
 | 
			
		||||
    + getAttackPower() : int
 | 
			
		||||
  }
 | 
			
		||||
  class SimpleTroll {
 | 
			
		||||
    - LOGGER : Logger {static}
 | 
			
		||||
    + SimpleTroll()
 | 
			
		||||
    + attack()
 | 
			
		||||
    + fleeBattle()
 | 
			
		||||
    + getAttackPower() : int
 | 
			
		||||
  }
 | 
			
		||||
  interface Troll {
 | 
			
		||||
    + attack() {abstract}
 | 
			
		||||
    + fleeBattle() {abstract}
 | 
			
		||||
    + getAttackPower() : int {abstract}
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
ClubbedTroll -->  "-decorated" Troll
 | 
			
		||||
ClubbedTroll ..|> Troll 
 | 
			
		||||
SimpleTroll ..|> Troll 
 | 
			
		||||
@enduml
 | 
			
		||||
		Reference in New Issue
	
	Block a user