I just felt like writing this stuff down for once.
| Java keyword | UML | PlantUML syntax |
|---|---|---|
| public | + | +/green circle |
| protected | # | #/yellow diamond |
| package-private | ~ | ~/blue triangle |
| private | - | -/red square |
| abstract | italic | {abstract}/italic |
| static | underlined | {static}/underlined |
| public final static | constants 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