| | |
| | | */ |
| | | @Override |
| | | public String getMessage() { |
| | | return "The string value \"" + String.valueOf(value) |
| | | + "\" is not a valid value for the property \"" |
| | | + getPropertyDefinition().getName() + "\""; |
| | | String msg = "The string value \"%s\" is not a valid value for the " |
| | | + "property \"%s\", which must have the following syntax: %s"; |
| | | PropertyDefinition<?> pd = getPropertyDefinition(); |
| | | PropertyDefinitionUsageBuilder builder = new PropertyDefinitionUsageBuilder( |
| | | true); |
| | | return String.format(msg, value, pd.getName(), builder.getUsage(pd)); |
| | | } |
| | | |
| | | } |