Package org.kiwiproject.validation
Class RangeValidator
java.lang.Object
org.kiwiproject.validation.RangeValidator
public class RangeValidator
extends Object
implements jakarta.validation.ConstraintValidator<Range,Object>
Validator for @
Range.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
RangeValidator
public RangeValidator()
-
-
Method Details
-
initialize
- Specified by:
initializein interfacejakarta.validation.ConstraintValidator<Range,Object> - Parameters:
constraintAnnotation- annotation instance for a given constraint declaration- Implementation Note:
- if either
Range.minLabel()orRange.maxLabel()is present, this selects the template containing labels. This design is specifically due to the change in Hibernate Validator 6.2.x which disables EL (expression language) by default for custom validators, and allows this (custom) validator to operate correctly without EL enabled.
-
isValid
-