public abstract class PropertyAccessorUtils extends Object
PropertyAccessor interface.| Constructor and Description | 
|---|
| PropertyAccessorUtils() | 
| Modifier and Type | Method and Description | 
|---|---|
| static String | canonicalPropertyName(String propertyName)Determine the canonical name for the given property path. | 
| static String[] | canonicalPropertyNames(String[] propertyNames)Determine the canonical names for the given property paths. | 
| static int | getFirstNestedPropertySeparatorIndex(String propertyPath)Determine the first nested property separator in the
 given property path, ignoring dots in keys (like "map[my.key]"). | 
| static int | getLastNestedPropertySeparatorIndex(String propertyPath)Determine the first nested property separator in the
 given property path, ignoring dots in keys (like "map[my.key]"). | 
| static String | getPropertyName(String propertyPath)Return the actual property name for the given property path. | 
| static boolean | isNestedOrIndexedProperty(String propertyPath)Check whether the given property path indicates an indexed or nested property. | 
| static boolean | matchesProperty(String registeredPath,
               String propertyPath)Determine whether the given registered path matches the given property path,
 either indicating the property itself or an indexed element of the property. | 
public static String getPropertyName(String propertyPath)
propertyPath - the property path to determine the property name
 for (can include property keys, for example for specifying a map entry)public static boolean isNestedOrIndexedProperty(@Nullable String propertyPath)
propertyPath - the property path to checkpublic static int getFirstNestedPropertySeparatorIndex(String propertyPath)
propertyPath - the property path to checkpublic static int getLastNestedPropertySeparatorIndex(String propertyPath)
propertyPath - the property path to checkpublic static boolean matchesProperty(String registeredPath, String propertyPath)
propertyPath - the property path (typically without index)registeredPath - the registered path (potentially with index)public static String canonicalPropertyName(@Nullable String propertyName)
map['key'] → map[key]map["key"] → map[key]propertyName - the bean property path@Nullable public static String[] canonicalPropertyNames(@Nullable String[] propertyNames)
propertyNames - the bean property paths (as array)canonicalPropertyName(String)