} else if (annotationClass.equals(Range.class)) {
Range range = (Range) annotation;
LongRangeValidator longRangeValidator = new LongRangeValidator();
longRangeValidator.setMaximum(range.max());
longRangeValidator.setMinimum(range.min());
LongRangeClientValidator longRangeClientValidator = new LongRangeClientValidator();
longRangeClientValidator.setLongRangeValidator(longRangeValidator);
return longRangeClientValidator;
} else if (annotationClass.equals(Max.class)) {
Max max = (Max) annotation;
LongRangeValidator longRangeValidator = new LongRangeValidator();
longRangeValidator.setMaximum(max.value());
longRangeValidator.setMinimum(Long.MIN_VALUE);
LongRangeClientValidator longRangeClientValidator = new LongRangeClientValidator();
longRangeClientValidator.setLongRangeValidator(longRangeValidator);
return longRangeClientValidator;
} else if (annotationClass.equals(Min.class)) {
Min min = (Min) annotation;
LongRangeValidator longRangeValidator = new LongRangeValidator();
longRangeValidator.setMaximum(Long.MAX_VALUE);
longRangeValidator.setMinimum(min.value());
LongRangeClientValidator longRangeClientValidator = new LongRangeClientValidator();
longRangeClientValidator.setLongRangeValidator(longRangeValidator);
return longRangeClientValidator;
}
return null;
}