in src/java/org/apache/fulcrum/intake/validator/NumberValidator.java [84:125]
public void init(Map<String, ? extends Constraint> paramMap)
throws InvalidMaskException
{
super.init(paramMap);
Constraint constraint = paramMap.get(INVALID_NUMBER_RULE_NAME);
if (constraint != null)
{
invalidNumberMessage = constraint.getMessage();
}
constraint = paramMap.get(MIN_VALUE_RULE_NAME);
if (constraint != null)
{
String param = constraint.getValue();
try
{
minValue = parseNumber(param, Locale.US);
}
catch (NumberFormatException e)
{
throw new InvalidMaskException("Could not parse minimum value " + param, e);
}
minValueMessage = constraint.getMessage();
}
constraint = paramMap.get(MAX_VALUE_RULE_NAME);
if (constraint != null)
{
String param = constraint.getValue();
try
{
maxValue = parseNumber(param, Locale.US);
}
catch (NumberFormatException e)
{
throw new InvalidMaskException("Could not parse minimum value " + param, e);
}
maxValueMessage = constraint.getMessage();
}
}