mil.dod.th.ose.sdk/src/mil/dod/th/ose/sdk/those/ThoseMain.java
private static void promptPhysicalLinkTypeEnum(final BufferedReader input, final ProjectProperties props) 
            throws IOException
    {
        boolean typeEntered = false;
        do
        {
            final String outString = String.format("Enter a Physical Link type (%s): ", formatPlTypesValueString());
            OUT_STREAM.print(outString);
            final String inputString = input.readLine();
        
            if (!Strings.isNullOrEmpty(inputString))
            {
                try
                {
                    //see if input is valid. if not will throw exception and ask for input again.
                    final PhysicalLinkTypeEnum plType = PhysicalLinkTypeEnum.fromValue(inputString);
                    props.setPhysicalLinkTypeEnum(plType);
                    typeEntered = true;
                }
                catch (final IllegalArgumentException ex)
                { //NOCHECKSTYLE:Need empty catch to be able to loop through and prompt for input
                    //catch the exception as an invalid link type has been given so that loop can continue
                }
            }
            
            if (!typeEntered)
            {
                OUT_STREAM.println(String.format("Invalid Physical Link type %s!", inputString));
            }
        
        } while (!typeEntered);
    }
/**
     * Method used to prompt the user to enter in the physical link type for the project. Method only applies
     * if plug-in is a physical link project.
     * @param input
     *  the {@link BufferedReader} that is used to read input from the command line
     * @param props
     *  the project properties for this project
     * @throws IOException 
     *  if there is an inability to read from the input stream associated with the console
     */
Method used to prompt the user to enter in the physical link type for the project. Method only applies
if plug-in is a physical link project.
@param input
the  BufferedReader that is used to read input from the command line
@param props
the project properties for this project
@throws IOException
if there is an inability to read from the input stream associated with the console
Method used to prompt the user to enter in the physical link type for the project . Method only applies if plug - in is a physical link project . @param input the BufferedReader that is used to read input from the command line @param props the project properties for this project @throws IOException if there is an inability to read from the input stream associated with the console
private static void promptPhysicalLinkTypeEnum(final BufferedReader input, final ProjectProperties props) 
            throws IOException
    {
        boolean typeEntered = false;
        do
        {
            final String outString = String.format("Enter a Physical Link type (%s): ", formatPlTypesValueString());
            OUT_STREAM.print(outString);
            final String inputString = input.readLine();
            if (!Strings.isNullOrEmpty(inputString))
            {
                try
                {
                    final PhysicalLinkTypeEnum plType = PhysicalLinkTypeEnum.fromValue(inputString);
                    props.setPhysicalLinkTypeEnum(plType);
                    typeEntered = true;
                }
                catch (final IllegalArgumentException ex)
                { 
                }
            }
            if (!typeEntered)
            {
                OUT_STREAM.println(String.format("Invalid Physical Link type %s!", inputString));
            }
        } while (!typeEntered);
    }
private static void promptPhysicalLinkTypeEnum ( final BufferedReader input , final ProjectProperties props ) throws IOException { boolean typeEntered = false ; do { final String outString = String . format ( "Enter a Physical Link type (%s): " , formatPlTypesValueString ( ) ) ; OUT_STREAM . print ( outString ) ; final String inputString = input . readLine ( ) ; if ( ! Strings . isNullOrEmpty ( inputString ) ) { try { final PhysicalLinkTypeEnum plType = PhysicalLinkTypeEnum . fromValue ( inputString ) ; props . setPhysicalLinkTypeEnum ( plType ) ; typeEntered = true ; } catch ( final IllegalArgumentException ex ) { } } if ( ! typeEntered ) { OUT_STREAM . println ( String . format ( "Invalid Physical Link type %s!" , inputString ) ) ; } } while ( ! typeEntered ) ; }
Method used to prompt the user to enter in the physical link type for the project.
Method used to prompt the user to enter in the physical link type for the project .
//see if input is valid. if not will throw exception and ask for input again. //NOCHECKSTYLE:Need empty catch to be able to loop through and prompt for input //catch the exception as an invalid link type has been given so that loop can continue