mil.dod.th.ose.remote/src/mil/dod/th/ose/remote/api/EnumConverter.java
public static OperationMode convertProtoOperationModeToJava(final BaseMessages.OperationMode operationMode)
    {
        if (OPERATION_MODE.containsValue(operationMode))
        {
            return OPERATION_MODE.inverse().get(operationMode);
        }
        throw new IllegalArgumentException(String.format("Invalid proto operation mode specified: %s", 
                operationMode));
    }
/**
     * Method used to convert proto based {@link mil.dod.th.core.remote.proto.BaseMessages.OperationMode} to 
     * {@link OperationMode}.
     * 
     * @param operationMode
     *      The proto operation mode enumeration to be converted.
     * @return
     *      The java equivalent operation mode enumeration.
     */


@param operationMode
The proto operation mode enumeration to be converted.
@return
The java equivalent operation mode enumeration.
@param operationMode The proto operation mode enumeration to be converted . @return The java equivalent operation mode enumeration .
public static OperationMode convertProtoOperationModeToJava(final BaseMessages.OperationMode operationMode)
    {
        if (OPERATION_MODE.containsValue(operationMode))
        {
            return OPERATION_MODE.inverse().get(operationMode);
        }
        throw new IllegalArgumentException(String.format("Invalid proto operation mode specified: %s", 
                operationMode));
    }
public static OperationMode convertProtoOperationModeToJava ( final BaseMessages . OperationMode operationMode ) { if ( OPERATION_MODE . containsValue ( operationMode ) ) { return OPERATION_MODE . inverse ( ) . get ( operationMode ) ; } throw new IllegalArgumentException ( String . format ( "Invalid proto operation mode specified: %s" , operationMode ) ) ; }
Method used to convert proto based {@link mil.dod.th.core.remote.proto.BaseMessages.OperationMode} to
 {@link OperationMode}.
Method used to convert proto based { @link mil . dod . th . core . remote . proto . BaseMessages . OperationMode } to { @link OperationMode } .