@Override public String buildErrorMessage() { StringBuilder msg = new StringBuilder(80); msg.append("Bean property '").append(getPropertyName()).append("' has no matching field."); if (!ObjectUtils.isEmpty(getPossibleMatches())) { msg.append(' '); appendHintMessage(msg); } return msg.toString(); } }
public FieldPropertyMatches(String propertyName, Class<?> beanClass, int maxDistance) { super(propertyName, calculateMatches(propertyName, beanClass, maxDistance)); }
/** * Create PropertyMatches for the given field property. * @param propertyName the name of the field to find possible matches for * @param beanClass the bean class to search for matches * @param maxDistance the maximum property distance allowed for matches */ public static PropertyMatches forField(String propertyName, Class<?> beanClass, int maxDistance) { return new FieldPropertyMatches(propertyName, beanClass, maxDistance); }
@Override public String buildErrorMessage() { StringBuilder msg = new StringBuilder(80); msg.append("Bean property '").append(getPropertyName()).append("' has no matching field."); if (!ObjectUtils.isEmpty(getPossibleMatches())) { msg.append(' '); appendHintMessage(msg); } return msg.toString(); } }
public FieldPropertyMatches(String propertyName, Class<?> beanClass, int maxDistance) { super(propertyName, calculateMatches(propertyName, beanClass, maxDistance)); }
/** * Create PropertyMatches for the given field property. * @param propertyName the name of the field to find possible matches for * @param beanClass the bean class to search for matches * @param maxDistance the maximum property distance allowed for matches */ public static PropertyMatches forField(String propertyName, Class<?> beanClass, int maxDistance) { return new FieldPropertyMatches(propertyName, beanClass, maxDistance); }
public FieldPropertyMatches(String propertyName, Class<?> beanClass, int maxDistance) { super(propertyName, calculateMatches(propertyName, beanClass, maxDistance)); }
/** * Create PropertyMatches for the given field property. * @param propertyName the name of the field to find possible matches for * @param beanClass the bean class to search for matches * @param maxDistance the maximum property distance allowed for matches */ public static PropertyMatches forField(String propertyName, Class<?> beanClass, int maxDistance) { return new FieldPropertyMatches(propertyName, beanClass, maxDistance); }
@Override public String buildErrorMessage() { StringBuilder msg = new StringBuilder(80); msg.append("Bean property '").append(getPropertyName()).append("' has no matching field."); if (!ObjectUtils.isEmpty(getPossibleMatches())) { msg.append(' '); appendHintMessage(msg); } return msg.toString(); } }