|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.cache.util.BeanUtils
public class BeanUtils
Simple JavaBean manipulation helper methods
Constructor Summary | |
---|---|
BeanUtils()
|
Method Summary | |
---|---|
static Method |
getterMethod(Class target,
Class componentClass)
Returns a Method object corresponding to a getter that retrieves an instance of componentClass from target. |
static String |
getterName(Class componentClass)
Returns a getter for a given class |
static Method |
setterMethod(Class target,
Class componentClass)
Returns a Method object corresponding to a setter that sets an instance of componentClass from target. |
static String |
setterName(Class componentClass)
Returns a setter for a given class |
static String |
setterName(String fieldName)
Retrieves a setter name based on a field name passed in |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BeanUtils()
Method Detail |
---|
public static String setterName(String fieldName)
fieldName
- field name to find setter for
public static String getterName(Class componentClass)
componentClass
- class to find getter for
public static String setterName(Class componentClass)
componentClass
- class to find setter for
public static Method getterMethod(Class target, Class componentClass)
target
- class that the getter should exist oncomponentClass
- component to get
public static Method setterMethod(Class target, Class componentClass)
target
- class that the setter should exist oncomponentClass
- component to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |