public enum SecureOption extends Enum<SecureOption>
SelectModel
(such as Select
), to control whether the submitted
value must be one of the values in the SelectModel.Enum Constant and Description |
---|
ALWAYS
Always check that the submitted value is found in the SelectModel (and
record a validation error if the SelectModel is not provided (null).
|
AUTO
The default: check that the submitted value is found in the SelectModel,
unless the SelectModel is not provided (null) at the time of submission.
|
NEVER
Never check that submitted value is found in the SelectModel.
|
Modifier and Type | Method and Description |
---|---|
static SecureOption |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SecureOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SecureOption ALWAYS
public static final SecureOption NEVER
public static final SecureOption AUTO
public static SecureOption[] values()
for (SecureOption c : SecureOption.values()) System.out.println(c);
public static SecureOption 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 null${project.version} - Copyright © 2003-2015 The Apache Software Foundation.