public static enum Validation.MODE extends Enum<Validation.MODE>
Enum Constant and Description |
---|
FULL
FULL - 对目标对象属性进行全部验证后返回全部验证结果
|
NORMAL
NORMAL - 短路式验证,即出现验证未通过就返回验证结果
|
Modifier and Type | Method and Description |
---|---|
static Validation.MODE |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Validation.MODE[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Validation.MODE NORMAL
public static final Validation.MODE FULL
public static Validation.MODE[] values()
for (Validation.MODE c : Validation.MODE.values()) System.out.println(c);
public static Validation.MODE valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2022. All rights reserved.