Skip to content

gomaaco/yuml-cheatsheet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

yUML Syntax Cheatsheet

Summarized from: http://yuml.me/diagram/scruffy/class/samples

Class Diagrams

Association -

"Client and Project are somehow related."

[Client]-[Project]

Association schema

Directed Association ->

"A Client can have a Project."

[Client]->[Project]

Directed Association schema

Multiplicity 1-0..*

"A Client can zero or more Projects." Any one of these will work.

[Client]1-0..*[Project]

Multiplicity schema

[Client]-0..*[Project]

Multiplicity schema

[Client]1->0..*[Project]

Multiplicity schema

[Client]->0..*[Project]

Multiplicity schema

Aggregation +

"Client contains Projects; but Projects may exist without Client." Either will work.

[Client]+-[Project]

Aggregation schema

[Client]<>-[Project]

Aggregation schema

Composition ++

"Projects can only exist within a Client." Second shows Directinoal.

[Client]++-[Project]

Composition schema

[Client]++->[Project]

Composition schema

Notes [note:bla]

[note: How is this{bg:yellow}]

![Notes schema](http://yuml.me/diagram/scruffy/class/[note: How is this{bg:yellow}])

Interface [<<Name>>;method]

[<<TodoInterface>>;complete;uncomplete;isComplete;getDuration;getCarryover]uses-.->[Todo]

Interface schema

Class/Scope =, #, -

+	Public
#	Protected
-	Private

[Class|-privateVar:string|#protectedMethod($arg);+publicMethod($arg)]

Class Scope schema

Combos

Interface -> Abstract Class -> Class

[<<ObjectInterface>>;config]uses-.->[Object],[Object]^-.-[Todo]

Combos schema

About

A cheatsheet and syntax summary for yUML

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors