software/test/performance/src/org/LexGrid/LexBIG/util/CodingSchemeSelectionMenu.java
/**
	 * Display the list of available coding schemes and process the user selection.
	 * @return A coding scheme summary correponding to the user selection; null if
	 * no selection is made or an error occurs.
	 */
Display the list of available coding schemes and process the user selection.
@return A coding scheme summary correponding to the user selection; null if
no selection is made or an error occurs.
Display the list of available coding schemes and process the user selection . @return A coding scheme summary correponding to the user selection ; null if no selection is made or an error occurs .
public CodingSchemeSummary displayAndGetSelection() {
		CodingSchemeSummary css = null;
		try {
			List<CodingSchemeSummary> choices = displayCodingSchemes();
			if (choices.size() > 0) {
				try {
					Util.displayMessage("Enter the number of the Coding scheme to use, then <Enter> :");
					int i = RemoteServerUtil2._serviceUrl.equals(RemoteServerUtil2.URL) ? 1 : 1;
                    boolean prompt = true;
					if (prompt) {
					    i = Prompt.prompt("Coding scheme", i);
					} else {
    					Util.displayMessage("FYI: Automatically selected: " + i);
                        Util.displayMessage("");
    					Util.displayMessage(SEPARATOR);
					}
					if (i > 0 && i <= choices.size())
						css = choices.get(i - 1);
					else
						Util.displayMessage("Entered value is out of range.");
				} catch (NumberFormatException nfe) {
					Util.displayMessage("Entered value must be numeric.");
				}
			} else {
				Util.displayMessage("No code systems are available.");
			}
		} catch (Exception e) {
			Util.displayAndLogError("An error occurred processing the available code systems", e);
		}
		return css;
	}
public CodingSchemeSummary displayAndGetSelection ( ) { CodingSchemeSummary css = null ; try { List < CodingSchemeSummary > choices = displayCodingSchemes ( ) ; if ( choices . size ( ) > 0 ) { try { Util . displayMessage ( "Enter the number of the Coding scheme to use, then <Enter> :" ) ; int i = RemoteServerUtil2 . _serviceUrl . equals ( RemoteServerUtil2 . URL ) ? 1 : 1 ; boolean prompt = true ; if ( prompt ) { i = Prompt . prompt ( "Coding scheme" , i ) ; } else { Util . displayMessage ( "FYI: Automatically selected: " + i ) ; Util . displayMessage ( "" ) ; Util . displayMessage ( SEPARATOR ) ; } if ( i > 0 && i <= choices . size ( ) ) css = choices . get ( i - 1 ) ; else Util . displayMessage ( "Entered value is out of range." ) ; } catch ( NumberFormatException nfe ) { Util . displayMessage ( "Entered value must be numeric." ) ; } } else { Util . displayMessage ( "No code systems are available." ) ; } } catch ( Exception e ) { Util . displayAndLogError ( "An error occurred processing the available code systems" , e ) ; } return css ; }
Display the list of available coding schemes and process the user selection.
Display the list of available coding schemes and process the user selection .
// Display choices ...
 // Process the user input ...
