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 { OAuthFlows } from '../../../core/models/common/OAuthFlows';
/**
 * Models an OpenAPI 3.0.x OAuth Flows.
 * @author eric.wittmann@gmail.com
 * @class
 * @extends OAuthFlows
 */
var Oas30OAuthFlows = /** @class */ (function (_super) {
    __extends(Oas30OAuthFlows, _super);
    function Oas30OAuthFlows() {
        return _super.call(this) || this;
    }
    /**
     * @see io.apicurio.datamodels.core.models.Node#accept(io.apicurio.datamodels.core.visitors.IVisitor)
     * @param {*} visitor
     */
    Oas30OAuthFlows.prototype.accept = function (visitor) {
        var viz = visitor;
        viz.visitOAuthFlows(this);
    };
    /**
     * @see io.apicurio.datamodels.core.models.common.OAuthFlows#createImplicitOAuthFlow()
     * @return {ImplicitOAuthFlow}
     */
    Oas30OAuthFlows.prototype.createImplicitOAuthFlow = function () {
        var rval = new Oas30ImplicitOAuthFlow();
        rval._ownerDocument = this.ownerDocument();
        rval._parent = this;
        return rval;
    };
    /**
     * @see io.apicurio.datamodels.core.models.common.OAuthFlows#createPasswordOAuthFlow()
     * @return {PasswordOAuthFlow}
     */
    Oas30OAuthFlows.prototype.createPasswordOAuthFlow = function () {
        var rval = new Oas30PasswordOAuthFlow();
        rval._ownerDocument = this.ownerDocument();
        rval._parent = this;
        return rval;
    };
    /**
     * @see io.apicurio.datamodels.core.models.common.OAuthFlows#createClientCredentialsOAuthFlow()
     * @return {ClientCredentialsOAuthFlow}
     */
    Oas30OAuthFlows.prototype.createClientCredentialsOAuthFlow = function () {
        var rval = new Oas30ClientCredentialsOAuthFlow();
        rval._ownerDocument = this.ownerDocument();
        rval._parent = this;
        return rval;
    };
    /**
     * @see io.apicurio.datamodels.core.models.common.OAuthFlows#createAuthorizationCodeOAuthFlow()
     * @return {AuthorizationCodeOAuthFlow}
     */
    Oas30OAuthFlows.prototype.createAuthorizationCodeOAuthFlow = function () {
        var rval = new Oas30AuthorizationCodeOAuthFlow();
        rval._ownerDocument = this.ownerDocument();
        rval._parent = this;
        return rval;
    };
    return Oas30OAuthFlows;
}(OAuthFlows));
export { Oas30OAuthFlows };
Oas30OAuthFlows["__class"] = "io.apicurio.datamodels.openapi.v3.models.Oas30OAuthFlows";
Oas30OAuthFlows["__interfaces"] = ["io.apicurio.datamodels.core.models.IVisitable"];
import { Oas30AuthorizationCodeOAuthFlow } from './Oas30AuthorizationCodeOAuthFlow';
import { Oas30ClientCredentialsOAuthFlow } from './Oas30ClientCredentialsOAuthFlow';
import { Oas30PasswordOAuthFlow } from './Oas30PasswordOAuthFlow';
import { Oas30ImplicitOAuthFlow } from './Oas30ImplicitOAuthFlow';
//# sourceMappingURL=Oas30OAuthFlows.js.map