Package | Description |
---|---|
javax.validation.constraints |
Contains all the 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.time |
Hibernate Validator
Duration constraints. |
Modifier and Type | Class and Description |
---|---|
interface |
AssertFalse
The annotated element must be false.
|
interface |
AssertTrue
The annotated element must be true.
|
interface |
DecimalMax
The annotated element must be a number whose value must be lower or
equal to the specified maximum.
|
interface |
DecimalMin
The annotated element must be a number whose value must be higher or
equal to the specified minimum.
|
interface |
Digits
The annotated element must be a number within accepted range
Supported types are:
BigDecimal
BigInteger
CharSequence
byte , short , int , long , and their respective
wrapper types
|
interface |
Email
The string has to be a well-formed email address.
|
interface |
Future
The annotated element must be an instant, date or time in the future.
|
interface |
FutureOrPresent
The annotated element must be an instant, date or time in the present or in the future.
|
interface |
Max
The annotated element must be a number whose value must be lower or
equal to the specified maximum.
|
interface |
Min
The annotated element must be a number whose value must be higher or
equal to the specified minimum.
|
interface |
Negative
The annotated element must be a strictly negative number (i.e.
|
interface |
NegativeOrZero
The annotated element must be a negative number or 0.
|
interface |
NotBlank
The annotated element must not be
null and must contain at least one
non-whitespace character. |
interface |
NotEmpty
The annotated element must not be
null nor empty. |
interface |
NotNull
The annotated element must not be
null . |
interface |
Null
The annotated element must be
null . |
interface |
Past
The annotated element must be an instant, date or time in the past.
|
interface |
PastOrPresent
The annotated element must be an instant, date or time in the past or in the present.
|
interface |
Pattern
The annotated
CharSequence must match the specified regular expression. |
interface |
Positive
The annotated element must be a strictly positive number (i.e.
|
interface |
PositiveOrZero
The annotated element must be a positive number or 0.
|
interface |
Size
The annotated element size must be between the specified boundaries (included).
|
Modifier and Type | Class and Description |
---|---|
interface |
CodePointLength
Validate that the code point length of a character sequence is between min and max included.
|
interface |
CreditCardNumber
The annotated element has to represent a valid
credit card number.
|
interface |
Currency
The
MonetaryAmount has to be in the right CurrencyUnit . |
interface |
EAN
Checks that the annotated character sequence is a valid
EAN 13 number.
|
interface |
Email
Deprecated.
use the standard
Email constraint instead |
interface |
ISBN
Checks that the annotated character sequence is a valid
ISBN.
|
interface |
Length
Validate that the string is between min and max included.
|
interface |
LuhnCheck
Luhn algorithm check constraint.
|
interface |
Mod10Check
@Modulo 10 check constraint.
|
interface |
Mod11Check
Modulo 11 check constraint.
|
interface |
ModCheck
Deprecated.
As of release 5.1.0, replaced by
Mod10Check and Mod11Check |
interface |
NotBlank
Deprecated.
use the standard
NotBlank constraint instead |
interface |
NotEmpty
Deprecated.
use the standard
NotEmpty constraint instead |
interface |
ParameterScriptAssert
A method-level constraint, that evaluates a script expression against the
annotated method or constructor.
|
interface |
Range
The annotated element has to be in the appropriate range.
|
interface |
SafeHtml
Validate a rich text value provided by the user to ensure that it contains no malicious code, such as embedded
<script> elements.
|
interface |
ScriptAssert
A class-level constraint, that evaluates a script expression against the
annotated element.
|
interface |
UniqueElements
Validates that every object in the provided
Collection is unique, i.e. |
interface |
URL
Validates the annotated string is an URL.
|
Modifier and Type | Class and Description |
---|---|
interface |
CNPJ
Validates a CNPJ (Cadastro de Pessoa Jurídica - Brazilian corporate tax payer registry number).
|
interface |
CPF
Validates a CPF (Cadastro de Pessoa Física - Brazilian individual taxpayer registry number).
|
interface |
TituloEleitoral
Validates a Título Eleitoral (Brazilian Voter ID card number).
|
Modifier and Type | Class and Description |
---|---|
interface |
NIP
Validates that a
CharSequence is a NIP number (9-digit Polish VAT identification number). |
interface |
PESEL
Validates that a
CharSequence is a PESEL (Polish national identification number). |
interface |
REGON
Validates that a
CharSequence is a REGON number (9/14-digit Polish Taxpayer Identification Number). |
Modifier and Type | Class and Description |
---|---|
interface |
DurationMax
The annotated
Duration element must be shorter than or equal to the one constructed as a sum of
DurationMax.nanos() , DurationMax.millis() , DurationMax.seconds() ,
DurationMax.minutes() , DurationMax.hours() , DurationMax.days() . |
interface |
DurationMin
The annotated
Duration element must be longer than or equal to the one constructed as a sum of
DurationMin.nanos() , DurationMin.millis() , DurationMin.seconds() ,
DurationMin.minutes() , DurationMin.hours() , DurationMin.days() . |
Copyright © 2019 JBoss by Red Hat. All rights reserved.