public enum ValidationType extends Enum<ValidationType>
product options
. This validation can run at
various stages of the order process denoted by ValidationStrategy
Enum Constant and Description |
---|
REGEX
A regular express is run against the submitted option value
|
Modifier and Type | Method and Description |
---|---|
static ValidationType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ValidationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ValidationType REGEX
public static ValidationType[] values()
for (ValidationType c : ValidationType.values()) System.out.println(c);
public static ValidationType 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. All rights reserved.