public final class JavaBeanUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
clearCache() |
static <V> V |
clone(V value)
Clone the value if it has a clone method.
|
static Object |
convert(Object value,
Class type) |
static <V> V |
createInstance(String className) |
static boolean |
getBooleanValue(Object object,
String fieldName) |
static <T> Constructor<T> |
getConstructor(Class<T> clazz,
Class<?>... parameterClasses) |
static <T> Constructor<T> |
getConstructor(String className,
Class<?>... parameterClasses) |
static org.apache.commons.beanutils.ConvertUtilsBean |
getConvertutilsbean() |
static String |
getFirstName(String name) |
static Method |
getMethod(Class<?> clazz,
String name,
Class<?>... parameterTypes) |
static List<Method> |
getMethods(Class<?> clazz) |
static <T> T |
getProperty(Object object,
String propertyName)
Get the value of the named property from the object.
|
static String |
getPropertyName(String methodName) |
static org.apache.commons.beanutils.PropertyUtilsBean |
getPropertyUtilsBean() |
static <T> T |
getSimpleProperty(Object object,
String propertyName)
Get the value of the named property from the object.
|
static String |
getSubName(String name) |
static Class<?> |
getTypeParameterClass(Method method,
Class<?> expectedRawClass) |
static Method |
getWriteMethod(Class<?> beanClass,
String name) |
static Method |
getWriteMethod(Object object,
String name) |
static void |
initialize(Class<?> clazz) |
static <T> T |
invokeConstructor(Constructor<? extends T> constructor,
Object... args) |
static boolean |
isAssignableFrom(Collection<Class<?>> classes,
Class<?> objectClass) |
static boolean |
isAssignableFrom(Collection<Class<?>> classes,
Object object) |
static boolean |
isDefinedInClassLoader(ClassLoader classLoader,
URL resourceUrl) |
static <T> T |
method(Method method,
Object object,
Object... args) |
static <T> T |
method(Object object,
String methodName,
Object... args) |
static boolean |
setProperty(Object object,
String propertyName,
Object value)
Set the value of the named property on the object.
|
public static void clearCache()
public static <V> V clone(V value)
value - The value to clone.public static <V> V createInstance(String className)
public static <T> Constructor<T> getConstructor(Class<T> clazz, Class<?>... parameterClasses)
public static <T> Constructor<T> getConstructor(String className, Class<?>... parameterClasses)
public static org.apache.commons.beanutils.ConvertUtilsBean getConvertutilsbean()
public static <T> T getProperty(Object object, String propertyName)
object - The object.propertyName - The name of the property.public static org.apache.commons.beanutils.PropertyUtilsBean getPropertyUtilsBean()
public static <T> T getSimpleProperty(Object object, String propertyName)
object - The object.propertyName - The name of the property.public static Class<?> getTypeParameterClass(Method method, Class<?> expectedRawClass)
public static void initialize(Class<?> clazz)
public static <T> T invokeConstructor(Constructor<? extends T> constructor, Object... args)
public static boolean isAssignableFrom(Collection<Class<?>> classes, Class<?> objectClass)
public static boolean isAssignableFrom(Collection<Class<?>> classes, Object object)
public static boolean isDefinedInClassLoader(ClassLoader classLoader, URL resourceUrl)
Copyright © 2015 Revolution Systems Inc.. All rights reserved.