EnumToolParameterType

该接口表示枚举类型的工具参数,继承自 ToolParameterType 接口。

当工具需要处理枚举类型的数据时,可使用此接口来描述枚举参数的类型信息, 包括枚举的条目以及对条目的添加和删除操作。

Author

M8Test, [email protected], https://m8test.com

Functions

Link copied to clipboard
abstract fun addEntry(entry: String): Boolean

向枚举中添加一个条目。

Link copied to clipboard
abstract fun getEntries(): Array<String>

获取枚举的所有条目。

Link copied to clipboard
abstract fun getName(): String

获取参数类型的名称。

Link copied to clipboard
abstract fun removeEntry(entry: String): Boolean

从枚举中移除一个条目。