Package org.apache.bval.jsr.job
Class ValidateReturnValue<E extends Executable,T>
- java.lang.Object
-
- org.apache.bval.jsr.job.ValidationJob<T>
-
- org.apache.bval.jsr.job.ValidateExecutable<E,T>
-
- org.apache.bval.jsr.job.ValidateReturnValue<E,T>
-
- Direct Known Subclasses:
ValidateReturnValue.ForConstructor
,ValidateReturnValue.ForMethod
public abstract class ValidateReturnValue<E extends Executable,T> extends ValidateExecutable<E,T>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ValidateReturnValue.ForConstructor<T>
static class
ValidateReturnValue.ForMethod<T>
-
Nested classes/interfaces inherited from class org.apache.bval.jsr.job.ValidationJob
ValidationJob.BeanFrame<B>, ValidationJob.Frame<D extends ElementD<?,?>>, ValidationJob.SproutFrame<D extends ElementD<?,?> & jakarta.validation.metadata.CascadableDescriptor & jakarta.validation.metadata.ContainerDescriptor>
-
-
Field Summary
-
Fields inherited from class org.apache.bval.jsr.job.ValidateExecutable
executable
-
Fields inherited from class org.apache.bval.jsr.job.ValidationJob
groups, ITERABLE_ELEMENT, MAP_VALUE, validatorContext
-
-
Constructor Summary
Constructors Constructor Description ValidateReturnValue(ApacheFactoryContext validatorContext, Meta<E> meta, Object returnValue, Class<?>[] groups)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected ValidationJob.Frame<?>
computeBaseFrame()
protected abstract ValidationJob.Frame<?>
createBaseFrame(ReturnValueD<?,?> descriptor, GraphContext context)
(package private) ConstraintViolationImpl<T>
createViolation(String messageTemplate, String message, ConstraintValidatorContextImpl<T> context, PathImpl propertyPath)
protected abstract jakarta.validation.metadata.ExecutableDescriptor
describe()
protected abstract T
getRootBean()
protected boolean
hasWork()
-
Methods inherited from class org.apache.bval.jsr.job.ValidateExecutable
createBasePath
-
Methods inherited from class org.apache.bval.jsr.job.ValidationJob
createViolation, getResults, getRootBeanClass, noViolations
-
-
-
-
Constructor Detail
-
ValidateReturnValue
ValidateReturnValue(ApacheFactoryContext validatorContext, Meta<E> meta, Object returnValue, Class<?>[] groups)
-
-
Method Detail
-
computeBaseFrame
protected ValidationJob.Frame<?> computeBaseFrame()
- Specified by:
computeBaseFrame
in classValidationJob<T>
-
createViolation
ConstraintViolationImpl<T> createViolation(String messageTemplate, String message, ConstraintValidatorContextImpl<T> context, PathImpl propertyPath)
- Specified by:
createViolation
in classValidationJob<T>
-
hasWork
protected boolean hasWork()
- Overrides:
hasWork
in classValidationJob<T>
-
describe
protected abstract jakarta.validation.metadata.ExecutableDescriptor describe()
-
getRootBean
protected abstract T getRootBean()
-
createBaseFrame
protected abstract ValidationJob.Frame<?> createBaseFrame(ReturnValueD<?,?> descriptor, GraphContext context)
-
-