Class AbstractValidatorForLocalizedValue<A extends Annotation>

    • Field Detail

      • message

        protected String message
    • Constructor Detail

      • AbstractValidatorForLocalizedValue

        public AbstractValidatorForLocalizedValue()
    • Method Detail

      • isValid

        public boolean isValid​(LocalizedValue<?,​?> localizedValue,
                               javax.validation.ConstraintValidatorContext constraintValidatorContext)
        Checks that the localized value.
        Specified by:
        isValid in interface javax.validation.ConstraintValidator<A extends Annotation,​LocalizedValue<?,​?>>
        Parameters:
        localizedValue - the localized value to validate
        constraintValidatorContext - context in which the constraint is evaluated
        Returns:
        returns true if the string is not null and the length of the trimmed charSequence is strictly superior to 0, false otherwise
      • checkValue

        protected boolean checkValue​(Map.Entry<?,​?> entry,
                                     javax.validation.ConstraintValidatorContext constraintValidatorContext)
      • extendValidationContext

        protected void extendValidationContext​(javax.validation.ConstraintValidatorContext constraintValidatorContext)
      • checkEntryValue

        protected abstract boolean checkEntryValue​(Object value)
        check single localized value.
        Parameters:
        value - object to check
        Returns:
        true if it's valid