Validates a given value to be false

@param value The value to check
@param name The name of the field to display the error message
195993
public void validateFalse(boolean value, String name) {
        validateFalse(value, name, messages.get(Validation.FALSE_KEY.name(), name));
    }
251185
public static void checkForValidName(final Node node, final String name)
    {
        if (!ValidationUtil.isSbeCppName(name))
        {
            handleWarning(node, "name is not valid for C++: " + name);
        }

        if (!ValidationUtil.isSbeJavaName(name))
        {
            handleWarning(node, "name is not valid for Java: " + name);
        }

        if (!ValidationUtil.isSbeGolangName(name))
        {
            handleWarning(node, "name is not valid for Golang: " + name);
        }

        if (!ValidationUtil.isSbeCSharpName(name))
        {
            handleWarning(node, "name is not valid for C#: " + name);
        }
    }
1232329
private static Integer checkQuietly(final String name, final Integer value)
	{
		Integer val = 50;
		try
		{
			val = Args.withinRange(0, 100, value, name);
		}
		catch (final IllegalArgumentException e)
		{
			LOGGER.error(String.format(
				"Given argument '%s' must have a value within [%s,%s], but was %s. Default value 50% will be set.",
				name, 0, 100, value));
		}
		return val;

	}
334110
<T extends Validatable> void validatePOJO(final T pojo, final String name) {
    try {
      pojo.validate();
    } catch (final IllegalArgumentException e) {
      throw new IllegalArgumentException("Invalid " + name, e);
    }
  }
438862
protected void addValidValue(String value)
	{
		if(value!=null && !value.isEmpty())
			validValues.add(value.toLowerCase());
	}
1081697
private function validateProperty($name, $value)
    {
        if (in_array($name, [MessageInterface::CREATED], true)) {
            if (is_null($value) || $value instanceof TimePoint) {
                return;
            }

            throw new Exception(sprintf(self::ERR_INVALID_TIME, $name));
        }

        if (is_scalar($value) || is_null($value)) {
            return;
        }

        if (is_object($value) && is_callable([$value, '__toString'])) {
            return;
        }

        throw new Exception(sprintf(self::ERR_UNRENDERABLE, $name));
    }
464407
public void setHeaderValue(String name,String value)
    {
        _fields.put(name,Collections.singletonList(value));
    }
383472
@NonNull
    public Parameters setBoolean(@NonNull String name, boolean value) {
        return setValue(name, value);
    }
666501
private function validate(string $name, $value): bool
    {
        if (! isset($this->validators[$name])) {
            return true;
        }

        $errors = [];

        $isValid = true;
        foreach ($this->validators[$name] as $validator) {
            if (! $validator->is_valid($value)) {
                $errors = array_merge($errors, $validator->get_error_messages());
                $isValid = false;
            }
        }

        $element = $this->element($name);
        if ($element instanceof ErrorAwareInterface) {
            $element->withErrors($errors);
        }

        return $isValid;
    }
607212
public void setBooleanValueForIn(boolean value, String name, Map<String, Object> map) {
        setValueForIn(Boolean.valueOf(value), name, map);
    }
632834
public synchronized void setValue(String name, String value) {
        if (map == null) {
            map = new HashMap<String,String>();
        }
        map.put(name, value);
    }
619259
public function setValue($name, $value)
    {
        // handle field
        if (static::fieldExists($name)) {
            $this->_setFieldValue($name, $value);
        }
        // undefined
        else {
            return false;
        }
    }
112360
def validate(self, value):
        """"""
        if value is not None and not isinstance(value, bool):
            raise ValidationError("field must be a boolean")

        super().validate(value)
103538
public static void assertFalse(String message, boolean value) {
        if (!value) {
            pass(message);
        } else {
            fail(message, null);
        }
    }
159413
public void set(String name, Object value) {
        if (value != null) {
            attributes.put(name, String.valueOf(value));
        } else {
            attributes.remove(name);
        }

    }
1044787
public static ErrorCode isNameValid(String name) {
        if (!isMustFieldValid(name, nameRegEx)) {
            return ErrorCode.SERVICE_INSTANCE_NAME_FORMAT_ERROR;
        }
        return ErrorCode.OK;
    }
647037
function assertBoolean(value, name, description) {
  if (!underscore.isBoolean(value)) {
    throw new Error(
        '<' + value + '> is not a boolean, ' + name + ': ' + description);
  }
}