| java.lang.Object org.springframework.beans.PropertyMatches
PropertyMatches | final class PropertyMatches (Code) | | Helper class for calculating bean property matches, according to.
Used by BeanWrapperImpl to suggest alternatives for an invalid property name.
author: Alef Arendsen author: Arjen Poutsma author: Juergen Hoeller since: 2.0 See Also: PropertyMatches.forProperty(String,Class) |
DEFAULT_MAX_DISTANCE | final public static int DEFAULT_MAX_DISTANCE(Code) | | Default maximum property distance: 2
|
buildErrorMessage | public String buildErrorMessage()(Code) | | Build an error message for the given invalid property name,
indicating the possible property matches.
|
forProperty | public static PropertyMatches forProperty(String propertyName, Class beanClass)(Code) | | Create PropertyMatches for the given bean property.
Parameters: propertyName - the name of the property to find possible matches for Parameters: beanClass - the bean class to search for matches |
forProperty | public static PropertyMatches forProperty(String propertyName, Class beanClass, int maxDistance)(Code) | | Create PropertyMatches for the given bean property.
Parameters: propertyName - the name of the property to find possible matches for Parameters: beanClass - the bean class to search for matches Parameters: maxDistance - the maximum property distance allowed for matches |
getPossibleMatches | public String[] getPossibleMatches()(Code) | | Return the calculated possible matches.
|
|
|