org.jfree.report.util.beans

Class BeanUtility

public final class BeanUtility extends Object

The BeanUtility class enables access to bean properties using the reflection API.

Author: Thomas Morgner

Constructor Summary
BeanUtility(Object o)
Method Summary
BeanUtilityderive(Object o)
String[]getProperties()
ObjectgetProperty(String name)
StringgetPropertyAsString(String name)
PropertyDescriptor[]getPropertyInfos()
ClassgetPropertyType(String name)
static ClassgetPropertyType(PropertyDescriptor pd)
voidsetProperty(String name, Object o)
voidsetPropertyAsString(String name, String txt)
voidsetPropertyAsString(String name, Class type, String txt)

Constructor Detail

BeanUtility

public BeanUtility(Object o)

Method Detail

derive

public BeanUtility derive(Object o)

getProperties

public String[] getProperties()

getProperty

public Object getProperty(String name)

getPropertyAsString

public String getPropertyAsString(String name)

getPropertyInfos

public PropertyDescriptor[] getPropertyInfos()

getPropertyType

public Class getPropertyType(String name)

getPropertyType

public static Class getPropertyType(PropertyDescriptor pd)

setProperty

public void setProperty(String name, Object o)

setPropertyAsString

public void setPropertyAsString(String name, String txt)

setPropertyAsString

public void setPropertyAsString(String name, Class type, String txt)