public static String parsePropertyName ( Method method ) { String name = method . getName ( ) ; int i = 0 ; if ( name . startsWith ( "get" ) || name . startsWith ( "set" ) ) { i = 3 ; } else if ( name . startsWith ( "is" ) ) { i = 2 ; } return Character . toLowerCase ( name . charAt ( i ) ) + name . substring ( i + 1 ) ; }
Parses the method name to return a property name if it is a getter or a setter .