mil.dod.th.core/src/mil/dod/th/core/controller/TerraHarvestController.java
public static OperationMode fromValue(final String value)
        {
            for (OperationMode mode : OperationMode.values())
            {
                if (mode.value().equals(value))
                {
                    return mode;
                }
            }
            
            throw new IllegalArgumentException(value + " not a valid operation mode");
        }
/**
         * Get the enum value given the string representation.
         * 
         * @param value
         *      string representation
         * @return
         *      enum value
         */
Get the enum value given the string representation.

@param value
string representation
@return
enum value
Get the enum value given the string representation . @param value string representation @return enum value
public static OperationMode fromValue(final String value)
        {
            for (OperationMode mode : OperationMode.values())
            {
                if (mode.value().equals(value))
                {
                    return mode;
                }
            }
            throw new IllegalArgumentException(value + " not a valid operation mode");
        }
public static OperationMode fromValue ( final String value ) { for ( OperationMode mode : OperationMode . values ( ) ) { if ( mode . value ( ) . equals ( value ) ) { return mode ; } } throw new IllegalArgumentException ( value + " not a valid operation mode" ) ; }
Get the enum value given the string representation.
Get the enum value given the string representation .