29303132333435
public void validate(Field field, Integer constraintValue, MessageFormatter formatter, String value) throws ValidationException { if (value.length() > constraintValue) throw new ValidationException(buildMessage(formatter, field, constraintValue)); }
32333435363738
public void validate(Field field, Integer constraintValue, MessageFormatter formatter, String value) throws ValidationException { if (value.length() < constraintValue) throw new ValidationException(buildMessage(formatter, field, constraintValue)); }
33343536373839
public void validate(Field field, Void constraintValue, MessageFormatter formatter, Object value) throws ValidationException { if (value == null || InternalUtils.isBlank(value.toString())) throw new ValidationException(buildMessage(formatter, field)); }
30313233343536
public void validate(Field field, Long constraintValue, MessageFormatter formatter, Number value) throws ValidationException { if (value.longValue() < constraintValue) throw new ValidationException(buildMessage(formatter, field, constraintValue)); }