|
GWT 2.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.editor.client.AutoBeanUtils
public final class AutoBeanUtils
Utility methods for working with AutoBeans.
| Method Summary | ||
|---|---|---|
static java.util.Map<java.lang.String,java.lang.Object> |
diff(AutoBean<?> a,
AutoBean<?> b)
Returns a map of properties that differ between two AutoBeans. |
|
static java.util.Map<java.lang.String,java.lang.Object> |
getAllProperties(AutoBean<?> bean)
Returns a map that is a copy of the properties contained in an AutoBean. |
|
static
|
getAutoBean(U delegate)
Return the single AutoBean wrapper that is observing the delegate object or null if the parameter is nullor not wrapped by
an AutoBean. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.util.Map<java.lang.String,java.lang.Object> diff(AutoBean<?> a,
AutoBean<?> b)
b. Properties present in a but missing in
b will be represented by null values. This
implementation will compare AutoBeans of different parameterizations,
although the diff produced is likely meaningless.
This will work for both simple and wrapper AutoBeans.
a - an AutoBeanb - an AutoBean
Map of differing propertiespublic static java.util.Map<java.lang.String,java.lang.Object> getAllProperties(AutoBean<?> bean)
bean - an AutoBean
Map of the bean's propertiespublic static <T,U extends T> AutoBean<T> getAutoBean(U delegate)
null if the parameter is nullor not wrapped by
an AutoBean.
delegate - a delegate object, or null
AutoBean wrapper for the delegate, or null
|
GWT 2.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||