public enum JavaxValidationOption extends Enum<JavaxValidationOption>
JavaxValidationModule
's processing.Enum Constant and Description |
---|
INCLUDE_PATTERN_EXPRESSIONS
Use this option to include a string's "pattern" according to
@Pattern(regexp = "...") or @Email(regexp = "...") . |
NOT_NULLABLE_FIELD_IS_REQUIRED
Use this option to add not-nullable fields to their parent's list of "required" properties.
|
NOT_NULLABLE_METHOD_IS_REQUIRED
Use this option to add not-nullable methods to their parent's list of "required" properties.
|
PREFER_IDN_EMAIL_FORMAT
Use this option to indicate the "idn-email" format instead of "email" when an
@Email annotation is being found. |
Modifier and Type | Method and Description |
---|---|
static JavaxValidationOption |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JavaxValidationOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JavaxValidationOption NOT_NULLABLE_FIELD_IS_REQUIRED
public static final JavaxValidationOption NOT_NULLABLE_METHOD_IS_REQUIRED
public static final JavaxValidationOption PREFER_IDN_EMAIL_FORMAT
@Email
annotation is being found.
SchemaVersion.DRAFT_7
.public static final JavaxValidationOption INCLUDE_PATTERN_EXPRESSIONS
@Pattern(regexp = "...")
or @Email(regexp = "...")
.public static JavaxValidationOption[] values()
for (JavaxValidationOption c : JavaxValidationOption.values()) System.out.println(c);
public static JavaxValidationOption 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 © 2021 VicTools. All rights reserved.