| java.lang.Object org.springframework.beans.PropertyAccessorUtils
PropertyAccessorUtils | abstract public class PropertyAccessorUtils (Code) | | Utility methods for classes that perform bean property access
according to the
PropertyAccessor interface.
author: Juergen Hoeller since: 1.2.6 |
canonicalPropertyName | public static String canonicalPropertyName(String propertyName)(Code) | | Determine the canonical name for the given property path.
Removes surrounding quotes from map keys:
map['key'] -> map[key]
map["key"] -> map[key]
Parameters: propertyName - the bean property path the canonical representation of the property path |
canonicalPropertyNames | public static String[] canonicalPropertyNames(String[] propertyNames)(Code) | | Determine the canonical names for the given property paths.
Parameters: propertyNames - the bean property paths (as array) the canonical representation of the property paths(as array of the same size) See Also: PropertyAccessorUtils.canonicalPropertyName(String) |
getFirstNestedPropertySeparatorIndex | public static int getFirstNestedPropertySeparatorIndex(String propertyPath)(Code) | | Determine the first nested property separator in the
given property path, ignoring dots in keys (like "map[my.key]").
Parameters: propertyPath - the property path to check the index of the nested property separator, or -1 if none |
getLastNestedPropertySeparatorIndex | public static int getLastNestedPropertySeparatorIndex(String propertyPath)(Code) | | Determine the first nested property separator in the
given property path, ignoring dots in keys (like "map[my.key]").
Parameters: propertyPath - the property path to check the index of the nested property separator, or -1 if none |
getPropertyName | public static String getPropertyName(String propertyPath)(Code) | | Return the actual property name for the given property path.
Parameters: propertyPath - the property path to determine the property namefor (can include property keys, for example for specifying a map entry) the actual property name, without any key elements |
isNestedOrIndexedProperty | public static boolean isNestedOrIndexedProperty(String propertyPath)(Code) | | Check whether the given property path indicates an indexed or nested property.
Parameters: propertyPath - the property path to check whether the path indicates an indexed or nested property |
matchesProperty | public static boolean matchesProperty(String registeredPath, String propertyPath)(Code) | | Determine whether the given registered path matches the given property path,
either indicating the property itself or an indexed element of the property.
Parameters: propertyPath - the property path (typically without index) Parameters: registeredPath - the registered path (potentially with index) whether the paths match |
|
|