Uses of Class
jakarta.validation.Constraint
-
Packages that use Constraint Package Description jakarta.validation.constraints Contains all the Jakarta Bean Validation provided constraints also called built-in constraints.org.hibernate.validator.constraints Hibernate Validator specific constraints.org.hibernate.validator.constraints.br Hibernate Validator Brazilian constraints.org.hibernate.validator.constraints.pl Hibernate Validator Polish constraints.org.hibernate.validator.constraints.ru Hibernate Validator Russian constraints.org.hibernate.validator.constraints.time Hibernate ValidatorDurationconstraints. -
-
Uses of Constraint in jakarta.validation.constraints
Classes in jakarta.validation.constraints with annotations of type Constraint Modifier and Type Class Description interfaceAssertFalseThe annotated element must be false.interfaceAssertTrueThe annotated element must be true.interfaceDecimalMaxThe annotated element must be a number whose value must be lower or equal to the specified maximum.interfaceDecimalMinThe annotated element must be a number whose value must be higher or equal to the specified minimum.interfaceDigitsThe annotated element must be a number within accepted range.interfaceEmailThe string has to be a well-formed email address.interfaceFutureThe annotated element must be an instant, date or time in the future.interfaceFutureOrPresentThe annotated element must be an instant, date or time in the present or in the future.interfaceMaxThe annotated element must be a number whose value must be lower or equal to the specified maximum.interfaceMinThe annotated element must be a number whose value must be higher or equal to the specified minimum.interfaceNegativeThe annotated element must be a strictly negative number (i.e.interfaceNegativeOrZeroThe annotated element must be a negative number or 0.interfaceNotBlankThe annotated element must not benulland must contain at least one non-whitespace character.interfaceNotEmptyThe annotated element must not benullnor empty.interfaceNotNullThe annotated element must not benull.interfaceNullThe annotated element must benull.interfacePastThe annotated element must be an instant, date or time in the past.interfacePastOrPresentThe annotated element must be an instant, date or time in the past or in the present.interfacePatternThe annotatedCharSequencemust match the specified regular expression.interfacePositiveThe annotated element must be a strictly positive number (i.e.interfacePositiveOrZeroThe annotated element must be a positive number or 0.interfaceSizeThe annotated element size must be between the specified boundaries (included). -
Uses of Constraint in org.hibernate.validator.constraints
Classes in org.hibernate.validator.constraints with annotations of type Constraint Modifier and Type Class Description interfaceCodePointLengthValidate that the code point length of a character sequence is between min and max included.interfaceCreditCardNumberThe annotated element has to represent a valid credit card number.interfaceCurrencyTheMonetaryAmounthas to be in the rightCurrencyUnit.interfaceEANChecks that the annotated character sequence is a valid EAN 13 number.interfaceEmailDeprecated.use the standardEmailconstraint insteadinterfaceISBNChecks that the annotated character sequence is a valid ISBN.interfaceLengthValidate that the string is between min and max included.interfaceLuhnCheckLuhn algorithm check constraint.interfaceMod10Check@Modulo 10 check constraint.interfaceMod11CheckModulo 11 check constraint.interfaceModCheckDeprecated.As of release 5.1.0, replaced byMod10CheckandMod11CheckinterfaceNormalizedValidate that a character sequence is of normalization form.interfaceNotBlankDeprecated.use the standardNotBlankconstraint insteadinterfaceNotEmptyDeprecated.use the standardNotEmptyconstraint insteadinterfaceParameterScriptAssertA method-level constraint, that evaluates a script expression against the annotated method or constructor.interfaceRangeThe annotated element has to be in the appropriate range.interfaceScriptAssertA class-level constraint, that evaluates a script expression against the annotated element.interfaceUniqueElementsValidates that every object in the providedCollectionis unique, i.e.interfaceURLValidates the annotated string is an URL.interfaceUUIDChecks that the annotated character sequence is a valid UUID. -
Uses of Constraint in org.hibernate.validator.constraints.br
Classes in org.hibernate.validator.constraints.br with annotations of type Constraint Modifier and Type Class Description interfaceCNPJValidates a CNPJ (Cadastro de Pessoa Jurídica - Brazilian corporate tax payer registry number).interfaceCPFValidates a CPF (Cadastro de Pessoa Física - Brazilian individual taxpayer registry number).interfaceTituloEleitoralValidates a Título Eleitoral (Brazilian Voter ID card number). -
Uses of Constraint in org.hibernate.validator.constraints.pl
Classes in org.hibernate.validator.constraints.pl with annotations of type Constraint Modifier and Type Class Description interfaceNIPValidates that aCharSequenceis a NIP number (9-digit Polish VAT identification number).interfacePESELValidates that aCharSequenceis a PESEL (Polish national identification number).interfaceREGONValidates that aCharSequenceis a REGON number (9/14-digit Polish Taxpayer Identification Number). -
Uses of Constraint in org.hibernate.validator.constraints.ru
Classes in org.hibernate.validator.constraints.ru with annotations of type Constraint Modifier and Type Class Description interfaceINNChecks that the annotated character sequence is a valid russian taxpayer identification number (INN in russian transliteration). -
Uses of Constraint in org.hibernate.validator.constraints.time
Classes in org.hibernate.validator.constraints.time with annotations of type Constraint Modifier and Type Class Description interfaceDurationMaxThe annotatedDurationelement must be shorter than or equal to the one constructed as a sum ofDurationMax.nanos(),DurationMax.millis(),DurationMax.seconds(),DurationMax.minutes(),DurationMax.hours(),DurationMax.days().interfaceDurationMinThe annotatedDurationelement must be longer than or equal to the one constructed as a sum ofDurationMin.nanos(),DurationMin.millis(),DurationMin.seconds(),DurationMin.minutes(),DurationMin.hours(),DurationMin.days().
-