public static String getGetterPropertyName ( Member member ) { if ( member instanceof Field ) { return member . getName ( ) ; } else if ( member instanceof Method ) { String methodName = member . getName ( ) ; for ( String prefix : PROPERTY_ACCESSOR_PREFIXES ) { if ( methodName . startsWith ( prefix ) ) { return decapitalizePropertyName ( methodName . substring ( prefix . length ( ) ) ) ; } } } return null ; }
Returns the JavaBeans property name of the given member .