how to set Enum from configuration
<p>I'm reading configuration from an xml file. I have a property called <code>linkType</code> in my configuration. I have equivalent enum class in my project which declares two types of link. </p>

<p>How can I set enum type from String? if I read <code>EMPTY</code> from configuration and if I have linkType.EMPTY declared enum how will I set this to EMPTY?</p>

<p>Because further in my code I have a switch statement on this enum but I can't set it from configuration</p>
