|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.littleshoot.util.BeanUtils
public final class BeanUtils
Java bean utilities class.
| Method Summary | |
|---|---|
static Map<String,String> |
mapBean(Object bean)
Creates a Map from all bean data. |
static Map<String,String> |
mapBean(Object bean,
Set<String> excludes)
Creates a Map from all bean data get methods except the ones
specified to exclude. |
static Map<String,String> |
mapBean(Object bean,
String exclude)
Creates a Map from all bean data get methods except the one
specified to exclude. |
static void |
populateBean(Object bean,
Map<String,String> params)
Populates the specified bean with data from the specified map. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Map<String,String> mapBean(Object bean)
Map from all bean data.
bean - The bean with data to extract.
public static Map<String,String> mapBean(Object bean,
String exclude)
Map from all bean data get methods except the one
specified to exclude. Note that "getClass" is always excluded.
bean - The bean with data to extract.exclude - A method name to exclude.
public static Map<String,String> mapBean(Object bean,
Set<String> excludes)
Map from all bean data get methods except the ones
specified to exclude. Note that "getClass" is always excluded.
bean - The bean with data to extract.excludes - The method names to exclude.
public static void populateBean(Object bean,
Map<String,String> params)
bean - The object to populate.params - The map to populate the bean with.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||