String to Enum Java

EnumType.valueOf(yourString)
Excited Echidna