@Override
public SingleAttributeValidationResult validate(String validate) {
Pattern pattern = Pattern.compile("\\d+");
Matcher matcher = pattern.matcher(validate);
if (!matcher.matches()) {
ValidationResultImpl validationResultImpl = new ValidationResultImpl(false, "validation.number.formating");
return validationResultImpl;
} else {
return new ValidationResultImpl(true, "");
}
}