Top Description Annotations Enums
[default module]

Package org.hibernate.validator.constraints


Hibernate Validator specific constraints.

This package is part of the public Hibernate Validator API.

Annotation Summary

Modifier and TypeAnnotation and Description
public @interface
CodePointLength

Validate that the code point length of a character sequence is between min and max included.

public @interface
ConstraintComposition

Boolean operator that is applied to all constraints of a composing constraint annotation.

public @interface
CreditCardNumber

The annotated element has to represent a valid credit card number.

public @interface
Currency

The MonetaryAmount has to be in the right CurrencyUnit.

public @interface
EAN

Checks that the annotated character sequence is a valid EAN 13 number.

public @interface
Email

Deprecated use the standard jakarta.validation.constraints.Email constraint instead
The string has to be a well-formed email address.
public @interface
ISBN

Checks that the annotated character sequence is a valid ISBN.

public @interface
Length

Validate that the string is between min and max included.

public @interface
LuhnCheck

Luhn algorithm check constraint.

public @interface
Mod10Check

@Modulo 10 check constraint.

public @interface
Mod11Check

Modulo 11 check constraint.

public @interface
ModCheck

Deprecated As of release 5.1.0, replaced by Mod10Check and Mod11Check
Modulo check constraint.
public @interface
Normalized

Validate that a character sequence is of normalization form.

public @interface
NotBlank

Deprecated use the standard jakarta.validation.constraints.NotBlank constraint instead
Validate that the annotated string is not null or empty.
public @interface
NotEmpty

Deprecated use the standard jakarta.validation.constraints.NotEmpty constraint instead
Asserts that the annotated string, collection, map or array is not null or empty.
public @interface
ParameterScriptAssert

A method-level constraint, that evaluates a script expression against the annotated method or constructor.

public @interface
Range

The annotated element has to be in the appropriate range.

public @interface
ScriptAssert

A class-level constraint, that evaluates a script expression against the annotated element.

public @interface
UniqueElements

Validates that every object in the provided Collection is unique, i.e. that we can't find 2 equal elements in the collection.

public @interface
URL

Validates the annotated string is an URL.

public @interface
UUID

Checks that the annotated character sequence is a valid UUID.

Enum Summary

Modifier and TypeEnum and Description
public enum
CompositionType

The Enum CompositionType which is used as argument to the annotation ConstraintComposition.