public static PropertyDescriptor getPropertyDescriptorFromArray ( Class targetClass , String name ) throws IntrospectionException { PropertyDescriptor result = null ; PropertyDescriptor [ ] pda = getPropertyDescriptorsArray ( targetClass ) ; for ( int i = 0 , icount = pda . length ; ( result == null ) && ( i < icount ) ; i ++ ) { if ( pda [ i ] . getName ( ) . compareTo ( name ) == 0 ) { result = pda [ i ] ; } } return result ; }
Gets the property descriptor with the given name for the target class given .