Interface BeanValidationContext
-
- All Superinterfaces:
IPropertyResolver
- All Known Implementing Classes:
BeanValidationConfiguration
public interface BeanValidationContext extends IPropertyResolver
A read-only view ofBeanValidationConfiguration
that can be retrieved by components to access the validator and other helpers.- Author:
- igor
- See Also:
BeanValidationConfiguration.get()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends Annotation>
ITagModifier<T>getTagModifier(Class<T> annotationType)
Gets the tag modifier for the specified annotation typejavax.validation.Validator
getValidator()
IViolationTranslator
getViolationTranslator()
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.
-
-
-
Method Detail
-
getTagModifier
<T extends Annotation> ITagModifier<T> getTagModifier(Class<T> annotationType)
Gets the tag modifier for the specified annotation type- Parameters:
annotationType
-- Returns:
- tag modifier or
null
if none
-
getValidator
javax.validation.Validator getValidator()
- Returns:
- the validator
-
getViolationTranslator
IViolationTranslator getViolationTranslator()
- Returns:
- the violation translator
-
resolveProperty
Property resolveProperty(FormComponent<?> component)
Resolve the property for a component.- Specified by:
resolveProperty
in interfaceIPropertyResolver
- Parameters:
component
- component
-
isRequiredConstraint
boolean isRequiredConstraint(javax.validation.metadata.ConstraintDescriptor<?> constraint)
Does the given constraint make a component required.- Parameters:
constraint
- constraint- Returns:
true
if required
-
-