public interface BeanValidationContext extends IPropertyResolver
BeanValidationConfiguration
that can be retrieved by components to
access the validator and other helpers.BeanValidationConfiguration.get()
Modifier and Type | Method and Description |
---|---|
<T extends Annotation> |
getTagModifier(Class<T> annotationType)
Gets the tag modifier for the specified annotation type
|
javax.validation.Validator |
getValidator() |
IViolationTranslator |
getViolationTranslator() |
default boolean |
isRequiredConstraint(javax.validation.metadata.ConstraintDescriptor<?> constraint)
Does the given constraint make a component required.
|
Property |
resolveProperty(FormComponent<?> component)
Resolve the property for a component.
|
<T extends Annotation> ITagModifier<T> getTagModifier(Class<T> annotationType)
annotationType
- null
if nonejavax.validation.Validator getValidator()
IViolationTranslator getViolationTranslator()
Property resolveProperty(FormComponent<?> component)
resolveProperty
in interface IPropertyResolver
component
- componentdefault boolean isRequiredConstraint(javax.validation.metadata.ConstraintDescriptor<?> constraint)
constraint
- constrainttrue
if requiredCopyright © 2006–2022 Apache Software Foundation. All rights reserved.