Package | Description |
---|---|
javax.validation | |
org.hibernate.validator.internal.constraintvalidators |
Implementations of the Bean Validation built-in as well as
Hibernate Validator specific constraints.
|
org.hibernate.validator.internal.engine |
Implementations for the core interfaces of JSR-303.
|
Modifier and Type | Method and Description |
---|---|
ConstraintValidatorContext |
ConstraintValidatorContext.ConstraintViolationBuilder.addConstraintViolation()
Add the new
ConstraintViolation to be generated if the
constraint validator marks the value as invalid. |
ConstraintValidatorContext |
ConstraintValidatorContext.ConstraintViolationBuilder.NodeBuilderDefinedContext.addConstraintViolation()
Add the new
ConstraintViolation to be generated if the
constraint validator marks the value as invalid. |
ConstraintValidatorContext |
ConstraintValidatorContext.ConstraintViolationBuilder.NodeBuilderCustomizableContext.addConstraintViolation()
Add the new
ConstraintViolation to be generated if the
constraint validator mark the value as invalid. |
ConstraintValidatorContext |
ConstraintValidatorContext.ConstraintViolationBuilder.NodeContextBuilder.addConstraintViolation()
Add the new
ConstraintViolation to be generated if the
constraint validator mark the value as invalid. |
Modifier and Type | Method and Description |
---|---|
boolean |
ConstraintValidator.isValid(T value,
ConstraintValidatorContext context)
Implement the validation logic.
|
Modifier and Type | Method and Description |
---|---|
boolean |
SizeValidatorForArraysOfBoolean.isValid(boolean[] array,
ConstraintValidatorContext constraintValidatorContext)
Checks the number of entries in an array.
|
boolean |
AssertTrueValidator.isValid(Boolean bool,
ConstraintValidatorContext constraintValidatorContext) |
boolean |
AssertFalseValidator.isValid(Boolean bool,
ConstraintValidatorContext constraintValidatorContext) |
boolean |
SizeValidatorForArraysOfByte.isValid(byte[] array,
ConstraintValidatorContext constraintValidatorContext)
Checks the number of entries in an array.
|
boolean |
PastValidatorForCalendar.isValid(Calendar cal,
ConstraintValidatorContext constraintValidatorContext) |
boolean |
FutureValidatorForCalendar.isValid(Calendar cal,
ConstraintValidatorContext constraintValidatorContext) |
boolean |
SizeValidatorForArraysOfChar.isValid(char[] array,
ConstraintValidatorContext constraintValidatorContext)
Checks the number of entries in an array.
|
boolean |
URLValidator.isValid(CharSequence value,
ConstraintValidatorContext constraintValidatorContext) |
boolean |
SizeValidatorForCharSequence.isValid(CharSequence charSequence,
ConstraintValidatorContext constraintValidatorContext)
Checks the length of the specified character sequence (e.g.
|
boolean |
SafeHtmlValidator.isValid(CharSequence value,
ConstraintValidatorContext context) |
boolean |
PatternValidator.isValid(CharSequence value,
ConstraintValidatorContext constraintValidatorContext) |
boolean |
NotBlankValidator.isValid(CharSequence charSequence,
ConstraintValidatorContext constraintValidatorContext)
Checks that the trimmed string is not empty.
|
boolean |
ModCheckValidator.isValid(CharSequence value,
ConstraintValidatorContext context) |
boolean |
MinValidatorForCharSequence.isValid(CharSequence value,
ConstraintValidatorContext constraintValidatorContext) |
boolean |
MaxValidatorForCharSequence.isValid(CharSequence value,
ConstraintValidatorContext constraintValidatorContext) |
boolean |
LengthValidator.isValid(CharSequence value,
ConstraintValidatorContext constraintValidatorContext) |
boolean |
EmailValidator.isValid(CharSequence value,
ConstraintValidatorContext context) |
boolean |
DigitsValidatorForCharSequence.isValid(CharSequence charSequence,
ConstraintValidatorContext constraintValidatorContext) |
boolean |
DecimalMinValidatorForCharSequence.isValid(CharSequence value,
ConstraintValidatorContext constraintValidatorContext) |
boolean |
DecimalMaxValidatorForCharSequence.isValid(CharSequence value,
ConstraintValidatorContext constraintValidatorContext) |
boolean |
SizeValidatorForCollection.isValid(Collection<?> collection,
ConstraintValidatorContext constraintValidatorContext)
Checks the number of entries in a map.
|
boolean |
PastValidatorForDate.isValid(Date date,
ConstraintValidatorContext constraintValidatorContext) |
boolean |
FutureValidatorForDate.isValid(Date date,
ConstraintValidatorContext constraintValidatorContext) |
boolean |
SizeValidatorForArraysOfDouble.isValid(double[] array,
ConstraintValidatorContext constraintValidatorContext)
Checks the number of entries in an array.
|
boolean |
SizeValidatorForArraysOfFloat.isValid(float[] array,
ConstraintValidatorContext constraintValidatorContext)
Checks the number of entries in an array.
|
boolean |
SizeValidatorForArraysOfInt.isValid(int[] array,
ConstraintValidatorContext constraintValidatorContext)
Checks the number of entries in an array.
|
boolean |
SizeValidatorForArraysOfLong.isValid(long[] array,
ConstraintValidatorContext constraintValidatorContext)
Checks the number of entries in an array.
|
boolean |
SizeValidatorForMap.isValid(Map<?,?> map,
ConstraintValidatorContext constraintValidatorContext)
Checks the number of entries in a map.
|
boolean |
MinValidatorForNumber.isValid(Number value,
ConstraintValidatorContext constraintValidatorContext) |
boolean |
MaxValidatorForNumber.isValid(Number value,
ConstraintValidatorContext constraintValidatorContext) |
boolean |
DigitsValidatorForNumber.isValid(Number num,
ConstraintValidatorContext constraintValidatorContext) |
boolean |
DecimalMinValidatorForNumber.isValid(Number value,
ConstraintValidatorContext constraintValidatorContext) |
boolean |
DecimalMaxValidatorForNumber.isValid(Number value,
ConstraintValidatorContext constraintValidatorContext) |
boolean |
SizeValidatorForArray.isValid(Object[] array,
ConstraintValidatorContext constraintValidatorContext)
Checks the number of entries in an array.
|
boolean |
ScriptAssertValidator.isValid(Object value,
ConstraintValidatorContext constraintValidatorContext) |
boolean |
NullValidator.isValid(Object object,
ConstraintValidatorContext constraintValidatorContext) |
boolean |
NotNullValidator.isValid(Object object,
ConstraintValidatorContext constraintValidatorContext) |
boolean |
PastValidatorForReadableInstant.isValid(org.joda.time.ReadableInstant value,
ConstraintValidatorContext context) |
boolean |
FutureValidatorForReadableInstant.isValid(org.joda.time.ReadableInstant value,
ConstraintValidatorContext context) |
boolean |
PastValidatorForReadablePartial.isValid(org.joda.time.ReadablePartial value,
ConstraintValidatorContext context) |
boolean |
FutureValidatorForReadablePartial.isValid(org.joda.time.ReadablePartial value,
ConstraintValidatorContext context) |
boolean |
SizeValidatorForArraysOfShort.isValid(short[] array,
ConstraintValidatorContext constraintValidatorContext)
Checks the number of entries in an array.
|
Modifier and Type | Class and Description |
---|---|
class |
ConstraintValidatorContextImpl |
Copyright © 2018 JBoss by Red Hat. All rights reserved.