Tuesday, 28 June 2011

yUML–> A web based tool for generating simple UML diagrams for use in blogs, forums and wikis

I came across yUML viewing someone's answer on Stack Overflow. It allows you to generate quick diagrams using a simple syntax that can then be presented in a blog.

With just a few lines of syntax you can generate a diagram and a url that can be inserted into a blog post or forum.

[Customer{bg:orange}]+1->*[Order{bg:green}]
[Order]++1-items >*[LineItem{bg:red}]
[Order]-0..1>[PaymentMethod{bg:blue}] 
[Order]-[note{bg:pink}:Aggregate root.]

The previous code is used to generate a URL (http://yuml.me/diagram/scruffy/class/[Customer{bg:orange}]+1->*[Order{bg:green}], [Order]++1-items >*[LineItem{bg:red}], [Order]-0..1>[PaymentMethod{bg:blue}] , [Order]-[note{bg:pink}:Aggregate root.]) which generates the following.

There are a few quirks with it but it gets the job done.

No comments:

Post a Comment