Package org.hibernate.validator.constraints
package org.hibernate.validator.constraints
Hibernate Validator specific constraints.
This package is part of the public Hibernate Validator API.
-
ClassDescriptionValidate that the code point length of a character sequence is between min and max included.Defines several
@CodePointLengthannotations on the same element.Strategy for normalization.The EnumCompositionTypewhich is used as argument to the annotationConstraintComposition.Boolean operator that is applied to all constraints of a composing constraint annotation.The annotated element has to represent a valid credit card number.Defines several@CreditCardNumberannotations on the same element.TheMonetaryAmounthas to be in the rightCurrencyUnit.Defines several@Currencyannotations on the same element.Checks that the annotated character sequence is a valid EAN 13 number.Defines several@EANannotations on the same element.Deprecated.Defines several@Emailannotations on the same element.Checks that the annotated character sequence is a valid ISBN.Defines several@ISBNannotations on the same element.Defines the ISBN length.Validate that the string is between min and max included.Defines several@Lengthannotations on the same element.Luhn algorithm check constraint.Defines several@LuhnCheckannotations on the same element.@Modulo 10 check constraint.Defines several@Mod10Checkannotations on the same element.Modulo 11 check constraint.Defines several@Mod11Checkannotations on the same element.Deprecated.As of release 5.1.0, replaced byMod10CheckandMod11CheckDefines several@ModCheckannotations on the same element.Validate that a character sequence is of normalization form.Defines several@Normalizedannotations on the same element.Deprecated.use the standardNotBlankconstraint insteadDefines several@NotBlankannotations on the same element.Deprecated.use the standardNotEmptyconstraint insteadDefines several@NotEmptyannotations on the same element.A method-level constraint, that evaluates a script expression against the annotated method or constructor.Defines severalParameterScriptAssertannotations on the same executable.The annotated element has to be in the appropriate range.Defines several@Rangeannotations on the same element.A class-level constraint, that evaluates a script expression against the annotated element.Defines several@ScriptAssertannotations on the same element.Validates that every object in the providedCollectionis unique, i.e.Defines several@UniqueElementsannotations on the same element.Validates the annotated string is an URL.Defines several@URLannotations on the same element.Checks that the annotated character sequence is a valid UUID.Required letter case for hex charactersDefines several@UUIDannotations on the same element.
Emailconstraint instead