Top Description Fields Constructors Methods
jakarta.validation.metadata

public final Enum ValidateUnwrappedValue

extends Enum<ValidateUnwrappedValue>
Class Inheritance
Imports
jakarta.validation.valueextraction.UnwrapByDefault, .ValueExtractor

The unwrapping behavior that can be applied to a specific constraint.
Author
Guillaume Smet
Since
2.0

Field Summary

Modifier and TypeField and Description
public static final ValidateUnwrappedValue
DEFAULT

No specific unwrapping behavior has been defined for this constraint and the default behavior applies: if there is exactly one maximally-specific type-compliant ValueExtractor and this extractor is marked with UnwrapByDefault, this extractor is applied and the constraint is applied to the value(s) wrapped by the annotated container.

public static final ValidateUnwrappedValue
SKIP

The value is not unwrapped before validation, i.e. the constraint is applied to the annotated element.

public static final ValidateUnwrappedValue
UNWRAP

The value is unwrapped before validation, i.e. the constraint is applied to the value(s) wrapped by the annotated container.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static ValidateUnwrappedValue
public static ValidateUnwrappedValue[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

DEFAULTback to summary
public static final ValidateUnwrappedValue DEFAULT

No specific unwrapping behavior has been defined for this constraint and the default behavior applies: if there is exactly one maximally-specific type-compliant ValueExtractor and this extractor is marked with UnwrapByDefault, this extractor is applied and the constraint is applied to the value(s) wrapped by the annotated container. Otherwise, no value extractor is applied.

SKIPback to summary
public static final ValidateUnwrappedValue SKIP

The value is not unwrapped before validation, i.e. the constraint is applied to the annotated element.

UNWRAPback to summary
public static final ValidateUnwrappedValue UNWRAP

The value is unwrapped before validation, i.e. the constraint is applied to the value(s) wrapped by the annotated container.

Constructor Detail

ValidateUnwrappedValueback to summary
private ValidateUnwrappedValue()

Method Detail

valueOfback to summary
public static ValidateUnwrappedValue valueOf(String name)
valuesback to summary
public static ValidateUnwrappedValue[] values()