类 DocUtils
java.lang.Object
top.continew.starter.apidoc.util.DocUtils
接口文档工具类
- 从以下版本开始:
- 2.5.2
- 作者:
- echo
-
方法概要
修饰符和类型方法说明getDescMap(Class<?> enumClass) 获取枚举描述 Mapstatic StringgetEnumValueTypeAsString(Class<?> enumClass) 获取枚举值类型static booleanhasRestControllerAnnotation(Class<?> clazz) 具有 RestController 注释,既检查是否继承了BaseControllerstatic StringresolveFormat(String enumValueType) 解析枚举值的格式
-
方法详细资料
-
getEnumValueTypeAsString
获取枚举值类型- 参数:
enumClass- 枚举类型- 返回:
- 枚举值类型
-
resolveFormat
解析枚举值的格式- 参数:
enumValueType- 枚举值类型- 返回:
- String 格式化类型
-
hasRestControllerAnnotation
具有 RestController 注释,既检查是否继承了BaseController- 参数:
clazz- clazz- 返回:
- boolean
-
getDescMap
获取枚举描述 Map- 参数:
enumClass- 枚举类型- 返回:
- 枚举描述 Map
-