|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.beans.PropertyMatches
final class PropertyMatches
Helper class for calculating bean property matches, according to. Used by BeanWrapperImpl to suggest alternatives for an invalid property name.
forProperty(String, Class)
Field Summary | |
---|---|
static int |
DEFAULT_MAX_DISTANCE
Default maximum property distance: 2 |
Method Summary | |
---|---|
String |
buildErrorMessage()
Build an error message for the given invalid property name, indicating the possible property matches. |
static PropertyMatches |
forProperty(String propertyName,
Class beanClass)
Create PropertyMatches for the given bean property. |
static PropertyMatches |
forProperty(String propertyName,
Class beanClass,
int maxDistance)
Create PropertyMatches for the given bean property. |
String[] |
getPossibleMatches()
Return the calculated possible matches. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_MAX_DISTANCE
Method Detail |
---|
public static PropertyMatches forProperty(String propertyName, Class beanClass)
propertyName
- the name of the property to find possible matches forbeanClass
- the bean class to search for matchespublic static PropertyMatches forProperty(String propertyName, Class beanClass, int maxDistance)
propertyName
- the name of the property to find possible matches forbeanClass
- the bean class to search for matchesmaxDistance
- the maximum property distance allowed for matchespublic String[] getPossibleMatches()
public String buildErrorMessage()
|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |