Search Knowledge

© 2026 LIBREUNI PROJECT

UML Design / Overview

Modeling with PlantUML

Modeling with PlantUML

Instead of using drag-and-drop tools that can be tedious to update, we use PlantUML. PlantUML is an open-source tool that allows users to create UML diagrams from a plain text language.

Why Text-Based Modeling?

  • Version Control: Since it’s text, you can track changes using Git.
  • Speed: Quickly iterate on designs without fighting with mouse alignments.
  • Consistency: The tool handles the layout automatically.

Basic Syntax Structure

Most diagrams start with a keyword defining the type (though often omitted in the specific component syntax we use here) and use simple arrows to define relationships.

Common Symbols

SymbolMeaning
->Solid line/arrow
-->Dashed line/arrow
:Adds text to a line/relationship
asAlias for a long name
[ ]Represents a component or node
( )Represents a use case

Tips for Efficient Modeling

  1. Focus on Semantics: Let PlantUML handle the layout. Don’t spend too much time trying to force specific positioning unless necessary.
  2. Use Aliases: For long component names, use as to keep your code clean.
    participant "Very Long Service Name" as Service
    User -> Service: Request
    
  3. Colors and Styling: You can add skinparams or inline colors, but keep it simple for technical documentation.
    node "Server" #LightBlue
    

Live Preview

In most modern IDEs (like VS Code), you can install the PlantUML extension to see a live preview of your diagrams as you type.

Previous Module Introduction
Next Module Class Diagrams