in src/java/org/apache/fulcrum/intake/validator/DefaultValidator.java [103:129]
public void init(Map<String, ? extends Constraint> paramMap)
throws InvalidMaskException
{
Constraint constraint = paramMap.get(REQUIRED_RULE_NAME);
if (constraint != null)
{
String param = constraint.getValue();
required = Boolean.valueOf(param).booleanValue();
requiredMessage = constraint.getMessage();
}
constraint = paramMap.get(MIN_LENGTH_RULE_NAME);
if (constraint != null)
{
String param = constraint.getValue();
minLength = Integer.parseInt(param);
minLengthMessage = constraint.getMessage();
}
constraint = paramMap.get(MAX_LENGTH_RULE_NAME);
if (constraint != null)
{
String param = constraint.getValue();
maxLength = Integer.parseInt(param);
maxLengthMessage = constraint.getMessage();
}
}