public String getReadMethod ( ) { if ( getterName != null ) { return getterName ; } String prefix ; if ( "boolean" . equals ( this . type ) ) { prefix = "is" ; } else { prefix = "get" ; } return prefix + this . name . substring ( 0 , 1 ) . toUpperCase ( ) + this . name . substring ( 1 ) ; }
Creates the String name for the get method for a field with the given name and type