public abstract class ValidationAnnotationUtils extends Object
Constructor and Description |
---|
ValidationAnnotationUtils() |
Modifier and Type | Method and Description |
---|---|
static Object[] |
determineValidationHints(Annotation ann)
Determine any validation hints by the given annotation.
|
@Nullable public static Object[] determineValidationHints(Annotation ann)
This implementation checks for Spring's
Validated
,
@javax.validation.Valid
, and custom annotations whose
name starts with "Valid" which may optionally declare validation
hints through the "value" attribute.
ann
- the annotation (potentially a validation annotation)null
if this annotation does not trigger any validation