Interface BeanValidationContext
-
- All Superinterfaces:
IPropertyResolver
- All Known Implementing Classes:
BeanValidationConfiguration
public interface BeanValidationContext extends IPropertyResolver
A read-only view ofBeanValidationConfigurationthat 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.ValidatorgetValidator()IViolationTranslatorgetViolationTranslator()booleanisRequiredConstraint(javax.validation.metadata.ConstraintDescriptor<?> constraint)Does the given constraint make a component required.PropertyresolveProperty(org.apache.wicket.markup.html.form.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
nullif none
-
getValidator
javax.validation.Validator getValidator()
- Returns:
- the validator
-
getViolationTranslator
IViolationTranslator getViolationTranslator()
- Returns:
- the violation translator
-
resolveProperty
Property resolveProperty(org.apache.wicket.markup.html.form.FormComponent<?> component)
Resolve the property for a component.- Specified by:
resolvePropertyin interfaceIPropertyResolver- Parameters:
component- component
-
isRequiredConstraint
boolean isRequiredConstraint(javax.validation.metadata.ConstraintDescriptor<?> constraint)
Does the given constraint make a component required.- Parameters:
constraint- constraint- Returns:
trueif required
-
-