public final class Beans extends Object
Constructor and Description |
---|
Beans() |
Modifier and Type | Method and Description |
---|---|
static Map<String,PropertyDescriptor> |
introspect(Class<?> beanClass) |
static Object |
readProperty(Object bean,
PropertyDescriptor descriptor)
Returns the contents of the given property for the given bean.
|
static void |
writeProperty(Object bean,
PropertyDescriptor descriptor,
Object value)
Sets the contents of the given property on the given source object to the given value.
|
public static Object readProperty(Object bean, PropertyDescriptor descriptor)
bean
- the source beandescriptor
- the property to retrievepublic static void writeProperty(Object bean, PropertyDescriptor descriptor, Object value)
bean
- the source object which has the property being updateddescriptor
- the property being changedvalue
- the new value of the propertypublic static Map<String,PropertyDescriptor> introspect(Class<?> beanClass)
beanClass
- Copyright © 2019 Eclipse Paho. All rights reserved.