public static <E extends Enum<E>> E asEnum(ModelNode value, Class<E> targetClass) {
        return Enum.valueOf(targetClass, value.asString());
    }
public static <E extends Enum<E>> E asEnum(ModelNode value, Class<E> targetClass) {
        return Enum.valueOf(targetClass, value.asString());
    }
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.
@param value a model node
@return the value of the node as an Enum.
Returns the value of the node as an Enum value .