Interface BeanValidationContext
- All Superinterfaces:
IPropertyResolver
- All Known Implementing Classes:
BeanValidationConfiguration
A read-only view of
BeanValidationConfiguration
that can be retrieved by components to
access the validator and other helpers.- Author:
- igor
- See Also:
-
Method Summary
Modifier and TypeMethodDescription<T extends Annotation>
ITagModifier<T>getTagModifier
(Class<T> annotationType) Gets the tag modifier for the specified annotation typejakarta.validation.Validator
boolean
isRequiredConstraint
(jakarta.validation.metadata.ConstraintDescriptor<?> constraint) Does the given constraint make a component required.resolveProperty
(FormComponent<?> component) Resolve the property for a component.
-
Method Details
-
getTagModifier
Gets the tag modifier for the specified annotation type- Parameters:
annotationType
-- Returns:
- tag modifier or
null
if none
-
getValidator
jakarta.validation.Validator getValidator()- Returns:
- the validator
-
getViolationTranslator
- Returns:
- the violation translator
-
resolveProperty
Resolve the property for a component.- Specified by:
resolveProperty
in interfaceIPropertyResolver
- Parameters:
component
- component
-
isRequiredConstraint
Does the given constraint make a component required.- Parameters:
constraint
- constraint- Returns:
true
if required
-