markdown Class(对象图)
Last updated on August 24, 2025 am
🧙 Questions
对象图: java架构图,描述类的结构
☄️ Ideas
箭头样式
--|>: Inheritance 继承--*: Composition 组合--o: Aggregation 聚合-->: Association 联合--: Link(Solid) 关联(实线)..: Link(Dashed) 关联(虚线)..>: Dependency 依赖..|>: Realization 实现<|--|>: Two-way 双向
字段类型
List~String~:List<String>
方法类型
+: Public-: Private#: Protected~: Package/Internal*: Abstract$: Static
类的类型
<<Interface>>: 实现类<<Abstract>>: 抽象类<<Service>>: 服务类<<Enumeration>>: 枚举类
布局
direction RL: 从右到左
基础语法
classDiagram
direction RL
class Work{
<<Abstract>>
+ String workType$
+ String workId
+ String workStatus
+ getWorkStatus()*
}
class OffLineWork{
+ String bashPath
+ getAllLog() List~String~
}
class OnLineWork{
+ String yarnJobId
+ getRealLog()$ String
}
Work <|-- OffLineWork : 实现
Work <|-- OnLineWork : 实现classDiagram
direction RL
class Work{
<<Abstract>>
+ String workType$
+ String workId
+ String workStatus
+ getWorkStatus()*
}
class OffLineWork{
+ String bashPath
+ getAllLog() List~String~
}
class OnLineWork{
+ String yarnJobId
+ getRealLog()$ String
}
Work <|-- OffLineWork : 实现
Work <|-- OnLineWork : 实现
🔗 Links
markdown Class(对象图)
https://ispong.isxcode.com/github/markdown/markdown Class(对象图)/