Interface IViolationTranslator
-
- All Known Implementing Classes:
DefaultViolationTranslator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface IViolationTranslator
ConvertsConstraintViolation
s into Wicket'sValidationError
s
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> ValidationError
convert(javax.validation.ConstraintViolation<T> violation)
Converts aConstraintViolation
into aValidationError
-
-
-
Method Detail
-
convert
<T> ValidationError convert(javax.validation.ConstraintViolation<T> violation)
Converts aConstraintViolation
into aValidationError
- Type Parameters:
T
-- Parameters:
violation
- constraint violation from bean validation- Returns:
- validation validation error to be reported on the component
-
-