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 { OasDataModelReaderDispatcher } from '../../io/OasDataModelReaderDispatcher';
/**
 * Constructor.
 * @param {*} json
 * @param {Oas30DataModelReader} reader
 * @class
 * @extends OasDataModelReaderDispatcher
 * @author eric.wittmann@gmail.com
 */
var Oas30DataModelReaderDispatcher = /** @class */ (function (_super) {
    __extends(Oas30DataModelReaderDispatcher, _super);
    function Oas30DataModelReaderDispatcher(json, reader) {
        return _super.call(this, json, reader) || this;
    }
    /**
     * Casts the reader.
     * @return {Oas30DataModelReader}
     * @private
     */
    /*private*/ Oas30DataModelReaderDispatcher.prototype.oas30Reader = function () {
        return this.reader;
    };
    /**
     * @see io.apicurio.datamodels.openapi.v3.visitors.IOas30Visitor#visitComponents(io.apicurio.datamodels.core.models.common.Components)
     * @param {Components} node
     */
    Oas30DataModelReaderDispatcher.prototype.visitComponents = function (node) {
        this.oas30Reader().readComponents(this.json, node);
    };
    /**
     * @see io.apicurio.datamodels.openapi.v3.visitors.IOas30Visitor#visitCallbackPathItem(io.apicurio.datamodels.openapi.v3.models.Oas30CallbackPathItem)
     * @param {Oas30CallbackPathItem} node
     */
    Oas30DataModelReaderDispatcher.prototype.visitCallbackPathItem = function (node) {
        this.oas30Reader().readPathItem(this.json, node);
    };
    /**
     * @see io.apicurio.datamodels.openapi.v3.visitors.IOas30Visitor#visitCallback(io.apicurio.datamodels.openapi.v3.models.Oas30Callback)
     * @param {Oas30Callback} node
     */
    Oas30DataModelReaderDispatcher.prototype.visitCallback = function (node) {
        this.oas30Reader().readCallback(this.json, node);
    };
    /**
     * @see io.apicurio.datamodels.openapi.v3.visitors.IOas30Visitor#visitLinkServer(io.apicurio.datamodels.openapi.v3.models.Oas30LinkServer)
     * @param {Oas30LinkServer} node
     */
    Oas30DataModelReaderDispatcher.prototype.visitLinkServer = function (node) {
        this.oas30Reader().readServer(this.json, node);
    };
    /**
     * @see io.apicurio.datamodels.openapi.v3.visitors.IOas30Visitor#visitCallbackDefinition(io.apicurio.datamodels.openapi.v3.models.Oas30CallbackDefinition)
     * @param {Oas30CallbackDefinition} node
     */
    Oas30DataModelReaderDispatcher.prototype.visitCallbackDefinition = function (node) {
        this.oas30Reader().readCallback(this.json, node);
    };
    /**
     * @see io.apicurio.datamodels.openapi.v3.visitors.IOas30Visitor#visitLink(io.apicurio.datamodels.openapi.v3.models.Oas30Link)
     * @param {Oas30Link} node
     */
    Oas30DataModelReaderDispatcher.prototype.visitLink = function (node) {
        this.oas30Reader().readLink(this.json, node);
    };
    /**
     * @see io.apicurio.datamodels.openapi.v3.visitors.IOas30Visitor#visitLinkRequestBodyExpression(io.apicurio.datamodels.openapi.v3.models.Oas30LinkRequestBodyExpression)
     * @param {Oas30LinkRequestBodyExpression} node
     */
    Oas30DataModelReaderDispatcher.prototype.visitLinkRequestBodyExpression = function (node) {
    };
    /**
     * @see io.apicurio.datamodels.openapi.v3.visitors.IOas30Visitor#visitLinkParameterExpression(io.apicurio.datamodels.openapi.v3.models.Oas30LinkParameterExpression)
     * @param {Oas30LinkParameterExpression} node
     */
    Oas30DataModelReaderDispatcher.prototype.visitLinkParameterExpression = function (node) {
    };
    /**
     * @see io.apicurio.datamodels.openapi.v3.visitors.IOas30Visitor#visitLinkDefinition(io.apicurio.datamodels.openapi.v3.models.Oas30LinkDefinition)
     * @param {Oas30LinkDefinition} node
     */
    Oas30DataModelReaderDispatcher.prototype.visitLinkDefinition = function (node) {
        this.oas30Reader().readLink(this.json, node);
    };
    /**
     * @see io.apicurio.datamodels.openapi.v3.visitors.IOas30Visitor#visitAuthorizationCodeOAuthFlow(io.apicurio.datamodels.core.models.common.AuthorizationCodeOAuthFlow)
     * @param {AuthorizationCodeOAuthFlow} node
     */
    Oas30DataModelReaderDispatcher.prototype.visitAuthorizationCodeOAuthFlow = function (node) {
        this.oas30Reader().readOAuthFlow(this.json, node);
    };
    /**
     * @see io.apicurio.datamodels.openapi.v3.visitors.IOas30Visitor#visitClientCredentialsOAuthFlow(io.apicurio.datamodels.core.models.common.ClientCredentialsOAuthFlow)
     * @param {ClientCredentialsOAuthFlow} node
     */
    Oas30DataModelReaderDispatcher.prototype.visitClientCredentialsOAuthFlow = function (node) {
        this.oas30Reader().readOAuthFlow(this.json, node);
    };
    /**
     * @see io.apicurio.datamodels.openapi.v3.visitors.IOas30Visitor#visitPasswordOAuthFlow(io.apicurio.datamodels.core.models.common.PasswordOAuthFlow)
     * @param {PasswordOAuthFlow} node
     */
    Oas30DataModelReaderDispatcher.prototype.visitPasswordOAuthFlow = function (node) {
        this.oas30Reader().readOAuthFlow(this.json, node);
    };
    /**
     * @see io.apicurio.datamodels.openapi.v3.visitors.IOas30Visitor#visitImplicitOAuthFlow(io.apicurio.datamodels.core.models.common.ImplicitOAuthFlow)
     * @param {ImplicitOAuthFlow} node
     */
    Oas30DataModelReaderDispatcher.prototype.visitImplicitOAuthFlow = function (node) {
        this.oas30Reader().readOAuthFlow(this.json, node);
    };
    /**
     * @see io.apicurio.datamodels.openapi.v3.visitors.IOas30Visitor#visitOAuthFlows(io.apicurio.datamodels.core.models.common.OAuthFlows)
     * @param {OAuthFlows} node
     */
    Oas30DataModelReaderDispatcher.prototype.visitOAuthFlows = function (node) {
        this.oas30Reader().readOAuthFlows(this.json, node);
    };
    /**
     * @see io.apicurio.datamodels.openapi.visitors.IOasVisitor#visitExample(io.apicurio.datamodels.core.models.common.IExample)
     * @param {*} node
     */
    Oas30DataModelReaderDispatcher.prototype.visitExample = function (node) {
        this.oas30Reader().readExample(this.json, node);
    };
    /**
     * @see io.apicurio.datamodels.openapi.v3.visitors.IOas30Visitor#visitEncoding(io.apicurio.datamodels.openapi.v3.models.Oas30Encoding)
     * @param {Oas30Encoding} node
     */
    Oas30DataModelReaderDispatcher.prototype.visitEncoding = function (node) {
        this.oas30Reader().readEncoding(this.json, node);
    };
    /**
     * @see io.apicurio.datamodels.openapi.v3.visitors.IOas30Visitor#visitMediaType(io.apicurio.datamodels.openapi.v3.models.Oas30MediaType)
     * @param {Oas30MediaType} node
     */
    Oas30DataModelReaderDispatcher.prototype.visitMediaType = function (node) {
        this.oas30Reader().readMediaType(this.json, node);
    };
    /**
     * @see io.apicurio.datamodels.openapi.v3.visitors.IOas30Visitor#visitHeaderDefinition(io.apicurio.datamodels.openapi.v3.models.Oas30HeaderDefinition)
     * @param {Oas30HeaderDefinition} node
     */
    Oas30DataModelReaderDispatcher.prototype.visitHeaderDefinition = function (node) {
        this.oas30Reader().readHeader(this.json, node);
    };
    /**
     * @see io.apicurio.datamodels.openapi.v3.visitors.IOas30Visitor#visitRequestBody(io.apicurio.datamodels.openapi.v3.models.Oas30RequestBody)
     * @param {Oas30RequestBody} node
     */
    Oas30DataModelReaderDispatcher.prototype.visitRequestBody = function (node) {
        this.oas30Reader().readRequestBody(this.json, node);
    };
    /**
     * @see io.apicurio.datamodels.openapi.v3.visitors.IOas30Visitor#visitRequestBodyDefinition(io.apicurio.datamodels.openapi.v3.models.Oas30RequestBodyDefinition)
     * @param {Oas30RequestBodyDefinition} node
     */
    Oas30DataModelReaderDispatcher.prototype.visitRequestBodyDefinition = function (node) {
        this.oas30Reader().readRequestBody(this.json, node);
    };
    /**
     * @see io.apicurio.datamodels.openapi.v3.visitors.IOas30Visitor#visitExampleDefinition(io.apicurio.datamodels.openapi.v3.models.Oas30ExampleDefinition)
     * @param {Oas30ExampleDefinition} node
     */
    Oas30DataModelReaderDispatcher.prototype.visitExampleDefinition = function (node) {
        this.oas30Reader().readExample(this.json, node);
    };
    /**
     * @see io.apicurio.datamodels.openapi.v3.visitors.IOas30Visitor#visitDiscriminator(io.apicurio.datamodels.openapi.v3.models.Oas30Discriminator)
     * @param {Oas30Discriminator} node
     */
    Oas30DataModelReaderDispatcher.prototype.visitDiscriminator = function (node) {
        this.oas30Reader().readDiscriminator(this.json, node);
    };
    /**
     * @see io.apicurio.datamodels.openapi.v3.visitors.IOas30Visitor#visitNotSchema(io.apicurio.datamodels.openapi.v3.models.Oas30Schema.Oas30NotSchema)
     * @param {Oas30Schema.Oas30NotSchema} node
     */
    Oas30DataModelReaderDispatcher.prototype.visitNotSchema = function (node) {
        this.oas30Reader().readSchema(this.json, node);
    };
    /**
     * @see io.apicurio.datamodels.openapi.v3.visitors.IOas30Visitor#visitOneOfSchema(io.apicurio.datamodels.openapi.v3.models.Oas30Schema.Oas30OneOfSchema)
     * @param {Oas30Schema.Oas30OneOfSchema} node
     */
    Oas30DataModelReaderDispatcher.prototype.visitOneOfSchema = function (node) {
        this.oas30Reader().readSchema(this.json, node);
    };
    /**
     * @see io.apicurio.datamodels.openapi.v3.visitors.IOas30Visitor#visitAnyOfSchema(io.apicurio.datamodels.openapi.v3.models.Oas30Schema.Oas30AnyOfSchema)
     * @param {Oas30Schema.Oas30AnyOfSchema} node
     */
    Oas30DataModelReaderDispatcher.prototype.visitAnyOfSchema = function (node) {
        this.oas30Reader().readSchema(this.json, node);
    };
    /**
     * @see io.apicurio.datamodels.openapi.v3.visitors.IOas30Visitor#visitServer(io.apicurio.datamodels.core.models.common.Server)
     * @param {Server} node
     */
    Oas30DataModelReaderDispatcher.prototype.visitServer = function (node) {
        this.reader.readServer(this.json, node);
    };
    /**
     * @see io.apicurio.datamodels.openapi.v3.visitors.IOas30Visitor#visitServerVariable(io.apicurio.datamodels.core.models.common.ServerVariable)
     * @param {ServerVariable} node
     */
    Oas30DataModelReaderDispatcher.prototype.visitServerVariable = function (node) {
        this.reader.readServerVariable(this.json, node);
    };
    return Oas30DataModelReaderDispatcher;
}(OasDataModelReaderDispatcher));
export { Oas30DataModelReaderDispatcher };
Oas30DataModelReaderDispatcher["__class"] = "io.apicurio.datamodels.openapi.v3.io.Oas30DataModelReaderDispatcher";
Oas30DataModelReaderDispatcher["__interfaces"] = ["io.apicurio.datamodels.core.visitors.IVisitor", "io.apicurio.datamodels.openapi.v3.visitors.IOas30Visitor", "io.apicurio.datamodels.openapi.visitors.IOasVisitor"];
//# sourceMappingURL=Oas30DataModelReaderDispatcher.js.map