{@inheritDoc}

@throws SuperCsvCellProcessorException
if value is null or is not a Boolean
518084
public Object execute(final Object value, final CsvContext context) {
		validateInputNotNull(value, context);
		
		if( !(value instanceof Boolean) ) {
			throw new SuperCsvCellProcessorException(Boolean.class, value, context, this);
		}
		
		final String result = ((Boolean) value).booleanValue() ? trueValue : falseValue;
		return next.execute(result, context);
	}
204879
public JBBPOut Bool(final boolean... value) throws IOException {
    assertNotEnded();
    assertArrayNotNull(value);
    if (this.processCommands) {
      for (final boolean b : value) {
        this.outStream.write(b ? 1 : 0);
      }
    }
    return this;
  }
1141264
public Object execute(final Object value, final CsvContext context) {
		
		if( !collection.contains(value) ) {
			throw new SuperCsvConstraintViolationException(String.format(
				"'%s' is not an element of the supplied Collection", value), context, this);
		}
		
		return next.execute(value, context);
	}
8970
public Object execute(final Object value, final CsvContext context) {
		if (value == null){
			throw new SuperCsvConstraintViolationException("null value encountered", context, this);
		}
		return next.execute(value, context);
	}
1069581
static public function notNull($value, $message = null, $propertyPath = null)
        {
            if ($value === null) {
                $message = $message ?: sprintf(
                    'Value "%s" is null, but non null value was expected.',
                    static::stringify($value)
                );

                throw static::createException($value, $message, static::VALUE_NULL, $propertyPath);
            }
        }
776357
static boolean castToBoolean(final Object in) throws PSQLException {
    if (LOGGER.isLoggable(Level.FINE)) {
      LOGGER.log(Level.FINE, "Cast to boolean: \"{0}\"", String.valueOf(in));
    }
    if (in instanceof Boolean) {
      return (Boolean) in;
    }
    if (in instanceof String) {
      return fromString((String) in);
    }
    if (in instanceof Character) {
      return fromCharacter((Character) in);
    }
    if (in instanceof Number) {
      return fromNumber((Number) in);
    }
    throw new PSQLException("Cannot cast to boolean", PSQLState.CANNOT_COERCE);
  }
755808
private boolean getBooleanValue(final Value value, final boolean defaultValue) {

		if (value != null && value instanceof BooleanValue) {

			return ((BooleanValue)value).isValue();
		}

		return defaultValue;
	}
1091670
public Object execute(final Object value, final CsvContext context) {
		validateInputNotNull(value, context);
		
		final String stringValue = value.toString();
		
		for( String forbidden : forbiddenSubStrings ) {
			if( stringValue.contains(forbidden) ) {
				throw new SuperCsvConstraintViolationException(String.format(
					"'%s' contains the forbidden substring '%s'", value, forbidden), context, this);
			}
		}
		
		return next.execute(value, context);
	}
343080
public static boolean toBoolean(Object value, EvaluationContext ctx) {
        if (value instanceof Boolean) {
            return (Boolean) value;
        }
        else if (value instanceof Integer) {
            return ((Integer) value) != 0;
        }
        else if (value instanceof BigDecimal) {
            return !value.equals(BigDecimal.ZERO);
        }
        else if (value instanceof String) {
            String strVal = (String) value;
            if (strVal.equalsIgnoreCase("TRUE")) {
                return true;
            }  else if (strVal.equalsIgnoreCase("FALSE")) {
                return false;
            }
        }
        else if (value instanceof LocalDate || value instanceof OffsetTime || value instanceof ZonedDateTime) {
            return true;
        }

        throw new EvaluationError("Can't convert '" + value + "' to a boolean");
    }
824007
private static boolean toBoolean(String value, boolean defaultValue) {

	if (value == null || value.trim().length() == 0) return defaultValue;

	try {
	    return Caster.toBooleanValue(value.trim());
	}
	catch (PageException e) {
	    return defaultValue;
	}
    }
375464
public void setBool(Boolean value) {
		this.checkNull(value);
		list.add(value);
		type.add(Boolean.class);
	}
1143466
public void writeBoolean(boolean value) throws UnsupportedEncodingException {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "writeBoolean", Boolean.valueOf(value));
    getBodyList().add(Boolean.valueOf(value));
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "writeBoolean");
  }
909079
private boolean nullOrValue(String test, String value) {
    if (test == null)
      return true;
    if (test.equals(value))
      return true;
    return false;
  }
544467
boolean casValue(Object cmp, Object val) {
            return U.compareAndSwapObject(this, VALUE, cmp, val);
        }
1112502
public Object execute(final Object value, final CsvContext context) {
		validateInputNotNull(value, context);
		
		if( value.equals(token) ) {
			return returnValue;
		}
		
		return next.execute(value, context);
	}
1275404
public function asBoolean(): Primitive\Boolean
    {
        if (!$this->_element instanceof Primitive\Boolean) {
            throw new \UnexpectedValueException(
                $this->_generateExceptionMessage(Element::TYPE_BOOLEAN));
        }
        return $this->_element;
    }
674760
public static function mustBeNullableBoolean($value)
    {
        if (is_bool($value) === false && $value != null) {
            throw new MWrongTypeException('\$value', 'boolean|null', gettype($value));
        }
    }