def isValid(self, value):
        return value is None if self._onlyNullAllowed else value is not None
Tests if the given value is valid.
dataset/ETHPy150Open rwl/muntjac/muntjac/data/validators/null_validator.py/NullValidator.isValid