public static < E extends Enum < E > > E asEnum ( ModelNode value , Class < E > targetClass ) { return asEnum ( value , targetClass , null ) ; }
Returns the value of the node as an Enum value or null if the node is undefined .