Package | Description |
---|---|
javax.validation |
Top level package of the Bean Validation API.
|
javax.validation.metadata |
Package containing all objects specifically used and returned by the
metadata API.
|
org.hibernate.validator.cfg.context |
Contains facet and creational context interfaces forming the API
for programmatic constraint definition.
|
org.hibernate.validator.constraintvalidators | |
org.hibernate.validator.internal.cdi |
Classes for enabling Bean Validation CDI integration.
|
org.hibernate.validator.internal.constraintvalidators.bv |
Implementations of the Bean Validation built-in constraints.
|
org.hibernate.validator.internal.constraintvalidators.bv.future |
Constraint validator implementations of the Bean Validation
Future constraint. |
org.hibernate.validator.internal.constraintvalidators.bv.past |
Constraint validator implementations of the Bean Validation
Past constraint. |
org.hibernate.validator.internal.constraintvalidators.bv.size |
Implementations of the Bean Validation
Size constraint. |
org.hibernate.validator.internal.constraintvalidators.hv |
Implementations of Hibernate Validator specific constraints.
|
org.hibernate.validator.internal.constraintvalidators.hv.br | |
org.hibernate.validator.internal.engine.constraintdefinition | |
org.hibernate.validator.internal.engine.constraintvalidation |
Classes dealing with the representation of constraints and the management/instantitation of constraint
validators.
|
org.hibernate.validator.internal.metadata.core |
Core classes of the internal model used for representing constraints and related metadata.
|
org.hibernate.validator.internal.metadata.descriptor |
Implementation of the Bean Validation meta data API.
|
org.hibernate.validator.internal.util |
Independent helper classes.
|
org.hibernate.validator.internal.util.privilegedactions |
Implementations of PrivilegedAction in order to execute reflection operations in a security manager.
|
Modifier and Type | Method and Description |
---|---|
<T extends ConstraintValidator<?,?>> |
ConstraintValidatorFactory.getInstance(Class<T> key) |
Modifier and Type | Method and Description |
---|---|
void |
ConstraintValidatorFactory.releaseInstance(ConstraintValidator<?,?> instance)
Signals
ConstraintValidatorFactory that the instance is no longer
being used by the Bean Validation provider. |
Modifier and Type | Method and Description |
---|---|
List<Class<? extends ConstraintValidator<T,?>>> |
ConstraintDescriptor.getConstraintValidatorClasses()
List of the constraint validation implementation classes.
|
Modifier and Type | Method and Description |
---|---|
ConstraintDefinitionContext<A> |
ConstraintDefinitionContext.validatedBy(Class<? extends ConstraintValidator<A,?>> validator)
Adds a new validator to validate this constraint.
|
Modifier and Type | Class and Description |
---|---|
class |
RegexpURLValidator
Validate that the character sequence (e.g.
|
Modifier and Type | Method and Description |
---|---|
<T extends ConstraintValidator<?,?>> |
InjectingConstraintValidatorFactory.getInstance(Class<T> key) |
Modifier and Type | Method and Description |
---|---|
void |
InjectingConstraintValidatorFactory.releaseInstance(ConstraintValidator<?,?> instance) |
Modifier and Type | Class and Description |
---|---|
class |
AssertFalseValidator
Validates that the value passed is false
|
class |
AssertTrueValidator
Validates that the value passed is true
|
class |
DecimalMaxValidatorForCharSequence
Check that the character sequence (e.g.
|
class |
DecimalMaxValidatorForNumber
Check that the number being validated is less than or equal to the maximum
value specified.
|
class |
DecimalMinValidatorForCharSequence |
class |
DecimalMinValidatorForNumber
Check that the number being validated is less than or equal to the maximum
value specified.
|
class |
DigitsValidatorForCharSequence
Validates that the character sequence (e.g.
|
class |
DigitsValidatorForNumber
Validates that the
Number being validates matches the pattern
defined in the constraint. |
class |
MaxValidatorForCharSequence
Check that the character sequence (e.g.
|
class |
MaxValidatorForNumber
Check that the number being validated is less than or equal to the maximum
value specified.
|
class |
MinValidatorForCharSequence
Check that the character sequence (e.g.
|
class |
MinValidatorForNumber
Check that the number being validated is greater than or equal to the minimum
value specified.
|
class |
NotNullValidator
Validate that the object is not
null . |
class |
NullValidator
Validate that the object is
null |
class |
PatternValidator |
Modifier and Type | Class and Description |
---|---|
class |
FutureValidatorForCalendar
Check that the
java.util.Calendar passed to be validated is in
the future. |
class |
FutureValidatorForChronoZonedDateTime
Check that the
java.time.chrono.ChronoZonedDateTime passed is in the future. |
class |
FutureValidatorForDate
Check that the
java.util.Date passed to be validated is in the
future. |
class |
FutureValidatorForInstant
Check that the
java.time.Instant passed is in the future. |
class |
FutureValidatorForOffsetDateTime
Check that the
java.time.OffsetDateTime passed is in the future. |
class |
FutureValidatorForReadableInstant
Check if Joda Time type who implements
import org.joda.time.ReadableInstant is in the future. |
class |
FutureValidatorForReadablePartial
Check if Joda Time type who implements
org.joda.time.ReadablePartial is in the future. |
Modifier and Type | Class and Description |
---|---|
class |
PastValidatorForCalendar
Check that the
java.util.Calendar passed to be validated is in the
past. |
class |
PastValidatorForChronoZonedDateTime
Check that the
java.time.chrono.ChronoZonedDateTime passed is in the past. |
class |
PastValidatorForDate
Check that the
java.util.Date passed to be validated is in the
past. |
class |
PastValidatorForInstant
Check that the
java.time.Instant passed is in the past. |
class |
PastValidatorForOffsetDateTime
Check that the
java.time.OffsetDateTime passed is in the past. |
class |
PastValidatorForReadableInstant
Check if Joda Time type who implements
org.joda.time.ReadableInstant is in the past. |
class |
PastValidatorForReadablePartial
Check if Joda Time type who implements
org.joda.time.ReadablePartial is in the past. |
Modifier and Type | Class and Description |
---|---|
class |
SizeValidatorForArray
Check that the length of an array is between min and max
|
class |
SizeValidatorForArraysOfBoolean |
class |
SizeValidatorForArraysOfByte |
class |
SizeValidatorForArraysOfChar |
class |
SizeValidatorForArraysOfDouble |
class |
SizeValidatorForArraysOfFloat |
class |
SizeValidatorForArraysOfInt |
class |
SizeValidatorForArraysOfLong |
class |
SizeValidatorForArraysOfShort |
class |
SizeValidatorForCharSequence
Check that the length of a character sequence is between min and max.
|
class |
SizeValidatorForCollection
Check that a collection's size is between min and max.
|
class |
SizeValidatorForMap
Check that a string's length is between min and max.
|
Modifier and Type | Class and Description |
---|---|
class |
EANValidator
Checks that a given character sequence (e.g.
|
class |
EmailValidator
Checks that a given character sequence (e.g.
|
class |
LengthValidator
Check that the character sequence length is between min and max.
|
class |
LuhnCheckValidator
Luhn algorithm checksum validator
http://en.wikipedia.org/wiki/Luhn_algorithm
http://en.wikipedia.org/wiki/Check_digit
|
class |
Mod10CheckValidator
Mod10 (Luhn algorithm implementation) Check validator
http://en.wikipedia.org/wiki/Luhn_algorithm
http://en.wikipedia.org/wiki/Check_digit
|
class |
Mod11CheckValidator
Mod11 Check Digit validator
http://en.wikipedia.org/wiki/Check_digit
|
class |
ModCheckValidator
Deprecated.
As of release 5.1.0, replaced by
Mod10CheckValidator and Mod11CheckValidator |
class |
NotBlankValidator
Check that a character sequence's (e.g.
|
class |
ParameterScriptAssertValidator
Validator for the
ParameterScriptAssert constraint annotation. |
class |
SafeHtmlValidator
Validate that the string does not contain malicious code.
|
class |
ScriptAssertValidator
Validator for the
ScriptAssert constraint annotation. |
class |
URLValidator
Validate that the character sequence (e.g.
|
Modifier and Type | Class and Description |
---|---|
class |
CNPJValidator |
class |
CPFValidator |
Modifier and Type | Method and Description |
---|---|
List<Class<? extends ConstraintValidator<A,?>>> |
ConstraintDefinitionContribution.getConstraintValidators()
Returns a list of constraint validator types for the constraint type of this instance.
|
Constructor and Description |
---|
ConstraintDefinitionContribution(Class<A> constraintType,
List<Class<? extends ConstraintValidator<A,?>>> constraintValidators,
boolean includeExisting) |
Modifier and Type | Method and Description |
---|---|
<T extends ConstraintValidator<?,?>> |
ConstraintValidatorFactoryImpl.getInstance(Class<T> key) |
Modifier and Type | Method and Description |
---|---|
<V,A extends Annotation> |
ConstraintValidatorManager.getInitializedValidator(Type validatedValueType,
ConstraintDescriptorImpl<A> descriptor,
ConstraintValidatorFactory constraintFactory) |
Modifier and Type | Method and Description |
---|---|
void |
ConstraintValidatorFactoryImpl.releaseInstance(ConstraintValidator<?,?> instance) |
Modifier and Type | Method and Description |
---|---|
<A extends Annotation> |
ConstraintHelper.findValidatorClasses(Class<A> annotationType,
ValidationTarget validationTarget)
Returns those validator classes for the given constraint annotation
matching the given target.
|
<A extends Annotation> |
ConstraintHelper.getAllValidatorClasses(Class<A> annotationType)
Returns the constraint validator classes for the given constraint
annotation type, as retrieved from
Constraint.validatedBy() ,
internally registered validators for built-in constraints
XML configuration and
programmatically registered validators (see
ConstraintMapping.constraintDefinition(Class) ).
The result is cached internally. |
Modifier and Type | Method and Description |
---|---|
<A extends Annotation> |
ConstraintHelper.putValidatorClasses(Class<A> annotationType,
List<Class<? extends ConstraintValidator<A,?>>> definitionClasses,
boolean keepExistingClasses)
Registers the given validator classes with the given constraint
annotation type.
|
Modifier and Type | Method and Description |
---|---|
Map<Type,Class<? extends ConstraintValidator<T,?>>> |
ConstraintDescriptorImpl.getAvailableValidatorTypes() |
List<Class<? extends ConstraintValidator<T,?>>> |
ConstraintDescriptorImpl.getConstraintValidatorClasses() |
List<Class<? extends ConstraintValidator<T,?>>> |
ConstraintDescriptorImpl.getMatchingConstraintValidatorClasses()
Return all constraint validators classes (either generic or cross-parameter) which are registered for the
constraint of this despriptor.
|
Modifier and Type | Method and Description |
---|---|
static <A extends Annotation> |
TypeHelper.getValidatorsTypes(Class<A> annotationType,
List<Class<? extends ConstraintValidator<A,?>>> validators) |
Modifier and Type | Method and Description |
---|---|
static <A extends Annotation> |
TypeHelper.getValidatorsTypes(Class<A> annotationType,
List<Class<? extends ConstraintValidator<A,?>>> validators) |
Modifier and Type | Method and Description |
---|---|
static List<ConstraintValidator<?,?>> |
GetConstraintValidatorList.getConstraintValidatorList() |
List<ConstraintValidator<?,?>> |
GetConstraintValidatorList.run() |
Copyright © 2017 JBoss by Red Hat. All rights reserved.