public static int stringToActionType(String str){
  if (str != null) {
    for (int i=1; i <= Conditional.NUM_ACTION_TYPES; i++) {
      if (str.equals(getActionTypeString(i))) {
        return (i);
      }
    }
  }
  log.warn("Unexpected parameter to stringToActionType(" + str + ")");
  return 0;
}

public static int stringToActionType ( String str ) { if ( str != null ) { for ( int i = 1 ; i <= Conditional . NUM_ACTION_TYPES ; i ++ ) { if ( str . equals ( getActionTypeString ( i ) ) ) { return ( i ) ; } } } log . warn ( "Unexpected parameter to stringToActionType(" + str + ")" ) ; return 0 ; }
identifies action type from text string note : if string does not correspond to an action type as defined in conditionalaction , returns 0 .
