Package javax.validation.metadata
Enum Class ValidateUnwrappedValue
- All Implemented Interfaces:
Serializable
,Comparable<ValidateUnwrappedValue>
,Constable
The unwrapping behavior that can be applied to a specific constraint.
- Since:
- 2.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionNo specific unwrapping behavior has been defined for this constraint and the default behavior applies: if there is exactly one maximally-specific type-compliantValueExtractor
and this extractor is marked withUnwrapByDefault
, this extractor is applied and the constraint is applied to the value(s) wrapped by the annotated container.The value is not unwrapped before validation, i.e.The value is unwrapped before validation, i.e. -
Method Summary
Modifier and TypeMethodDescriptionstatic ValidateUnwrappedValue
Returns the enum constant of this class with the specified name.static ValidateUnwrappedValue[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
No specific unwrapping behavior has been defined for this constraint and the default behavior applies: if there is exactly one maximally-specific type-compliantValueExtractor
and this extractor is marked withUnwrapByDefault
, this extractor is applied and the constraint is applied to the value(s) wrapped by the annotated container. Otherwise, no value extractor is applied. -
UNWRAP
The value is unwrapped before validation, i.e. the constraint is applied to the value(s) wrapped by the annotated container. -
SKIP
The value is not unwrapped before validation, i.e. the constraint is applied to the annotated element.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-