Thursday, 25 October 2018

UML Class Diagrams - Common Conventions

I just felt like writing this stuff down for once.

Java keywordUMLPlantUML syntax
public++/green circle
protected##/yellow diamond
package-private~~/blue triangle
private--/red square
abstractitalic{abstract}/italic
staticunderlined{static}/underlined
public final staticconstants are in ALL_CAPS
final definition{leaf}
final value{readOnly}

References

The Oxford Math Center - UML, Abstract Classes and Methods, and Interfaces
http://www.oxfordmathcenter.com/drupal7/node/35
UML 2.5.1. specification
https://www.omg.org/spec/UML/2.5.1/
StackOverflow - How do I add a final variable to a class diagram?
https://stackoverflow.com/questions/16252399/how-do-i-add-a-final-variable-to-class-diagram
PlantUML - Class Diagram
http://plantuml.com/class-diagram

No comments:

Post a Comment