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 { SecurityScheme } from '../../../core/models/common/SecurityScheme';
/**
 * Constructor.
 * @param {string} schemeName
 * @class
 * @extends SecurityScheme
 * @author eric.wittmann@gmail.com
 */
var Oas20SecurityScheme = /** @class */ (function (_super) {
    __extends(Oas20SecurityScheme, _super);
    function Oas20SecurityScheme(schemeName) {
        var _this = _super.call(this, schemeName) || this;
        if (_this.flow === undefined)
            _this.flow = null;
        if (_this.authorizationUrl === undefined)
            _this.authorizationUrl = null;
        if (_this.tokenUrl === undefined)
            _this.tokenUrl = null;
        if (_this.scopes === undefined)
            _this.scopes = null;
        return _this;
    }
    /**
     * Create the scopes.
     * @return {Oas20Scopes}
     */
    Oas20SecurityScheme.prototype.createScopes = function () {
        var scopes = new Oas20Scopes();
        scopes._ownerDocument = this.ownerDocument();
        scopes._parent = this;
        return scopes;
    };
    return Oas20SecurityScheme;
}(SecurityScheme));
export { Oas20SecurityScheme };
Oas20SecurityScheme["__class"] = "io.apicurio.datamodels.openapi.v2.models.Oas20SecurityScheme";
Oas20SecurityScheme["__interfaces"] = ["io.apicurio.datamodels.core.models.IVisitable", "io.apicurio.datamodels.core.models.common.INamed"];
import { Oas20Scopes } from './Oas20Scopes';
//# sourceMappingURL=Oas20SecurityScheme.js.map