/** * Get the type of a field from a class * @param type any class * @param fieldName the name of the field (property) or a getter method converted to a field name * @return the type of object stored in the field * @throws FieldnameNotFoundException if the fieldName could not be found in this object */ public Class<?> getFieldType(Class<?> type, String fieldName) { return getFieldUtils().getFieldType(type, fieldName); }
/** * Get the type of a field from a class * @param type any class * @param fieldName the name of the field (property) or a getter method converted to a field name * @return the type of object stored in the field * @throws FieldnameNotFoundException if the fieldName could not be found in this object */ public Class<?> getFieldType(Class<?> type, String fieldName) { return getFieldUtils().getFieldType(type, fieldName); }
Class<?> type = getFieldType(obj, name); value = getConversionUtils().convert(value, type);
Class<?> type = getFieldType(obj, name); value = getConversionUtils().convert(value, type);
Class<?> type = getFieldType(obj, next); if (Object.class.equals(type)) {
Class<?> type = getFieldType(obj, next); if (Object.class.equals(type)) {
return getFieldType((Class<?>)obj, name); // EXIT
return getFieldType((Class<?>)obj, name); // EXIT