/** * Checks whether the property is valid or not. */ private boolean isValid(Method setMethod, Class loadedClass) { Method getMethod = correspondingGetMethod( setMethod, loadedClass); if (getMethod != null) { return RARUtils.isValidRABeanConfigProperty(getMethod.getReturnType()); } else { return false; } }
private static Map getJavaBeanProperties(Class c) { Method[] m = c.getMethods(); Map hMap = new HashMap(); for (int i = 0; i < m.length; i++) { if(_logger.isLoggable(Level.FINER)) { _logger.finer(m[i].getName()); } if(m[i].getName().startsWith("get") && isValidRABeanConfigProperty(m[i].getReturnType())) { hMap.put(m[i].getName().substring(3), m[i].getReturnType()); } } //remove Object's Class attribute. hMap.remove("Class"); return hMap; }