/** * Returns a getter method for a property of java bean. * * @param clazz The type of the bean. * @param property The property name. * @param type The type of the property, may be null. * @return The setter method, or <code>null</code> if not found. */ public static Method getter(Class clazz, String property, Class type) { return classProperties(clazz).getter(property, type); }
Method getter(String propertyName) { Method g = null; try { g = proxyObject.getClass().getMethod("get" + propertyName, null); } catch (NoSuchMethodException e1) { // could be boolean try { g = proxyObject.getClass().getMethod("is" + propertyName, null); } catch (NoSuchMethodException e2) { } } if (g == null) { g = cp().getter(propertyName, null); } return g; }
return getter(lax, type);
ClassProperties properties = OwsUtils.getClassProperties(object.getClass()); for (String property : properties.properties()) { Method g = properties.getter(property, null); if (g == null) { continue;
ClassProperties properties = getClassProperties(clazz); for (String p : properties.properties()) { Method getter = properties.getter(p, null); if (getter == null) { continue; // should not really happen
new Property( p, classProps.getter(p, null).getReturnType(), () -> { Object value;