var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
import { OasParameter } from '../../models/OasParameter';
/**
 * Constructor.
 * @param {string} name
 * @class
 * @extends OasParameter
 * @author eric.wittmann@gmail.com
 */
var Oas20Parameter = /** @class */ (function (_super) {
    __extends(Oas20Parameter, _super);
    function Oas20Parameter(name) {
        var _this = this;
        if (((typeof name === 'string') || name === null)) {
            var __args = arguments;
            _this = _super.call(this, name) || this;
            if (_this.type === undefined)
                _this.type = null;
            if (_this.format === undefined)
                _this.format = null;
            if (_this.items === undefined)
                _this.items = null;
            if (_this.collectionFormat === undefined)
                _this.collectionFormat = null;
            if (_this.default_ === undefined)
                _this.default_ = null;
            if (_this.maximum === undefined)
                _this.maximum = null;
            if (_this.exclusiveMaximum === undefined)
                _this.exclusiveMaximum = null;
            if (_this.minimum === undefined)
                _this.minimum = null;
            if (_this.exclusiveMinimum === undefined)
                _this.exclusiveMinimum = null;
            if (_this.maxLength === undefined)
                _this.maxLength = null;
            if (_this.minLength === undefined)
                _this.minLength = null;
            if (_this.pattern === undefined)
                _this.pattern = null;
            if (_this.maxItems === undefined)
                _this.maxItems = null;
            if (_this.minItems === undefined)
                _this.minItems = null;
            if (_this.uniqueItems === undefined)
                _this.uniqueItems = null;
            if (_this.enum_ === undefined)
                _this.enum_ = null;
            if (_this.multipleOf === undefined)
                _this.multipleOf = null;
            if (_this.type === undefined)
                _this.type = null;
            if (_this.format === undefined)
                _this.format = null;
            if (_this.items === undefined)
                _this.items = null;
            if (_this.collectionFormat === undefined)
                _this.collectionFormat = null;
            if (_this.default_ === undefined)
                _this.default_ = null;
            if (_this.maximum === undefined)
                _this.maximum = null;
            if (_this.exclusiveMaximum === undefined)
                _this.exclusiveMaximum = null;
            if (_this.minimum === undefined)
                _this.minimum = null;
            if (_this.exclusiveMinimum === undefined)
                _this.exclusiveMinimum = null;
            if (_this.maxLength === undefined)
                _this.maxLength = null;
            if (_this.minLength === undefined)
                _this.minLength = null;
            if (_this.pattern === undefined)
                _this.pattern = null;
            if (_this.maxItems === undefined)
                _this.maxItems = null;
            if (_this.minItems === undefined)
                _this.minItems = null;
            if (_this.uniqueItems === undefined)
                _this.uniqueItems = null;
            if (_this.enum_ === undefined)
                _this.enum_ = null;
            if (_this.multipleOf === undefined)
                _this.multipleOf = null;
        }
        else if (name === undefined) {
            var __args = arguments;
            _this = _super.call(this) || this;
            if (_this.type === undefined)
                _this.type = null;
            if (_this.format === undefined)
                _this.format = null;
            if (_this.items === undefined)
                _this.items = null;
            if (_this.collectionFormat === undefined)
                _this.collectionFormat = null;
            if (_this.default_ === undefined)
                _this.default_ = null;
            if (_this.maximum === undefined)
                _this.maximum = null;
            if (_this.exclusiveMaximum === undefined)
                _this.exclusiveMaximum = null;
            if (_this.minimum === undefined)
                _this.minimum = null;
            if (_this.exclusiveMinimum === undefined)
                _this.exclusiveMinimum = null;
            if (_this.maxLength === undefined)
                _this.maxLength = null;
            if (_this.minLength === undefined)
                _this.minLength = null;
            if (_this.pattern === undefined)
                _this.pattern = null;
            if (_this.maxItems === undefined)
                _this.maxItems = null;
            if (_this.minItems === undefined)
                _this.minItems = null;
            if (_this.uniqueItems === undefined)
                _this.uniqueItems = null;
            if (_this.enum_ === undefined)
                _this.enum_ = null;
            if (_this.multipleOf === undefined)
                _this.multipleOf = null;
            if (_this.type === undefined)
                _this.type = null;
            if (_this.format === undefined)
                _this.format = null;
            if (_this.items === undefined)
                _this.items = null;
            if (_this.collectionFormat === undefined)
                _this.collectionFormat = null;
            if (_this.default_ === undefined)
                _this.default_ = null;
            if (_this.maximum === undefined)
                _this.maximum = null;
            if (_this.exclusiveMaximum === undefined)
                _this.exclusiveMaximum = null;
            if (_this.minimum === undefined)
                _this.minimum = null;
            if (_this.exclusiveMinimum === undefined)
                _this.exclusiveMinimum = null;
            if (_this.maxLength === undefined)
                _this.maxLength = null;
            if (_this.minLength === undefined)
                _this.minLength = null;
            if (_this.pattern === undefined)
                _this.pattern = null;
            if (_this.maxItems === undefined)
                _this.maxItems = null;
            if (_this.minItems === undefined)
                _this.minItems = null;
            if (_this.uniqueItems === undefined)
                _this.uniqueItems = null;
            if (_this.enum_ === undefined)
                _this.enum_ = null;
            if (_this.multipleOf === undefined)
                _this.multipleOf = null;
        }
        else
            throw new Error('invalid overload');
        return _this;
    }
    /**
     * @see io.apicurio.datamodels.core.models.common.Parameter#createSchema()
     * @return {Schema}
     */
    Oas20Parameter.prototype.createSchema = function () {
        var rval = new Oas20Schema();
        rval._ownerDocument = this.ownerDocument();
        rval._parent = this;
        return rval;
    };
    /**
     * Creates an Items.
     * @return {Oas20Items}
     */
    Oas20Parameter.prototype.createItems = function () {
        var rval = new Oas20Items();
        rval._ownerDocument = this.ownerDocument();
        rval._parent = this;
        return rval;
    };
    return Oas20Parameter;
}(OasParameter));
export { Oas20Parameter };
Oas20Parameter["__class"] = "io.apicurio.datamodels.openapi.v2.models.Oas20Parameter";
Oas20Parameter["__interfaces"] = ["io.apicurio.datamodels.core.models.IVisitable", "io.apicurio.datamodels.core.models.IReferenceNode", "io.apicurio.datamodels.core.models.common.INamed"];
import { Oas20Schema } from './Oas20Schema';
import { Oas20Items } from './Oas20Items';
//# sourceMappingURL=Oas20Parameter.js.map