mil.dod.th.ose.remote/src/mil/dod/th/ose/remote/api/EnumConverter.java
public static MissionStatus convertProgramStatusToMissionStatus(final ProgramStatus status)  //NOCHECKSTYLE:
            throws IllegalArgumentException  //high cyclomatic complexity, need to account for all program statuses
    {   
        if (MISSION_STATUS.containsValue(status))
        {
            return MISSION_STATUS.inverse().get(status);
        }
        throw new IllegalArgumentException(String.format("Invalid program status specified: %s", status));
    }
/**
     * Helper method that translates {@link ProgramStatus} to protocol buffer equivalents.
     * @param status
     *     the program status to translate
     * @return
     *     the protocol buffer equivalent
     * @throws IllegalArgumentException
     *     in the event that a status value is received that does not have a protocol buffer equivalent
     */
Helper method that translates  ProgramStatus to protocol buffer equivalents.
@param status
the program status to translate
@return
the protocol buffer equivalent
@throws IllegalArgumentException
in the event that a status value is received that does not have a protocol buffer equivalent
Helper method that translates ProgramStatus to protocol buffer equivalents . @param status the program status to translate @return the protocol buffer equivalent @throws IllegalArgumentException in the event that a status value is received that does not have a protocol buffer equivalent
public static MissionStatus convertProgramStatusToMissionStatus(final ProgramStatus status)  
            throws IllegalArgumentException  
    {   
        if (MISSION_STATUS.containsValue(status))
        {
            return MISSION_STATUS.inverse().get(status);
        }
        throw new IllegalArgumentException(String.format("Invalid program status specified: %s", status));
    }
public static MissionStatus convertProgramStatusToMissionStatus ( final ProgramStatus status ) throws IllegalArgumentException { if ( MISSION_STATUS . containsValue ( status ) ) { return MISSION_STATUS . inverse ( ) . get ( status ) ; } throw new IllegalArgumentException ( String . format ( "Invalid program status specified: %s" , status ) ) ; }
Helper method that translates {@link ProgramStatus} to protocol buffer equivalents.
Helper method that translates { @link ProgramStatus } to protocol buffer equivalents .
//NOCHECKSTYLE: //high cyclomatic complexity, need to account for all program statuses