public function setName($name) {
        if (strlen($name) > self::MAX_NAME_LENGTH) {
            throw new Exception("Field name cannot be longer than ".self::MAX_NAME_LENGTH." characters");
        }
        $this->name = $name;
        return $this;
    }