Modifier and Type | Method and Description |
---|---|
ConstraintValidatorContext |
ConstraintValidatorContext.ConstraintViolationBuilder.addConstraintViolation()
Adds the new
ConstraintViolation to be generated if the
constraint validator marks the value as invalid. |
ConstraintValidatorContext |
ConstraintValidatorContext.ConstraintViolationBuilder.LeafNodeBuilderDefinedContext.addConstraintViolation()
Adds the new
ConstraintViolation to be generated if the
constraint validator marks the value as invalid. |
ConstraintValidatorContext |
ConstraintValidatorContext.ConstraintViolationBuilder.LeafNodeBuilderCustomizableContext.addConstraintViolation()
Adds the new
ConstraintViolation to be generated if the
constraint validator mark the value as invalid. |
ConstraintValidatorContext |
ConstraintValidatorContext.ConstraintViolationBuilder.LeafNodeContextBuilder.addConstraintViolation()
Adds the new
ConstraintViolation to be generated if the
constraint validator mark the value as invalid. |
ConstraintValidatorContext |
ConstraintValidatorContext.ConstraintViolationBuilder.NodeBuilderDefinedContext.addConstraintViolation()
Adds the new
ConstraintViolation to be generated if the
constraint validator marks the value as invalid. |
ConstraintValidatorContext |
ConstraintValidatorContext.ConstraintViolationBuilder.NodeBuilderCustomizableContext.addConstraintViolation()
Adds the new
ConstraintViolation to be generated if the
constraint validator mark the value as invalid. |
ConstraintValidatorContext |
ConstraintValidatorContext.ConstraintViolationBuilder.NodeContextBuilder.addConstraintViolation()
Adds the new
ConstraintViolation to be generated if the
constraint validator mark the value as invalid. |
ConstraintValidatorContext |
ConstraintValidatorContext.ConstraintViolationBuilder.ContainerElementNodeBuilderDefinedContext.addConstraintViolation()
Adds the new
ConstraintViolation to be generated if the
constraint validator marks the value as invalid. |
ConstraintValidatorContext |
ConstraintValidatorContext.ConstraintViolationBuilder.ContainerElementNodeBuilderCustomizableContext.addConstraintViolation()
Adds the new
ConstraintViolation to be generated if the
constraint validator mark the value as invalid. |
ConstraintValidatorContext |
ConstraintValidatorContext.ConstraintViolationBuilder.ContainerElementNodeContextBuilder.addConstraintViolation()
Adds 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)
Implements the validation logic.
|
Modifier and Type | Interface and Description |
---|---|
interface |
HibernateConstraintValidatorContext
A custom
ConstraintValidatorContext which allows to set additional message parameters for
interpolation. |
Modifier and Type | Method and Description |
---|---|
boolean |
RegexpURLValidator.isValid(CharSequence value,
ConstraintValidatorContext constraintValidatorContext) |
Modifier and Type | Method and Description |
---|---|
boolean |
AbstractEmailValidator.isValid(CharSequence value,
ConstraintValidatorContext context) |
Modifier and Type | Method and Description |
---|---|
boolean |
AssertTrueValidator.isValid(Boolean bool,
ConstraintValidatorContext constraintValidatorContext) |
boolean |
AssertFalseValidator.isValid(Boolean bool,
ConstraintValidatorContext constraintValidatorContext) |
boolean |
PatternValidator.isValid(CharSequence value,
ConstraintValidatorContext constraintValidatorContext) |
boolean |
NotBlankValidator.isValid(CharSequence charSequence,
ConstraintValidatorContext constraintValidatorContext)
Checks that the character sequence is not
null nor empty after removing any leading or trailing
whitespace. |
boolean |
MinValidatorForCharSequence.isValid(CharSequence value,
ConstraintValidatorContext constraintValidatorContext) |
boolean |
MaxValidatorForCharSequence.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 |
DigitsValidatorForNumber.isValid(Number num,
ConstraintValidatorContext constraintValidatorContext) |
boolean |
NullValidator.isValid(Object object,
ConstraintValidatorContext constraintValidatorContext) |
boolean |
NotNullValidator.isValid(Object object,
ConstraintValidatorContext constraintValidatorContext) |
Modifier and Type | Method and Description |
---|---|
boolean |
PositiveValidatorForMonetaryAmount.isValid(MonetaryAmount value,
ConstraintValidatorContext context) |
boolean |
PositiveOrZeroValidatorForMonetaryAmount.isValid(MonetaryAmount value,
ConstraintValidatorContext context) |
boolean |
NegativeValidatorForMonetaryAmount.isValid(MonetaryAmount value,
ConstraintValidatorContext context) |
boolean |
NegativeOrZeroValidatorForMonetaryAmount.isValid(MonetaryAmount value,
ConstraintValidatorContext context) |
boolean |
MinValidatorForMonetaryAmount.isValid(MonetaryAmount value,
ConstraintValidatorContext context) |
boolean |
MaxValidatorForMonetaryAmount.isValid(MonetaryAmount value,
ConstraintValidatorContext context) |
boolean |
DecimalMinValidatorForMonetaryAmount.isValid(MonetaryAmount value,
ConstraintValidatorContext context) |
boolean |
DecimalMaxValidatorForMonetaryAmount.isValid(MonetaryAmount value,
ConstraintValidatorContext context) |
boolean |
CurrencyValidatorForMonetaryAmount.isValid(MonetaryAmount value,
ConstraintValidatorContext context) |
Modifier and Type | Method and Description |
---|---|
boolean |
NotEmptyValidatorForArraysOfBoolean.isValid(boolean[] array,
ConstraintValidatorContext constraintValidatorContext)
Checks the array is not
null and not empty. |
boolean |
NotEmptyValidatorForArraysOfByte.isValid(byte[] array,
ConstraintValidatorContext constraintValidatorContext)
Checks the array is not
null and not empty. |
boolean |
NotEmptyValidatorForArraysOfChar.isValid(char[] array,
ConstraintValidatorContext constraintValidatorContext)
Checks the array is not
null and not empty. |
boolean |
NotEmptyValidatorForCharSequence.isValid(CharSequence charSequence,
ConstraintValidatorContext constraintValidatorContext)
Checks the character sequence is not
null and not empty. |
boolean |
NotEmptyValidatorForCollection.isValid(Collection collection,
ConstraintValidatorContext constraintValidatorContext)
Checks the collection is not
null and not empty. |
boolean |
NotEmptyValidatorForArraysOfDouble.isValid(double[] array,
ConstraintValidatorContext constraintValidatorContext)
Checks the array is not
null and not empty. |
boolean |
NotEmptyValidatorForArraysOfFloat.isValid(float[] array,
ConstraintValidatorContext constraintValidatorContext)
Checks the array is not
null and not empty. |
boolean |
NotEmptyValidatorForArraysOfInt.isValid(int[] array,
ConstraintValidatorContext constraintValidatorContext)
Checks the array is not
null and not empty. |
boolean |
NotEmptyValidatorForArraysOfLong.isValid(long[] array,
ConstraintValidatorContext constraintValidatorContext)
Checks the array is not
null and not empty. |
boolean |
NotEmptyValidatorForMap.isValid(Map map,
ConstraintValidatorContext constraintValidatorContext)
Checks the map is not
null and not empty. |
boolean |
NotEmptyValidatorForArray.isValid(Object[] array,
ConstraintValidatorContext constraintValidatorContext)
Checks the array is not
null and not empty. |
boolean |
NotEmptyValidatorForArraysOfShort.isValid(short[] array,
ConstraintValidatorContext constraintValidatorContext)
Checks the array is not
null and not empty. |
Modifier and Type | Method and Description |
---|---|
boolean |
AbstractMinValidator.isValid(T value,
ConstraintValidatorContext constraintValidatorContext) |
boolean |
AbstractMaxValidator.isValid(T value,
ConstraintValidatorContext constraintValidatorContext) |
Modifier and Type | Method and Description |
---|---|
boolean |
AbstractDecimalMinValidator.isValid(T value,
ConstraintValidatorContext constraintValidatorContext) |
boolean |
AbstractDecimalMaxValidator.isValid(T value,
ConstraintValidatorContext constraintValidatorContext) |
Modifier and Type | Method and Description |
---|---|
boolean |
PositiveValidatorForBigDecimal.isValid(BigDecimal value,
ConstraintValidatorContext context) |
boolean |
PositiveOrZeroValidatorForBigDecimal.isValid(BigDecimal value,
ConstraintValidatorContext context) |
boolean |
NegativeValidatorForBigDecimal.isValid(BigDecimal value,
ConstraintValidatorContext context) |
boolean |
NegativeOrZeroValidatorForBigDecimal.isValid(BigDecimal value,
ConstraintValidatorContext context) |
boolean |
PositiveValidatorForBigInteger.isValid(BigInteger value,
ConstraintValidatorContext context) |
boolean |
PositiveOrZeroValidatorForBigInteger.isValid(BigInteger value,
ConstraintValidatorContext context) |
boolean |
NegativeValidatorForBigInteger.isValid(BigInteger value,
ConstraintValidatorContext context) |
boolean |
NegativeOrZeroValidatorForBigInteger.isValid(BigInteger value,
ConstraintValidatorContext context) |
boolean |
PositiveValidatorForByte.isValid(Byte value,
ConstraintValidatorContext context) |
boolean |
PositiveOrZeroValidatorForByte.isValid(Byte value,
ConstraintValidatorContext context) |
boolean |
NegativeValidatorForByte.isValid(Byte value,
ConstraintValidatorContext context) |
boolean |
NegativeOrZeroValidatorForByte.isValid(Byte value,
ConstraintValidatorContext context) |
boolean |
PositiveValidatorForDouble.isValid(Double value,
ConstraintValidatorContext context) |
boolean |
PositiveOrZeroValidatorForDouble.isValid(Double value,
ConstraintValidatorContext context) |
boolean |
NegativeValidatorForDouble.isValid(Double value,
ConstraintValidatorContext context) |
boolean |
NegativeOrZeroValidatorForDouble.isValid(Double value,
ConstraintValidatorContext context) |
boolean |
PositiveValidatorForFloat.isValid(Float value,
ConstraintValidatorContext context) |
boolean |
PositiveOrZeroValidatorForFloat.isValid(Float value,
ConstraintValidatorContext context) |
boolean |
NegativeValidatorForFloat.isValid(Float value,
ConstraintValidatorContext context) |
boolean |
NegativeOrZeroValidatorForFloat.isValid(Float value,
ConstraintValidatorContext context) |
boolean |
PositiveValidatorForInteger.isValid(Integer value,
ConstraintValidatorContext context) |
boolean |
PositiveOrZeroValidatorForInteger.isValid(Integer value,
ConstraintValidatorContext context) |
boolean |
NegativeValidatorForInteger.isValid(Integer value,
ConstraintValidatorContext context) |
boolean |
NegativeOrZeroValidatorForInteger.isValid(Integer value,
ConstraintValidatorContext context) |
boolean |
PositiveValidatorForLong.isValid(Long value,
ConstraintValidatorContext context) |
boolean |
PositiveOrZeroValidatorForLong.isValid(Long value,
ConstraintValidatorContext context) |
boolean |
NegativeValidatorForLong.isValid(Long value,
ConstraintValidatorContext context) |
boolean |
NegativeOrZeroValidatorForLong.isValid(Long value,
ConstraintValidatorContext context) |
boolean |
PositiveValidatorForNumber.isValid(Number value,
ConstraintValidatorContext context) |
boolean |
PositiveOrZeroValidatorForNumber.isValid(Number value,
ConstraintValidatorContext context) |
boolean |
NegativeValidatorForNumber.isValid(Number value,
ConstraintValidatorContext context) |
boolean |
NegativeOrZeroValidatorForNumber.isValid(Number value,
ConstraintValidatorContext context) |
boolean |
PositiveValidatorForShort.isValid(Short value,
ConstraintValidatorContext context) |
boolean |
PositiveOrZeroValidatorForShort.isValid(Short value,
ConstraintValidatorContext context) |
boolean |
NegativeValidatorForShort.isValid(Short value,
ConstraintValidatorContext context) |
boolean |
NegativeOrZeroValidatorForShort.isValid(Short value,
ConstraintValidatorContext context) |
Modifier and Type | Method and Description |
---|---|
boolean |
SizeValidatorForArraysOfBoolean.isValid(boolean[] array,
ConstraintValidatorContext constraintValidatorContext)
Checks the number of entries in an array.
|
boolean |
SizeValidatorForArraysOfByte.isValid(byte[] array,
ConstraintValidatorContext constraintValidatorContext)
Checks the number of entries in an array.
|
boolean |
SizeValidatorForArraysOfChar.isValid(char[] array,
ConstraintValidatorContext constraintValidatorContext)
Checks the number of entries in an array.
|
boolean |
SizeValidatorForCharSequence.isValid(CharSequence charSequence,
ConstraintValidatorContext constraintValidatorContext)
Checks the length of the specified character sequence (e.g.
|
boolean |
SizeValidatorForCollection.isValid(Collection collection,
ConstraintValidatorContext constraintValidatorContext)
Checks the number of entries in a collection.
|
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 |
SizeValidatorForArray.isValid(Object[] array,
ConstraintValidatorContext constraintValidatorContext)
Checks the number of entries in an array.
|
boolean |
SizeValidatorForArraysOfShort.isValid(short[] array,
ConstraintValidatorContext constraintValidatorContext)
Checks the number of entries in an array.
|
Modifier and Type | Method and Description |
---|---|
boolean |
AbstractJavaTimeValidator.isValid(T value,
ConstraintValidatorContext context) |
boolean |
AbstractInstantBasedTimeValidator.isValid(T value,
ConstraintValidatorContext context) |
boolean |
AbstractEpochBasedTimeValidator.isValid(T value,
ConstraintValidatorContext context) |
Modifier and Type | Method and Description |
---|---|
boolean |
URLValidator.isValid(CharSequence value,
ConstraintValidatorContext constraintValidatorContext) |
boolean |
SafeHtmlValidator.isValid(CharSequence value,
ConstraintValidatorContext context) |
boolean |
NotBlankValidator.isValid(CharSequence charSequence,
ConstraintValidatorContext constraintValidatorContext)
Checks that the trimmed string is not empty.
|
boolean |
ModCheckBase.isValid(CharSequence value,
ConstraintValidatorContext context) |
boolean |
LengthValidator.isValid(CharSequence value,
ConstraintValidatorContext constraintValidatorContext) |
boolean |
ISBNValidator.isValid(CharSequence isbn,
ConstraintValidatorContext context) |
boolean |
EANValidator.isValid(CharSequence value,
ConstraintValidatorContext context) |
boolean |
CodePointLengthValidator.isValid(CharSequence value,
ConstraintValidatorContext constraintValidatorContext) |
boolean |
UniqueElementsValidator.isValid(Collection collection,
ConstraintValidatorContext constraintValidatorContext) |
boolean |
ParameterScriptAssertValidator.isValid(Object[] arguments,
ConstraintValidatorContext constraintValidatorContext) |
boolean |
ScriptAssertValidator.isValid(Object value,
ConstraintValidatorContext constraintValidatorContext) |
Modifier and Type | Method and Description |
---|---|
boolean |
CPFValidator.isValid(CharSequence value,
ConstraintValidatorContext context) |
boolean |
CNPJValidator.isValid(CharSequence value,
ConstraintValidatorContext context) |
Modifier and Type | Method and Description |
---|---|
boolean |
DurationMinValidator.isValid(Duration value,
ConstraintValidatorContext context) |
boolean |
DurationMaxValidator.isValid(Duration value,
ConstraintValidatorContext context) |
Modifier and Type | Class and Description |
---|---|
class |
ConstraintValidatorContextImpl |
Copyright © 2019 JBoss by Red Hat. All rights reserved.