this.attribute = attribute;
}
@Override
protected void onValidate(IValidatable<T> validatable) {
FieldValidator validator = this.attribute.getValidator();
SingleAttributeValidationResult validationResult = validator.validate(validatable.getValue().toString());
if (!validationResult.isValid()) {
error(validatable, validationResult.getErrorMessageId());
}
}