Skip to content

stillerr/yuml-design-patterns

Repository files navigation

Design patterns in yUML

Design patterns written down using yUML

Abstract Factory

alt tag

[<<interface>>;AbstractFactory|+createProduct();]^-.-[ConcreteFactory|+createProduct();],
[<<interface>>;AbstractProduct]^-.-[ConcreteProduct]

Builder

alt tag

[Director|+build();]++-[Builder|+buildPart();], [Builder]^-.-[ConcreteBuilder|+buildPart();+getResult():Product;]

FactoryMethod

alt tag

[Creator|+factoryMethod():Product;]^-[ConcreteCreator|+factoryMethod():Product;]

Prototype

alt tag

[<<interface>>;Prototype|+clone():Prototype;]^-.-[ConcretePrototypeB|+clone():Prototype;],
[<<interface>>;Prototype|+clone():Prototype;]^-.-[ConcretePrototypeA|+clone():Prototype;]

Singleton

alt tag

[Singleton|-instance:Singleton = null|-Singleton();+getInstance():Singleton;]

Adapter

alt tag

[<<interface>>;Target|+request();]^-.-[Adapter|+request();],
[Adapter]-^[Adaptee|+specificRequest();]

Bridge

alt tag

[Abstraction|-impl:Implementor;+function()]^-[RefinedAbstraction |+refinedFunction();],
[Abstraction]<>-[Implementor|+implementation();],
[Implementor]^-[ConceteImplementor|+implementation();]

Composite

alt tag

[Component|+opertation()]^-[Leaf|+operation();],
[Component]^-[Composite|+operation();+add();+remove();+getChild()],
[Component]0..*-<>1[Composite]

About

Design patterns in yuml

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published