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.
|
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
null elements are considered valid. |
interface |
Future
The annotated element must be a date 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 |
NotNull
The annotated element must not be
null . |
interface |
Null
The annotated element must be
null . |
interface |
Past
The annotated element must be a date in the past.
|
interface |
Pattern
The annotated
CharSequence must match the specified regular expression. |
interface |
Size
The annotated element size must be between the specified boundaries (included).
|
Modifier and Type | Class and Description |
---|---|
interface |
CreditCardNumber
The annotated element has to represent a valid
credit card number.
|
interface |
EAN
Checks that the annotated character sequence is a valid
EAN 13 number.
|
interface |
Email
The string has to be a well-formed email address.
|
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
Validate that the annotated string is not
null or empty. |
interface |
NotEmpty
Asserts that the annotated string, collection, map or array is not
null or empty. |
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 |
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).
|
Copyright © 2017 JBoss by Red Hat. All rights reserved.