Top Description Methods
jakarta.validation.constraintvalidation

public @Interface SupportedValidationTarget

extends Annotation
Annotations
@Documented
@Target:TYPE
@Retention:RUNTIME
Imports
java.lang.annotation.Documented, .Retention, .Target, jakarta.validation.ConstraintValidator

Defines the target(s) a ConstraintValidator can validate.

A ConstraintValidator can target the (returned) element annotated by the constraint, the array of parameters of a method or constructor (aka cross-parameter) or both.

If @SupportedValidationTarget is not present, the ConstraintValidator targets the (returned) element annotated by the constraint.

A ConstraintValidator targeting cross-parameter must accept Object[] (or Object) as the type of object it validates.

Author
Emmanuel Bernard
Since
1.1

Method Summary

Modifier and TypeMethod and Description
public ValidationTarget[]
Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public ValidationTarget[] value()