use of eu.esdihumboldt.util.validator.NumberValidator.Type in project hale by halestudio.
the class NumberValidatorFactory method restore.
@Override
public Validator restore(Value value) throws Exception {
ValueProperties props = value.as(ValueProperties.class);
Type type = Type.valueOf(props.getSafe(P_TYPE).as(String.class));
BigDecimal val = props.getSafe(P_VALUE).as(BigDecimal.class);
return new NumberValidator(type, val);
}
Aggregations