@Documented @Target(value=TYPE) @Retention(value=RUNTIME) public @interface SupportedValidationTarget
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.
Modifier and Type | Required Element and Description |
---|---|
ValidationTarget[] |
value |
public abstract ValidationTarget[] value
Comments to: bean-validation-dev@eclipse.org.
Copyright © 2019 Eclipse Foundation.
Use is subject to EFSL; this spec is based on material that is licensed under the Apache License, version 2.0.