org.jfree.report.util.beans

Class BeanUtility


public final class BeanUtility
extends java.lang.Object

The BeanUtility class enables access to bean properties using the reflection API.
Author:
Thomas Morgner

Constructor Summary

BeanUtility(Object o)

Method Summary

BeanUtility
derive(Object o)
String[]
getProperties()
Object
getProperty(String name)
String
getPropertyAsString(String name)
PropertyDescriptor[]
getPropertyInfos()
static Class
getPropertyType(PropertyDescriptor pd)
Class
getPropertyType(String name)
void
setProperty(String name, Object o)
void
setPropertyAsString(String name, Class type, String txt)
void
setPropertyAsString(String name, String txt)

Constructor Details

BeanUtility

public BeanUtility(Object o)
            throws IntrospectionException

Method Details

derive

public BeanUtility derive(Object o)

getProperties

public String[] getProperties()
            throws BeanException

getProperty

public Object getProperty(String name)
            throws BeanException

getPropertyAsString

public String getPropertyAsString(String name)
            throws BeanException

getPropertyInfos

public PropertyDescriptor[] getPropertyInfos()

getPropertyType

public static Class getPropertyType(PropertyDescriptor pd)
            throws BeanException

getPropertyType

public Class getPropertyType(String name)
            throws BeanException

setProperty

public void setProperty(String name,
                        Object o)
            throws BeanException

setPropertyAsString

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

setPropertyAsString

public void setPropertyAsString(String name,
                                String txt)
            throws BeanException