Package org.hibernate.validator.constraints
Hibernate Validator specific constraints.
This package is part of the public Hibernate Validator API.
-
Enum Summary Enum Description CodePointLength.NormalizationStrategy Strategy for normalization.CompositionType The EnumCompositionTypewhich is used as argument to the annotationConstraintComposition.EAN.Type ISBN.Type Defines the ISBN length.Mod11Check.ProcessingDirection ModCheck.ModType UUID.LetterCase Required letter case for hex characters -
Annotation Types Summary Annotation Type Description CodePointLength Validate that the code point length of a character sequence is between min and max included.CodePointLength.List Defines several@CodePointLengthannotations on the same element.ConstraintComposition Boolean operator that is applied to all constraints of a composing constraint annotation.CreditCardNumber The annotated element has to represent a valid credit card number.CreditCardNumber.List Defines several@CreditCardNumberannotations on the same element.Currency TheMonetaryAmounthas to be in the rightCurrencyUnit.Currency.List Defines several@Currencyannotations on the same element.EAN Checks that the annotated character sequence is a valid EAN 13 number.EAN.List Defines several@EANannotations on the same element.Email Deprecated. use the standardEmailconstraint insteadEmail.List Defines several@Emailannotations on the same element.ISBN Checks that the annotated character sequence is a valid ISBN.ISBN.List Defines several@ISBNannotations on the same element.Length Validate that the string is between min and max included.Length.List Defines several@Lengthannotations on the same element.LuhnCheck Luhn algorithm check constraint.LuhnCheck.List Defines several@LuhnCheckannotations on the same element.Mod10Check @Modulo 10 check constraint.Mod10Check.List Defines several@Mod10Checkannotations on the same element.Mod11Check Modulo 11 check constraint.Mod11Check.List Defines several@Mod11Checkannotations on the same element.ModCheck Deprecated. As of release 5.1.0, replaced byMod10CheckandMod11CheckModCheck.List Defines several@ModCheckannotations on the same element.Normalized Validate that a character sequence is of normalization form.Normalized.List Defines several@Normalizedannotations on the same element.NotBlank Deprecated. use the standardNotBlankconstraint insteadNotBlank.List Defines several@NotBlankannotations on the same element.NotEmpty Deprecated. use the standardNotEmptyconstraint insteadNotEmpty.List Defines several@NotEmptyannotations on the same element.ParameterScriptAssert A method-level constraint, that evaluates a script expression against the annotated method or constructor.ParameterScriptAssert.List Defines severalParameterScriptAssertannotations on the same executable.Range The annotated element has to be in the appropriate range.Range.List Defines several@Rangeannotations on the same element.ScriptAssert A class-level constraint, that evaluates a script expression against the annotated element.ScriptAssert.List Defines several@ScriptAssertannotations on the same element.UniqueElements Validates that every object in the providedCollectionis unique, i.e.UniqueElements.List Defines several@UniqueElementsannotations on the same element.URL Validates the annotated string is an URL.URL.List Defines several@URLannotations on the same element.UUID Checks that the annotated character sequence is a valid UUID.UUID.List Defines several@UUIDannotations on the same element.