Package org.apache.bval.jsr.job
Class ConstraintValidatorContextImpl<T>
- java.lang.Object
-
- org.apache.bval.jsr.job.ConstraintValidatorContextImpl<T>
-
- All Implemented Interfaces:
jakarta.validation.ConstraintValidatorContext
,jakarta.validation.MessageInterpolator.Context
,ApacheMessageContext
public class ConstraintValidatorContextImpl<T> extends Object implements jakarta.validation.ConstraintValidatorContext, ApacheMessageContext
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
ConstraintValidatorContextImpl.ConstraintViolationBuilderImpl
-
Constructor Summary
Constructors Constructor Description ConstraintValidatorContextImpl(ValidationJob.Frame<?> frame, ConstraintD<?> constraint)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.validation.ConstraintValidatorContext.ConstraintViolationBuilder
buildConstraintViolationWithTemplate(String messageTemplate)
void
disableDefaultConstraintViolation()
jakarta.validation.ClockProvider
getClockProvider()
String
getConfigurationProperty(String propertyKey)
Get the configuration property value specified bypropertyKey
, if available.jakarta.validation.metadata.ConstraintDescriptor<?>
getConstraintDescriptor()
String
getDefaultConstraintMessageTemplate()
(package private) ValidationJob.Frame<?>
getFrame()
(package private) Set<jakarta.validation.ConstraintViolation<T>>
getRequiredViolations()
Object
getValidatedValue()
<U> U
unwrap(Class<U> type)
-
-
-
Constructor Detail
-
ConstraintValidatorContextImpl
ConstraintValidatorContextImpl(ValidationJob.Frame<?> frame, ConstraintD<?> constraint)
-
-
Method Detail
-
disableDefaultConstraintViolation
public void disableDefaultConstraintViolation()
- Specified by:
disableDefaultConstraintViolation
in interfacejakarta.validation.ConstraintValidatorContext
-
getDefaultConstraintMessageTemplate
public String getDefaultConstraintMessageTemplate()
- Specified by:
getDefaultConstraintMessageTemplate
in interfacejakarta.validation.ConstraintValidatorContext
-
buildConstraintViolationWithTemplate
public jakarta.validation.ConstraintValidatorContext.ConstraintViolationBuilder buildConstraintViolationWithTemplate(String messageTemplate)
- Specified by:
buildConstraintViolationWithTemplate
in interfacejakarta.validation.ConstraintValidatorContext
-
getClockProvider
public jakarta.validation.ClockProvider getClockProvider()
- Specified by:
getClockProvider
in interfacejakarta.validation.ConstraintValidatorContext
-
unwrap
public <U> U unwrap(Class<U> type)
- Specified by:
unwrap
in interfacejakarta.validation.ConstraintValidatorContext
- Specified by:
unwrap
in interfacejakarta.validation.MessageInterpolator.Context
-
getFrame
ValidationJob.Frame<?> getFrame()
-
getConstraintDescriptor
public jakarta.validation.metadata.ConstraintDescriptor<?> getConstraintDescriptor()
- Specified by:
getConstraintDescriptor
in interfacejakarta.validation.MessageInterpolator.Context
-
getValidatedValue
public Object getValidatedValue()
- Specified by:
getValidatedValue
in interfacejakarta.validation.MessageInterpolator.Context
-
getConfigurationProperty
public String getConfigurationProperty(String propertyKey)
Description copied from interface:ApacheMessageContext
Get the configuration property value specified bypropertyKey
, if available.- Specified by:
getConfigurationProperty
in interfaceApacheMessageContext
- Returns:
String
ornull
-
-