public function setFormat($format)
    {
        if (Format::isString256($format) === true) {
            $this->format = $format;
        } else {
            $msg = "The 'format' argument must be a string with at most 256 characters, '" . $format . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }