private void initiateParameterMap2 ( EntryReact entry ) { List < List < String >> paramDic = entry . getParameterClass ( ) ; paramsMap2 = new ArrayList < IParameterReact > ( ) ; for ( Iterator < List < String > > it = paramDic . iterator ( ) ; it . hasNext ( ) ; ) { List < String > param = it . next ( ) ; String paramName = "org.openscience.cdk.reaction.type.parameters." + param . get ( 0 ) ; try { IParameterReact ipc = ( IParameterReact ) this . getClass ( ) . getClassLoader ( ) . loadClass ( paramName ) . newInstance ( ) ; ipc . setParameter ( Boolean . parseBoolean ( param . get ( 1 ) ) ) ; ipc . setValue ( param . get ( 2 ) ) ; logger . info ( "Loaded parameter class: " , paramName ) ; paramsMap2 . add ( ipc ) ; } catch ( ClassNotFoundException exception ) { logger . error ( "Could not find this IParameterReact: " , paramName ) ; logger . debug ( exception ) ; } catch ( InstantiationException | IllegalAccessException exception ) { logger . error ( "Could not load this IParameterReact: " , paramName ) ; logger . debug ( exception ) ; } } }
Creates a map with the name and type of the parameters .