public class EnumType extends AbstractType<EnumType> implements DataType
| 限定符和类型 | 类和说明 |
|---|---|
static class |
EnumType.Element |
| 构造器和说明 |
|---|
EnumType() |
| 限定符和类型 | 方法和说明 |
|---|---|
EnumType |
addElement(EnumType.Element element) |
String |
format(Object value)
对值进行格式化
|
String |
getId()
唯一标识别
|
String |
getName()
名称
|
EnumType |
multi(boolean multi) |
ValidateResult |
validate(Object value)
验证是否合法
|
description, expand, expand, expand, expandsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetExpands, getTypegetDescription, getExpand, setDescription, setExpands, setNamepublic EnumType multi(boolean multi)
public ValidateResult validate(Object value)
DataTypepublic String format(Object value)
FormatSupportformat 在接口中 FormatSupportvalue - 值public EnumType addElement(EnumType.Element element)
Copyright © 2019–2022. All rights reserved.