public final class BeanUtility extends Object
Constructor and Description |
---|
BeanUtility(Object o) |
Modifier and Type | Method and Description |
---|---|
String[] |
getProperties() |
Object |
getProperty(String name) |
String |
getPropertyAsString(String name) |
PropertyDescriptor[] |
getPropertyInfos() |
static Class |
getPropertyType(PropertyDescriptor pd) |
Class |
getPropertyType(String name) |
static boolean |
isSameType(Class declared,
Class object) |
void |
reconfigure(Object o) |
void |
setProperty(String name,
Object o) |
void |
setPropertyAsString(String name,
Class type,
String txt) |
void |
setPropertyAsString(String name,
String txt) |
public BeanUtility(Object o) throws IntrospectionException
IntrospectionException
public void reconfigure(Object o) throws IntrospectionException
IntrospectionException
public PropertyDescriptor[] getPropertyInfos()
public Object getProperty(String name) throws BeanException
BeanException
public String getPropertyAsString(String name) throws BeanException
BeanException
public void setProperty(String name, Object o) throws BeanException
BeanException
public void setPropertyAsString(String name, String txt) throws BeanException
BeanException
public Class getPropertyType(String name) throws BeanException
BeanException
public static Class getPropertyType(PropertyDescriptor pd) throws BeanException
BeanException
public void setPropertyAsString(String name, Class type, String txt) throws BeanException
BeanException
public String[] getProperties() throws BeanException
BeanException