public class BeanUtilities extends Object
Constructor and Description |
---|
BeanUtilities() |
Modifier and Type | Method and Description |
---|---|
static Object |
getBeanPropertyValue(Type requiredType,
String attribute,
BeanInfo beanInfo)
Gets the value from the given attribute from the given bean
Safe to give both a bean-like map and a java bean
|
static String |
getParameterNameFromField(Field f,
boolean onlyDynamic)
Gets the parameter name from a field
|
static String |
getParameterNameFromMethod(Method m,
int paramIndex) |
static boolean |
hasDynamicParameter(Method m) |
static boolean |
isEmpty(String s) |
public static Object getBeanPropertyValue(Type requiredType, String attribute, BeanInfo beanInfo)
attribute
- bean
- public static boolean isEmpty(String s)
public static String getParameterNameFromField(Field f, boolean onlyDynamic)
f
- public static String getParameterNameFromMethod(Method m, int paramIndex)
public static boolean hasDynamicParameter(Method m)
Copyright © 2009-2017, Oracle and/or its affiliates. All Rights Reserved.