public static void initAllRuntimeParameterValues ( QueryParameter param , List < IdName > values , Map < String , Object > parameterValues ) throws QueryException { if ( param . getSelection ( ) . equals ( QueryParameter . SINGLE_SELECTION ) ) { parameterValues . put ( param . getName ( ) , values . get ( 0 ) ) ; } else { Object [ ] val = new Object [ values . size ( ) ] ; for ( int k = 0 , size = values . size ( ) ; k < size ; k ++ ) { val [ k ] = values . get ( k ) ; } parameterValues . put ( param . getName ( ) , val ) ; } }
Init parameter values map with all the values