MinimumLengthValidator minimumLengthValidator = (MinimumLengthValidator) validator;
buffer.append(messageBuilder.minimumMessage(component, minimumLengthValidator));
}
else if (MaximumLengthValidator.class.isAssignableFrom(validator.getClass())) {
MaximumLengthValidator maximumLengthValidator = (MaximumLengthValidator) validator;
buffer.append(messageBuilder.maximumMessage(component, maximumLengthValidator));
}
else if (LengthBetweenValidator.class.isAssignableFrom(validator.getClass())) {
LengthBetweenValidator lengthBetweenValidator = (LengthBetweenValidator) validator;