简介 / IntroductionState machines describe the lifecycle of objects and protocol state transitions. Composite states bundle multiple sub-states under one high-level state, reducing diagram clutt...
简介 / Introduction状态机(State Machine)广泛用于描述对象生命周期、协议状态流转。复合状态(Composite State)将多个子状态打包为一个高层状态,简化大图;历史状态(History State)记录退出复合状态前的最近子状态,支持”从哪里中断就从哪里恢复”。本文用同一业务场景(登录流程)分别演示 PlantUML 与 Mermaid 的语法,并...
简介 / IntroductionGenerics and collection types are core concepts in object-oriented design. In class diagrams, generics constrain the parameterized types of class members, return values, and p...
简介 / Introduction泛型(Generics)和集合类型(Collection Types)是面向对象设计中的核心概念。在类图中,泛型约束了类成员、返回值和参数的参数化类型。本篇以 List<T>、Map<K,V> 为例,对比 PlantUML 与 Mermaid 的实现方式。
PlantUML 版123456789101112131415161...
简介 / IntroductionClass diagrams don’t just show relationships — they also use packages or namespaces to organize model elements into a hierarchical structure. This article uses the same scenar...
简介 / Introduction类图不仅描述类之间的关系,也用包(Package) 或 命名空间(Namespace) 来组织模型元素,形成分层结构。本文用同一个场景对比 PlantUML 与 Mermaid 的包/命名空间语法,展示两者的异同。
PlantUML 版12345678910111213141516171819package "com.examp...
简介 / IntroductionClass diagrams are the core of object-oriented modeling. Beyond ordinary classes, stereotypes (such as <<interface>>, <<abstract>>, <<service>...
简介 / Introduction类图(Class Diagram)是面向对象建模的核心工具。除了普通的类之外,Stereotype(构造型)用来标注类的特殊语义,如 <<interface>>、<<abstract>>、<<service>>;对应的 UML 概念是接口(Interface)和抽象类(Abst...
简介 / IntroductionClass diagrams are a core part of UML, describing the static relationships between classes in a system. Both PlantUML and Mermaid make it easy to draw the six most common rela...
简介 / Introduction类图(Class Diagram)是 UML 的核心图之一,用来描述系统中类与类之间的静态关系。无论你用 PlantUML 还是 Mermaid,都能快速画出这 6 种常用关系:关联、聚合、组合、继承、依赖、实现。
PlantUML 版1234567891011121314151617181920212223242526272829@startu...