public function setNamespace($v)
    {
        if ($v == $this->namespace) {
            return;
        }
        $this->namespace = $v;
        if ($v && (!$this->pkg || $this->pkgOverridden) && $this->getBuildProperty('namespaceAutoPackage')) {
            $this->pkg = str_replace('\\', '.', $v);
            $this->pkgOverridden = true;
        }
    }