docs: function (name) {
              this.__initValidation();
              var ret;
              if (isFunction(name)) {
                  name.call(this, this.__getValidator.bind(this));
                  ret = this;
              } else if (isString(name)) {
                  ret = this.__getValidator(name);
              } else {
                  throw new ModelError("name is must be a string or function when validating");
              }
              return ret;
          }