| java.lang.Object com.caucho.util.BeanUtil
BeanUtil | public class BeanUtil (Code) | | Bean utilities.
|
Method Summary | |
public static Class | getBeanPropertyClass(Object obj, String name) Returns the bean property type. | public static Method | getBeanPropertyMethod(Object obj, String name) Returns the bean property type. | public static Method | getGetMethod(BeanInfo info, String propertyName) Returns a set method matching the property name. | public static Method | getGetMethod(Class cl, String propertyName) Returns a get method matching the property name. | public static Method | getGetMethod(Class cl, String propertyName, boolean ignoreCase) Returns a get method matching the property name. | public static Method | getSetMethod(BeanInfo info, String propertyName) Returns a set method matching the property name. | public static Method | getSetMethod(Class cl, String propertyName) Returns a set method matching the property name. | public static Method | getSetMethod(Class cl, String propertyName, boolean ignoreCase) Returns a set method matching the property name. | public static Path | lookupPath(String pathName, HashMap varMap, Path pwd) Returns the native path for a configured path name. | public static String | methodNameToPropertyName(BeanInfo info, String methodName) Converts a user's property name to a bean method name. | public static String | methodNameToPropertyName(String methodName) Converts a user's property name to a bean method name. | public static String | propertyNameToMethodName(String propertyName) Converts a user's property name to a bean method name. | public static void | validateClass(Class cl, Class parent) |
getBeanPropertyClass | public static Class getBeanPropertyClass(Object obj, String name)(Code) | | Returns the bean property type.
Parameters: obj - the bean object Parameters: name - the property name |
getBeanPropertyMethod | public static Method getBeanPropertyMethod(Object obj, String name)(Code) | | Returns the bean property type.
Parameters: obj - the bean object Parameters: name - the property name |
getGetMethod | public static Method getGetMethod(BeanInfo info, String propertyName)(Code) | | Returns a set method matching the property name.
|
getGetMethod | public static Method getGetMethod(Class cl, String propertyName)(Code) | | Returns a get method matching the property name.
|
getGetMethod | public static Method getGetMethod(Class cl, String propertyName, boolean ignoreCase)(Code) | | Returns a get method matching the property name.
|
getSetMethod | public static Method getSetMethod(BeanInfo info, String propertyName)(Code) | | Returns a set method matching the property name.
|
getSetMethod | public static Method getSetMethod(Class cl, String propertyName)(Code) | | Returns a set method matching the property name.
|
getSetMethod | public static Method getSetMethod(Class cl, String propertyName, boolean ignoreCase)(Code) | | Returns a set method matching the property name.
|
lookupPath | public static Path lookupPath(String pathName, HashMap varMap, Path pwd)(Code) | | Returns the native path for a configured path name. The special cases
$app-dir and $resin-home specify the root directory.
Parameters: pathName - the configuration path name. Parameters: varMap - the map of path variables. Parameters: pwd - the default path. a real path corresponding to the path name |
methodNameToPropertyName | public static String methodNameToPropertyName(BeanInfo info, String methodName)(Code) | | Converts a user's property name to a bean method name.
Parameters: methodName - the method name the equivalent property name |
methodNameToPropertyName | public static String methodNameToPropertyName(String methodName)(Code) | | Converts a user's property name to a bean method name.
Parameters: methodName - the method name the equivalent property name |
propertyNameToMethodName | public static String propertyNameToMethodName(String propertyName)(Code) | | Converts a user's property name to a bean method name.
Parameters: propertyName - the user property name the equivalent bean method name |
validateClass | public static void validateClass(Class cl, Class parent) throws RegistryException(Code) | | |
|
|