public static < E extends Enum < E > > E asEnum ( ModelNode value , Class < E > targetClass ) { return Enum . valueOf ( targetClass , value . asString ( ) ) ; }
Returns the value of the node as an Enum value .