public class RangeValidator extends Object implements FieldValidator
Modifier and Type | Field and Description |
---|---|
protected double |
max |
protected double |
min |
protected boolean |
negate |
Constructor and Description |
---|
RangeValidator(double min,
double max,
boolean negate) |
Modifier and Type | Method and Description |
---|---|
void |
validate(String value,
Object decoded) |
boolean |
validateNumber(Number value) |
public RangeValidator(double min, double max, boolean negate)
public boolean validateNumber(Number value)
public void validate(String value, Object decoded) throws ValidationException
validate
in interface FieldValidator
ValidationException
Copyright © 2018 Nuxeo. All rights reserved.