|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjodd.bean.BeanTool
public class BeanTool
Various utilities that are applied on whole bean(s).
| Constructor Summary | |
|---|---|
BeanTool()
|
|
| Method Summary | |
|---|---|
static void |
apply(java.lang.Object source,
java.lang.Object destination)
Applies only public properties. |
static void |
apply(java.lang.Object source,
java.lang.Object destination,
boolean suppressSecurity)
Same as copy(Object, Object, boolean), except null values
are not copied. |
static java.lang.String |
attributesToString(java.lang.Object bean)
Constructs sorted string of all class attributes and their values. s |
static void |
copy(java.lang.Object source,
java.lang.Object destination)
Copies only public properties. |
static void |
copy(java.lang.Object source,
java.lang.Object destination,
boolean suppressSecurity)
Copies properties of one bean to another. |
static void |
load(java.lang.Object bean,
java.lang.Object source)
Populates bean from given object by using a loader for given objects type. |
static void |
load(java.lang.Object bean,
java.lang.Object source,
java.lang.Class type)
|
static java.lang.String[] |
resolveProperties(java.lang.Object bean,
boolean suppressSecurity)
Returns an array of bean properties. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BeanTool()
| Method Detail |
|---|
public static void copy(java.lang.Object source,
java.lang.Object destination,
boolean suppressSecurity)
source - source bean, one to read properties fromdestination - destination bean, to write properties tosuppressSecurity - true to suppress security
public static void apply(java.lang.Object source,
java.lang.Object destination,
boolean suppressSecurity)
copy(Object, Object, boolean), except null values
are not copied. Useful when destination object needs to be only partially updated.
public static void copy(java.lang.Object source,
java.lang.Object destination)
copy(Object, Object, boolean)
public static void apply(java.lang.Object source,
java.lang.Object destination)
apply(Object, Object, boolean)
public static java.lang.String[] resolveProperties(java.lang.Object bean,
boolean suppressSecurity)
public static void load(java.lang.Object bean,
java.lang.Object source)
public static void load(java.lang.Object bean,
java.lang.Object source,
java.lang.Class type)
public static java.lang.String attributesToString(java.lang.Object bean)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||