throws IntrospectionException {
super(propertyName, null, null);
if (propertyName == null || propertyName.length() == 0) {
throw new IntrospectionException("bad property name: " +
propertyName + " on class: " + beanClass.getClass().getName());
}
setName(propertyName);
String base = capitalize(propertyName);
// Look for mapped get and set methods
try {
mappedReadMethod = findMethod(beanClass, "get" + base, 1,
stringClassArray);
Class params[] = { String.class, mappedReadMethod.getReturnType() };
mappedWriteMethod = findMethod(beanClass, "set" + base, 2, params);
} catch (IntrospectionException e) {
;
}
if ((mappedReadMethod == null) && (mappedWriteMethod == null)) {
throw new IntrospectionException("Property '" + propertyName +
"' not found on " +
beanClass.getName());
}
findMappedPropertyType();