Package | Description |
---|---|
javax.validation.constraints | |
org.hibernate.validator.constraints |
Hibernate Validator specific 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 specificed minimum.
|
interface |
Digits
The annotated element must be a number within accepted range
Supported types are:
BigDecimal
BigInteger
String
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 String must match the following 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 |
Email
The string has to be a well-formed email address.
|
interface |
Length
Validate that the string is between min and max included.
|
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 |
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
Validate that the string is a valid URL.
|
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.