Difference between revisions of "UML"
From AccountIT
(→Example3) |
(→Example3) |
||
Line 76: | Line 76: | ||
---- | ---- | ||
@startuml | @startuml | ||
+ | <uml> | ||
package "Classic Collections" #DDDDDD | package "Classic Collections" #DDDDDD | ||
Object <|-- ArrayList | Object <|-- ArrayList | ||
Line 81: | Line 82: | ||
Object <|-- Demo1 | Object <|-- Demo1 | ||
Demo1 *- Demo2 | Demo1 *- Demo2 | ||
+ | </uml> | ||
@enduml | @enduml | ||
Revision as of 00:24, 12 May 2014
Contents
Usage
Just put a PlantUML model description between the <uml></uml>< tag.
Attributes
- redraw
- force diagram to be redrawn by deleting cached image.
Examples
Example1
<uml> Alice -> Bob: Authentication Request Bob --> Alice: Authentication Response </uml>
Example2
<uml> skinparam usecaseBackgroundColor DarkSeaGreen skinparam usecaseArrowColor Olive skinparam actorBorderColor black skinparam usecaseBorderColor DarkSlateGray skinparam usecaseActorFontName Courier User << Human >> :Main Database: as MySql << Application >> (Start) << One Shot >> (Use the application) as (Use) << Main >> User -> (Start) User --> (Use) MySql --> (Use) </uml>
Example3
<uml> package "Classic Collections" #DDDDDD Object <|-- ArrayList package net.sourceforge.plantuml Object <|-- Demo1 Demo1 *- Demo2 </uml>
@startuml @enduml
Example4
<graphviz border='frame' format='png'> digraph example1 {Hello->"World!"} </graphviz>