Top Description Interfaces Annotations Classes
module jakarta.validation

Package jakarta.validation.valueextraction


Package containing objects dedicated to extract values to validate from containers.

Interface Summary

Modifier and TypeInterface and Description
public interface
Unwrapping

Set of interfaces used in the payload() of a constraint to indicate if a value should be unwrapped before validation.

public interface
ValueExtractor<
the container type handled by a specific implementation
T
>

Defines the logic used to extract the values from a container object of type T.

Annotation Summary

Modifier and TypeAnnotation and Description
public @interface
ExtractedValue

Marks the type parameter of a generic container type to which a ValueExtractor is tied or specifies the type of the wrapped element(s) of non-generic container types.

public @interface
UnwrapByDefault

Marks a ValueExtractor definition so that it is applied automatically when detecting constraints declared on the container type supported by the extractor, causing the constraints to be applied to the container's elements instead of the container.

Class Summary

Modifier and TypeClass and Description
public class
ValueExtractorDeclarationException

Raised if the configuration of ValueExtractor is illegal, e.g. because multiple extractors for the same type and type use have been configured in META-INF/validation.xml.

public class
ValueExtractorDefinitionException

Raised if a ValueExtractor definition is illegal, e.g. because it doesn't declare its extracted value using ExtractedValue.