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 { Server } from '../../../core/models/common/Server';
/**
 * Constructor.
 * @class
 * @extends Server
 * @author eric.wittmann@gmail.com
 */
var Oas30Server = /** @class */ (function (_super) {
    __extends(Oas30Server, _super);
    function Oas30Server() {
        return _super.call(this) || this;
    }
    /**
     * @see io.apicurio.datamodels.core.models.Node#accept(io.apicurio.datamodels.core.visitors.IVisitor)
     * @param {*} visitor
     */
    Oas30Server.prototype.accept = function (visitor) {
        var viz = visitor;
        viz.visitServer(this);
    };
    /**
     * @see io.apicurio.datamodels.core.models.common.Server#createServerVariable(java.lang.String)
     * @param {string} name
     * @return {ServerVariable}
     */
    Oas30Server.prototype.createServerVariable = function (name) {
        var variable = new Oas30ServerVariable(name);
        variable._ownerDocument = this.ownerDocument();
        variable._parent = this;
        return variable;
    };
    return Oas30Server;
}(Server));
export { Oas30Server };
Oas30Server["__class"] = "io.apicurio.datamodels.openapi.v3.models.Oas30Server";
Oas30Server["__interfaces"] = ["io.apicurio.datamodels.core.models.IVisitable"];
import { Oas30ServerVariable } from './Oas30ServerVariable';
//# sourceMappingURL=Oas30Server.js.map