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 __());
    };
})();
/* Generated from Java with JSweet 2.3.7 - http://www.jsweet.org */
import { Parameter } from '../../core/models/common/Parameter';
/**
 * Constructor.
 * @param {string} name
 * @class
 * @extends Parameter
 * @author eric.wittmann@gmail.com
 */
var OasParameter = /** @class */ (function (_super) {
    __extends(OasParameter, _super);
    function OasParameter(name) {
        var _this = this;
        if (((typeof name === 'string') || name === null)) {
            var __args = arguments;
            _this = _super.call(this, name) || this;
            if (_this.in === undefined)
                _this.in = null;
            if (_this.required === undefined)
                _this.required = null;
            if (_this.allowEmptyValue === undefined)
                _this.allowEmptyValue = null;
            if (_this.in === undefined)
                _this.in = null;
            if (_this.required === undefined)
                _this.required = null;
            if (_this.allowEmptyValue === undefined)
                _this.allowEmptyValue = null;
        }
        else if (name === undefined) {
            var __args = arguments;
            _this = _super.call(this) || this;
            if (_this.in === undefined)
                _this.in = null;
            if (_this.required === undefined)
                _this.required = null;
            if (_this.allowEmptyValue === undefined)
                _this.allowEmptyValue = null;
            if (_this.in === undefined)
                _this.in = null;
            if (_this.required === undefined)
                _this.required = null;
            if (_this.allowEmptyValue === undefined)
                _this.allowEmptyValue = null;
        }
        else
            throw new Error('invalid overload');
        return _this;
    }
    return OasParameter;
}(Parameter));
export { OasParameter };
OasParameter["__class"] = "io.apicurio.datamodels.openapi.models.OasParameter";
OasParameter["__interfaces"] = ["io.apicurio.datamodels.core.models.IVisitable", "io.apicurio.datamodels.core.models.IReferenceNode", "io.apicurio.datamodels.core.models.common.INamed"];
//# sourceMappingURL=OasParameter.js.map