public enum ValidationStrategy extends Enum<ValidationStrategy>
generic choices
are validated.Enum Constant and Description |
---|
ADD_ITEM
Validate when the item is added to cart
|
SUBMIT_ORDER
Allow the item to be added to the cart, but validate when the cart is submitted for checkout
|
Modifier and Type | Method and Description |
---|---|
static ValidationStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ValidationStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ValidationStrategy ADD_ITEM
public static final ValidationStrategy SUBMIT_ORDER
public static ValidationStrategy[] values()
for (ValidationStrategy c : ValidationStrategy.values()) System.out.println(c);
public static ValidationStrategy 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.