Package org.apache.bval.jsr.job
Class ValidationJob<T>
- java.lang.Object
-
- org.apache.bval.jsr.job.ValidationJob<T>
-
- Direct Known Subclasses:
ValidateBean
,ValidateExecutable
,ValidateProperty
public abstract class ValidationJob<T> extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
ValidationJob.BeanFrame<B>
class
ValidationJob.Frame<D extends ElementD<?,?>>
class
ValidationJob.SproutFrame<D extends ElementD<?,?> & jakarta.validation.metadata.CascadableDescriptor & jakarta.validation.metadata.ContainerDescriptor>
-
Field Summary
Fields Modifier and Type Field Description protected Groups
groups
protected static TypeVariable<?>
ITERABLE_ELEMENT
protected static TypeVariable<?>
MAP_VALUE
protected ApacheFactoryContext
validatorContext
-
Constructor Summary
Constructors Constructor Description ValidationJob(ApacheFactoryContext validatorContext, Class<?>[] groups)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract ValidationJob.Frame<?>
computeBaseFrame()
(package private) abstract ConstraintViolationImpl<T>
createViolation(String messageTemplate, String message, ConstraintValidatorContextImpl<T> context, PathImpl propertyPath)
(package private) ConstraintViolationImpl<T>
createViolation(String messageTemplate, ConstraintValidatorContextImpl<T> context, PathImpl propertyPath)
Set<jakarta.validation.ConstraintViolation<T>>
getResults()
protected abstract Class<T>
getRootBeanClass()
protected boolean
hasWork()
protected <U> Predicate<U>
noViolations(Consumer<? super U> consumer)
-
-
-
Field Detail
-
MAP_VALUE
protected static final TypeVariable<?> MAP_VALUE
-
ITERABLE_ELEMENT
protected static final TypeVariable<?> ITERABLE_ELEMENT
-
validatorContext
protected final ApacheFactoryContext validatorContext
-
groups
protected final Groups groups
-
-
Constructor Detail
-
ValidationJob
ValidationJob(ApacheFactoryContext validatorContext, Class<?>[] groups)
-
-
Method Detail
-
createViolation
final ConstraintViolationImpl<T> createViolation(String messageTemplate, ConstraintValidatorContextImpl<T> context, PathImpl propertyPath)
-
createViolation
abstract ConstraintViolationImpl<T> createViolation(String messageTemplate, String message, ConstraintValidatorContextImpl<T> context, PathImpl propertyPath)
-
computeBaseFrame
protected abstract ValidationJob.Frame<?> computeBaseFrame()
-
hasWork
protected boolean hasWork()
-
-