Package net.croz.nrich.validation.api.constraint
package net.croz.nrich.validation.api.constraint
-
Annotation InterfacesClassDescriptionAdds support for disabling constraints.Defines several
DisableConstraintsannotations on the same element.The annotated element must be in the specified list of values.Defines severalInListannotations on the same element.The annotated element must be before end of the dayDefines severalLastTimestampInDay.Listannotations on the same element.The annotated element size in bytes must be less than specified maximum.Defines severalMaxSizeInBytes.Listannotations on the same element.The annotated element must be after specified minimum dateDefines severalMinDate.Listannotations on the same element.Annotated element property must not be null when condition is satisfied.Defines severalNotNullWhenannotations on the same element.Annotated element property must not be null when condition is satisfied.Defines severalNullWhenannotations on the same element.The annotated element is validated against a provided SpEL expressionDefines severalSpelExpressionannotations on the same element.Annotated element (allowed types are MultipartFile and FilePart) must match specified content type list, allowed extension list and/or allowed regex.Defines severalValidFileannotations on the same element.Annotated element (allowed types are MultipartFile and FilePart) must match property values resolved for content type list, allowed extension list and/or allowed regex.Defines severalValidFileResolvableannotations on the same element.Annotated element must be a valida OIB (Personal Identification Number).Defines severalValidOibannotations on the same element.Annotated element from property must be less than (or equal to if inclusive is true) to property.Defines severalValidRangeannotations on the same element.At least one group of annotated element must contain all properties that are not null.Defines severalValidSearchPropertiesannotations on the same element.Holder for a list of property names.