Plantuml の設計では、論理的な説明を含むクラス図を描画します

Yuque/DingTalkのplantuml描画機能を利用
 

1. 区切り文字...
2. 継承シンボルクラス SingleTypeService extends TypeService
3. 位置制御 CompomnetTypeService -up-|> TypeService
4. \t インデント
パッケージは使用しません パッケージ

公式サイト: クラス図の構文と機能

@startuml

class TypeService { 
  \t /** 例如检查正则是否合法, key是否是该类的*/
 abstract checkSchemeParam(key,value)
 
 ..
  \t/** 
   \t \t type,schemeParam 等通用字段
  \t*/
 addProperties(Map propertiesMap,String type,Column column){}
}

SingleTypeService -up-|> TypeService

class SingleTypeService {
  
  
}

class StringTypeService {
/** 
 \t 例如检查正则是否合法, key是否是该类的
*/
  checkSchemeParam(key,value){}
}

StringTypeService  -up-|> SingleTypeService
IntegerTypeService -up-|> SingleTypeService


CompomnetTypeService -up-|> TypeService

class CompomnetTypeService {
  
  abstract getChiledFieldsName()

  abstract checkChildFields(List<columns>)

  ..

	/** 
	    \t1. super.addProperties()
	    \t2. 增加依赖getChiledFieldsName()
	    \t3. 校验,依赖checkChildFields()
	  */
  addProperties(){}
	  
  

}

ObjectTypeService -up-|> CompomnetTypeService
ArrayTypeService -up-|> CompomnetTypeService

class ArrayTypeService {
  getChiledFieldsName(){}

  checkChildFields(List<columns>){}

}

@enduml

おすすめ

転載: blog.csdn.net/fei33423/article/details/131257195