return result;
}
public static ValidationResult NumberSeparatorNotAllowedRule(Integer id, Integer cnt, String target, ValidationRule rule)
{
ValidationResult result = new ValidationResult();
if (isValidId(id.intValue()) && cnt.intValue() > 0) {
result.setSuccess(true);
}
else if (isValid(target)) {
target = target.trim();
if (target.startsWith("-"))
{
target = target.substring(1, target.length() - 1);
}
target = target.trim();
char [] ca = target.toCharArray();
int len = ca.length;
int i = 0;
boolean success = true;
while (success && i < len)
{
success = Character.isDigit(ca[i]);
i ++;
}
result.setSuccess(success);
}
result.setErrorMessage("Please enter only numeric digits with no symbols.");
return result;
}