return errSet;
}
private Error validateAttr(Attribute attr, Node rule) {
ValidationRule v = null;
ValidationResult result = null;
try {
v = new ValidationRule(rule);
Object [] vParams = ValidationParams.getValidationParams(attr, v);
result = (ValidationResult)SimpleValidator.validate(v.name, vParams);
} catch(Exception ex) {
result = new ValidationResult();
result.setSuccess(false);
result.setErrorMessage(ex.getClass().getName() + ": " + ex.getMessage());
}
if (!result.getSuccess()) {
Error err = new Error();
err.setAttributeID(attr.getAttributeID());
err.setRuleName(v.name);
err.setMessage(result.getErrorMessage()); //SimpleValidator.getErrorMessage(v.name);
return err;
}
return null;
}