public enum UnwrapMode extends Enum<UnwrapMode>
UnwrapValidatedValue
,
ValidatedValueUnwrapper
Enum Constant and Description |
---|
AUTOMATIC
Automatic occurs if there is no explicit
UnwrapValidatedValue annotation. |
SKIP_UNWRAP
Unwrapping the value is explicitly prohibited, eg via
UnwrapValidatedValue(false) |
UNWRAP
Unwrapping of the value is explicitly configured, eg via
UnwrapValidatedValue |
Modifier and Type | Method and Description |
---|---|
static UnwrapMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UnwrapMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UnwrapMode AUTOMATIC
UnwrapValidatedValue
annotation. Whether unwrapping occurs depends
on the number and type of the registered ValidatedValueUnwrapper
instances and the available constraint
validator instances for the wrapper as well as wrapped value.public static final UnwrapMode UNWRAP
UnwrapValidatedValue
public static final UnwrapMode SKIP_UNWRAP
UnwrapValidatedValue(false)
public static UnwrapMode[] values()
for (UnwrapMode c : UnwrapMode.values()) System.out.println(c);
public static UnwrapMode 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 © 2017 JBoss by Red Hat. All rights reserved.