public class DoubleRangeValidator extends AbstractValidator
i18nMessages
Constructor and Description |
---|
DoubleRangeValidator() |
Modifier and Type | Method and Description |
---|---|
T |
getMax() |
T |
getMin() |
void |
setMax(T max) |
void |
setMin(T min) |
<R> void |
validate(String name,
String title,
R value,
ValidateResult validateResult)
对数据进行校验,如果校验的数据有错误,则把错误信息添加到validateResult当中
|
public T getMin()
public void setMin(T min)
public T getMax()
public void setMax(T max)
public <R> void validate(String name, String title, R value, ValidateResult validateResult)
Validator
name
- 字段名字title
- 字段的标题value
- 字段的值validateResult
- 校验结果Copyright © 2006–2018 TinyGroup. All rights reserved.