// TODO: i18n this
return "Value (" + value + ") is too long, it has length " + str.length()
+ ", the maximum allowed length is " + getFieldLength();
}
final Property p = getProperty();
if (p.doCheckAllowedValue() && !p.isAllowedValue(str)) {
return "Value (" + value + ") is not allowed, it should be one of the following values: "
+ p.getAllowedValues() + " but it is value " + str;
}
return null;
}